summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-03-23 13:57:08 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-03-23 13:57:08 +0000
commit642f52c60930a7cd18e1145717d5e8e39bf5a629 (patch)
tree93dd0eea67e3bf76633ff6b61c0cb6a63e076838 /regress
parent3cee9c019c682a0664876792bf1e7824a8fe2acb (diff)
Allow to override location of ipsecctl tool with IPSECCTL environment.
Useful for development testing without make install.
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/ipsecctl/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/regress/sbin/ipsecctl/Makefile b/regress/sbin/ipsecctl/Makefile
index 8f035dcae0a..4b31265f2fe 100644
--- a/regress/sbin/ipsecctl/Makefile
+++ b/regress/sbin/ipsecctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.59 2012/07/08 17:54:57 naddy Exp $
+# $OpenBSD: Makefile,v 1.60 2017/03/23 13:57:07 bluhm Exp $
# you can update the *.ok files with: make -i | patch
# TARGETS
@@ -27,7 +27,8 @@ IKEDELTESTS+=16 17 18 19 20 21 22 23
IKEDELTESTS+=29 30 31 32 33 34 35 36 37 38 39 40
IKEDELTESTS+=41 42 43 46 47
-SHELL=/bin/sh
+SHELL= /bin/sh
+IPSECCTL?= /sbin/ipsecctl
.MAIN: all
@@ -36,7 +37,7 @@ IPSEC_TARGETS+=ipsec${n}
ipsec${n}:
cat ${.CURDIR}/ipsec${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -nv -f - | diff -u ${.CURDIR}/ipsec${n}.ok /dev/stdin
+ ${IPSECCTL} -nv -f - | diff -u ${.CURDIR}/ipsec${n}.ok /dev/stdin
.endfor
.for n in ${TCPMD5TESTS}
@@ -44,7 +45,7 @@ TCPMD5_TARGETS+=tcpmd5${n}
tcpmd5${n}:
cat ${.CURDIR}/tcpmd5${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -nkv -f - | diff -u ${.CURDIR}/tcpmd5${n}.ok /dev/stdin
+ ${IPSECCTL} -nkv -f - | diff -u ${.CURDIR}/tcpmd5${n}.ok /dev/stdin
.endfor
.for n in ${SATESTS}
@@ -52,7 +53,7 @@ SA_TARGETS+=sa${n}
sa${n}:
cat ${.CURDIR}/sa${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -knv -f - | diff -u ${.CURDIR}/sa${n}.ok /dev/stdin
+ ${IPSECCTL} -knv -f - | diff -u ${.CURDIR}/sa${n}.ok /dev/stdin
.endfor
.for n in ${SAFAIL}
@@ -60,7 +61,7 @@ SAFAIL_TARGETS+=safail${n}
safail${n}:
cat ${.CURDIR}/safail${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -nv -f - 2>&1 | diff -u ${.CURDIR}/safail${n}.ok /dev/stdin
+ ${IPSECCTL} -nv -f - 2>&1 | diff -u ${.CURDIR}/safail${n}.ok /dev/stdin
.endfor
.for n in ${IPSECFAIL}
@@ -68,7 +69,7 @@ IPSECFAIL_TARGETS+=ipsecfail${n}
ipsecfail${n}:
cat ${.CURDIR}/ipsecfail${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -nv -f - 2>&1 | diff -u ${.CURDIR}/ipsecfail${n}.ok /dev/stdin
+ ${IPSECCTL} -nv -f - 2>&1 | diff -u ${.CURDIR}/ipsecfail${n}.ok /dev/stdin
.endfor
.for n in ${IKETESTS}
@@ -76,7 +77,7 @@ IKE_TARGETS+=ike${n}
ike${n}:
cat ${.CURDIR}/ike${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -nv -f - | diff -u ${.CURDIR}/ike${n}.ok /dev/stdin
+ ${IPSECCTL} -nv -f - | diff -u ${.CURDIR}/ike${n}.ok /dev/stdin
.endfor
.for n in ${IKEFAIL}
@@ -84,7 +85,7 @@ IKEFAIL_TARGETS+=ikefail${n}
ikefail${n}:
cat ${.CURDIR}/ikefail${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -nv -f - 2>&1 | diff -u ${.CURDIR}/ikefail${n}.ok /dev/stdin
+ ${IPSECCTL} -nv -f - 2>&1 | diff -u ${.CURDIR}/ikefail${n}.ok /dev/stdin
.endfor
.for n in ${IKEDELTESTS}
@@ -92,7 +93,7 @@ IKEDEL_TARGETS+=ikedel${n}
ikedel${n}:
cat ${.CURDIR}/ikedel${n}.in | sed -e 's,DIR,${.CURDIR},g' | \
- ipsecctl -dnv -f - | diff -u ${.CURDIR}/ikedel${n}.ok /dev/stdin
+ ${IPSECCTL} -dnv -f - | diff -u ${.CURDIR}/ikedel${n}.ok /dev/stdin
.endfor
ipsec: ${IPSEC_TARGETS}