diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-11-05 20:48:06 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-11-05 20:48:06 +0000 |
commit | b08dc8ecb4ad22a82924eb96cb0eef265adc199a (patch) | |
tree | 7457fba77f67bea8d9c8e15c648e713b765e2e33 /regress/lib/libcrypto | |
parent | 26501df6dcb9be0a2d5b186ea7f68e9a9012f0b8 (diff) |
Skip test if web server cannot be pinged.
Diffstat (limited to 'regress/lib/libcrypto')
-rw-r--r-- | regress/lib/libcrypto/ocsp/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/regress/lib/libcrypto/ocsp/Makefile b/regress/lib/libcrypto/ocsp/Makefile index 62fb9856477..b1b437c9161 100644 --- a/regress/lib/libcrypto/ocsp/Makefile +++ b/regress/lib/libcrypto/ocsp/Makefile @@ -1,6 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2016/11/05 12:45:25 miod Exp $ - -REGRESS_TARGETS= all_tests +# $OpenBSD: Makefile,v 1.4 2020/11/05 20:48:05 bluhm Exp $ PROG= ocsp_test LDADD= -lcrypto -lssl @@ -9,8 +7,18 @@ WARNINGS= Yes LDFLAGS+= -lcrypto -lssl CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror -all_tests: ${PROG} - ${.OBJDIR}/${PROG} www.amazon.com 443 - ${.OBJDIR}/${PROG} cloudflare.com 443 +SERVERS= www.amazon.com \ + www.cloudflare.com + +REGRESS_TARGETS = + +.for s in ${SERVERS} +REGRESS_TARGETS += run-domain-$s +run-domain-$s: ${PROG} + @echo '======== $@ ========' + if ping -n -c 1 -w 1 $s; then \ + ./${PROG} $s 443; else \ + echo server $s not reachable; echo SKIPPED; fi +.endfor .include <bsd.regress.mk> |