diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-04-13 18:50:47 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-04-13 18:50:47 +0000 |
commit | 1d9e2d671fd52aabb4ee35d0e0c901679f776de9 (patch) | |
tree | 291185d3a5febc0febb8b9cd671574a51a3cff95 | |
parent | 7a25c47bf9db0627bc9f2fcb8d1ba81be9edb743 (diff) |
Automated regress cannot connect to servers in internet. Check
whether jigsaw.w3.org is reachable and skip rpki client http test
if not.
OK claudio@
-rw-r--r-- | regress/usr.sbin/rpki-client/libressl/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/regress/usr.sbin/rpki-client/libressl/Makefile b/regress/usr.sbin/rpki-client/libressl/Makefile index 67060e5eddc..48a5eda6e28 100644 --- a/regress/usr.sbin/rpki-client/libressl/Makefile +++ b/regress/usr.sbin/rpki-client/libressl/Makefile @@ -4,12 +4,22 @@ SRCS_test-http= test-http.c http.c io.c LDADD_test-http+= -ltls -lssl -lcrypto -lutil DPADD_test-http+= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO} ${LIBUTIL} +SERVER = jigsaw.w3.org +REACHABLE = +.if make(run-regress-test-http) +REACHABLE != ! ping -n -c 1 -w 1 ${SERVER} >/dev/null || echo yes +.endif + run-regress-test-http: test-http - ./test-http https://jigsaw.w3.org/HTTP/TE/foo.txt foo.txt - ./test-http https://jigsaw.w3.org/HTTP/ChunkedScript chunk.out - ./test-http https://jigsaw.w3.org/HTTP/300/307.html redir.out +.if ${REACHABLE:L} == "yes" + ./test-http https://${SERVER}/HTTP/TE/foo.txt foo.txt + ./test-http https://${SERVER}/HTTP/ChunkedScript chunk.out + ./test-http https://${SERVER}/HTTP/300/307.html redir.out sha256 -c ${.CURDIR}/test-http.sum - +.else + # server ${SERVER} not reachable + @echo SKIPPED +.endif .PATH: ${.CURDIR}/.. |