Makefile revision 1.5
1PROGS += test-http 2 3SRCS_test-http= test-http.c http.c io.c encoding.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 ./test-http 'https://demo.cyotek.com/features/redirectchaintest.php?index=1' redirloop.out 2>&1 | grep -q 'Too many redirections requested' 20.else 21 # server ${SERVER} not reachable 22 @echo SKIPPED 23.endif 24 25.PATH: ${.CURDIR}/.. 26 27.include <bsd.regress.mk> 28