summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2013-08-07 00:38:41 +0000
committerbluhm <bluhm@openbsd.org>2013-08-07 00:38:41 +0000
commitdafd265dd5dfdc1a149899a2b68b79f681419241 (patch)
tree7caa79289196be5447f3ad244692d8be869e8623
parentadd support for hardware contexts on recent intel hardware (diff)
downloadwireguard-openbsd-dafd265dd5dfdc1a149899a2b68b79f681419241.tar.xz
wireguard-openbsd-dafd265dd5dfdc1a149899a2b68b79f681419241.zip
Check wether the required perl packages are installed. If not,
print a message and skip the regression tests which need them. OK deraadt@
-rw-r--r--regress/sys/kern/sosplice/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/regress/sys/kern/sosplice/Makefile b/regress/sys/kern/sosplice/Makefile
index b32a4ba6e47..46e4680e735 100644
--- a/regress/sys/kern/sosplice/Makefile
+++ b/regress/sys/kern/sosplice/Makefile
@@ -1,11 +1,21 @@
-# $OpenBSD: Makefile,v 1.3 2013/08/01 21:26:30 kettenis Exp $
+# $OpenBSD: Makefile,v 1.4 2013/08/07 00:38:41 bluhm Exp $
-SUBDIR += perf
-.if defined(REGRESS_FULL)
+PERL_REQUIRE != perl -Mstrict -Mwarnings -e ' \
+ eval { require BSD::Socket::Splice } or print $@; \
+ eval { require IO::Socket::INET6 } or print $@; \
+ eval { require Socket6 } or print $@; \
+'
+
+SUBDIR += perf
+.if empty(PERL_REQUIRE)
SUBDIR += error
SUBDIR += tcp
SUBDIR += udp
+.else
+all: _SUBDIRUSE
+ @echo "${PERL_REQUIRE}"
+ @echo install these perl packages for additional tests
.endif
.include <bsd.subdir.mk>