diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-10-06 10:52:25 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-10-06 10:52:25 +0000 |
commit | 3f68be9023c782a09f7e1ca7b3996b8f9a0703dd (patch) | |
tree | 10f723461e798e6b4cffbd1fdcafeddf0ff0044d /regress/usr.sbin/relayd | |
parent | e9439c684413a43e0604a31a9b71d57757319799 (diff) |
Simplify regress tests by using the new setup and cleanup feature.
Diffstat (limited to 'regress/usr.sbin/relayd')
-rw-r--r-- | regress/usr.sbin/relayd/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/regress/usr.sbin/relayd/Makefile b/regress/usr.sbin/relayd/Makefile index 7f9106d9f92..c07743a8b1e 100644 --- a/regress/usr.sbin/relayd/Makefile +++ b/regress/usr.sbin/relayd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2016/09/23 20:04:21 bluhm Exp $ +# $OpenBSD: Makefile,v 1.15 2018/10/06 10:52:24 bluhm Exp $ # The following ports must be installed for the regression tests: # p5-IO-Socket-INET6 object interface for AF_INET and AF_INET6 domain sockets @@ -20,14 +20,14 @@ regress: @echo SKIPPED .endif -.if make (regress) || make (all) -.BEGIN: +REGRESS_SETUP_ONCE += setup +setup: + @echo '\n======== $@ ========' .if empty (REMOTE_SSH) ${SUDO} true .else ssh -t ${REMOTE_SSH} ${SUDO} true .endif -.endif # Fill out these variables if you want to test relayd with # the relayd process running on a remote machine. You have to specify @@ -42,8 +42,6 @@ REMOTE_SSH ?= # Automatically generate regress targets from test cases in directory. ARGS != cd ${.CURDIR} && ls args-*.pl -TARGETS ?= ${ARGS} -REGRESS_TARGETS = ${TARGETS:S/^/run-regress-/} CLEANFILES += *.log relayd.conf ktrace.out stamp-* CLEANFILES += *.pem *.req *.crt *.key *.srl @@ -62,7 +60,8 @@ PERLPATH = ${.CURDIR}/ # test parameters. Generally they consist of client, relayd, server. .for a in ${ARGS} -run-regress-$a: $a +REGRESS_TARGETS += run-$a +run-$a: $a @echo '\n======== $@ ========' .if empty (REMOTE_SSH) time SUDO=${SUDO} KTRACE=${KTRACE} RELAYD=${RELAYD} perl ${PERLINC} ${PERLPATH}relayd.pl copy ${PERLPATH}$a |