diff options
Diffstat (limited to 'regress/sys/net/pflow/Makefile')
-rw-r--r-- | regress/sys/net/pflow/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/regress/sys/net/pflow/Makefile b/regress/sys/net/pflow/Makefile index 115d764eecd..122fe9b13e9 100644 --- a/regress/sys/net/pflow/Makefile +++ b/regress/sys/net/pflow/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2017/02/27 21:56:09 bluhm Exp $ +# $OpenBSD: Makefile,v 1.7 2017/03/03 21:34:14 bluhm Exp $ # # template_v10 # ---------------- @@ -32,23 +32,31 @@ PROG= gen_traffic LDADD= -levent .if ! (make(clean) || make(cleandir) || make(obj)) -PF_ENABLED != pfctl -si | grep '^Status: Enabled ' || true +PF_ENABLED !!= pfctl -si | grep '^Status: Enabled ' || true .endif .if empty(PF_ENABLED) regress: - @echo enable pf on localhost to run pflog test + @echo Enable pf on localhost to run pflow test. + @echo SKIPPED +.endif + +PERL_REQUIRE !!= perl -e 'eval { require Net::Flow } or print $@' +.if ! empty(PERL_REQUIRE) +regress: + @echo "${PERL_REQUIRE}" + @echo Install the p5-Net-Flow package to run pflow test. @echo SKIPPED .endif template_v10: - perl -I ${.CURDIR} ${.CURDIR}/template.pl 10 \ + perl ${.CURDIR}/template.pl 10 \ | diff -up ${.CURDIR}/template.v10 /dev/stdin flow_10_4: gen_traffic - perl -I ${.CURDIR} ${.CURDIR}/flow.pl 10 4 \ + perl ${.CURDIR}/flow.pl 10 4 \ | diff -up ${.CURDIR}/flow.10_4 /dev/stdin flow_10_6: gen_traffic - perl -I ${.CURDIR} ${.CURDIR}/flow.pl 10 6 \ + perl ${.CURDIR}/flow.pl 10 6 \ | diff -up ${.CURDIR}/flow.10_6 /dev/stdin ifconfig: |