diff options
author | bluhm <> | 2020-11-05 20:48:05 +0000 |
---|---|---|
committer | bluhm <> | 2020-11-05 20:48:05 +0000 |
commit | 999ec352efbeb24cccd1d584b91a659b15764151 (patch) | |
tree | ba6412fa54dca8fe5f2f038722a227a49b7ea8e6 | |
parent | 99934c1bfe944f81afb165229a8684af8e592ee0 (diff) | |
download | openbsd-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/Makefile | 20 |
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 | |||
3 | REGRESS_TARGETS= all_tests | ||
4 | 2 | ||
5 | PROG= ocsp_test | 3 | PROG= ocsp_test |
6 | LDADD= -lcrypto -lssl | 4 | LDADD= -lcrypto -lssl |
@@ -9,8 +7,18 @@ WARNINGS= Yes | |||
9 | LDFLAGS+= -lcrypto -lssl | 7 | LDFLAGS+= -lcrypto -lssl |
10 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror | 8 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror |
11 | 9 | ||
12 | all_tests: ${PROG} | 10 | SERVERS= www.amazon.com \ |
13 | ${.OBJDIR}/${PROG} www.amazon.com 443 | 11 | www.cloudflare.com |
14 | ${.OBJDIR}/${PROG} cloudflare.com 443 | 12 | |
13 | REGRESS_TARGETS = | ||
14 | |||
15 | .for s in ${SERVERS} | ||
16 | REGRESS_TARGETS += run-domain-$s | ||
17 | run-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> |