Makefile revision 1.3
1PROGS += test-http
2
3SRCS_test-http=   test-http.c http.c io.c
4LDADD_test-http+= -ltls -lssl -lcrypto -lutil
5DPADD_test-http+= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO} ${LIBUTIL}
6
7SERVER =	jigsaw.w3.org
8REACHABLE =
9.if make(run-regress-test-http)
10REACHABLE !=	! ping -n -c 1 -w 1 ${SERVER} >/dev/null || echo yes
11.endif
12
13run-regress-test-http: test-http
14.if ${REACHABLE:L} == "yes"
15	./test-http https://${SERVER}/HTTP/TE/foo.txt foo.txt
16	./test-http https://${SERVER}/HTTP/ChunkedScript chunk.out
17	./test-http https://${SERVER}/HTTP/300/307.html redir.out
18	sha256 -c ${.CURDIR}/test-http.sum
19.else
20	# server ${SERVER} not reachable
21	@echo SKIPPED
22.endif
23
24.PATH: ${.CURDIR}/..
25
26.include <bsd.regress.mk>
27