diff options
author | 2020-11-05 20:48:05 +0000 | |
---|---|---|
committer | 2020-11-05 20:48:05 +0000 | |
commit | 050ff868c7df8e71c09ec9af9f430f06943436da (patch) | |
tree | 3a7c573f39de8537ef99e584d7c3b29334676cdd | |
parent | Add test for ASN1_DN ids with existing certs. (diff) | |
download | wireguard-openbsd-050ff868c7df8e71c09ec9af9f430f06943436da.tar.xz wireguard-openbsd-050ff868c7df8e71c09ec9af9f430f06943436da.zip |
Skip test if web server cannot be pinged.
-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> |