summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbluhm <>2020-11-05 20:48:05 +0000
committerbluhm <>2020-11-05 20:48:05 +0000
commit999ec352efbeb24cccd1d584b91a659b15764151 (patch)
treeba6412fa54dca8fe5f2f038722a227a49b7ea8e6
parent99934c1bfe944f81afb165229a8684af8e592ee0 (diff)
downloadopenbsd-999ec352efbeb24cccd1d584b91a659b15764151.tar.gz
openbsd-999ec352efbeb24cccd1d584b91a659b15764151.tar.bz2
openbsd-999ec352efbeb24cccd1d584b91a659b15764151.zip
Skip test if web server cannot be pinged.
-rw-r--r--src/regress/lib/libcrypto/ocsp/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/regress/lib/libcrypto/ocsp/Makefile b/src/regress/lib/libcrypto/ocsp/Makefile
index 62fb985647..b1b437c916 100644
--- a/src/regress/lib/libcrypto/ocsp/Makefile
+++ b/src/regress/lib/libcrypto/ocsp/Makefile
@@ -1,6 +1,4 @@
1# $OpenBSD: Makefile,v 1.3 2016/11/05 12:45:25 miod Exp $ 1# $OpenBSD: Makefile,v 1.4 2020/11/05 20:48:05 bluhm Exp $
2
3REGRESS_TARGETS= all_tests
4 2
5PROG= ocsp_test 3PROG= ocsp_test
6LDADD= -lcrypto -lssl 4LDADD= -lcrypto -lssl
@@ -9,8 +7,18 @@ WARNINGS= Yes
9LDFLAGS+= -lcrypto -lssl 7LDFLAGS+= -lcrypto -lssl
10CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror 8CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
11 9
12all_tests: ${PROG} 10SERVERS= www.amazon.com \
13 ${.OBJDIR}/${PROG} www.amazon.com 443 11 www.cloudflare.com
14 ${.OBJDIR}/${PROG} cloudflare.com 443 12
13REGRESS_TARGETS =
14
15.for s in ${SERVERS}
16REGRESS_TARGETS += run-domain-$s
17run-domain-$s: ${PROG}
18 @echo '======== $@ ========'
19 if ping -n -c 1 -w 1 $s; then \
20 ./${PROG} $s 443; else \
21 echo server $s not reachable; echo SKIPPED; fi
22.endfor
15 23
16.include <bsd.regress.mk> 24.include <bsd.regress.mk>