summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/ocsp/Makefile
blob: f0b43acc2b74404d47ef31b53d068b4a04b194a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#	$OpenBSD: Makefile,v 1.5 2020/12/17 00:51:11 bluhm Exp $

PROG=		ocsp_test
LDADD=		-lcrypto -lssl
DPADD=		${LIBCRYPTO} ${LIBSSL}
WARNINGS=	Yes
LDFLAGS+=	-lcrypto -lssl
CFLAGS+=	-DLIBRESSL_INTERNAL -Wall -Wundef -Werror

SERVERS=	www.amazon.com \
		www.cloudflare.com

REGRESS_TARGETS =

.for s in ${SERVERS}
REGRESS_TARGETS +=	run-domain-$s
run-domain-$s: ${PROG}
	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>