summaryrefslogtreecommitdiff
path: root/regress/sbin/ipsecctl/Makefile
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-06-15 17:03:22 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-06-15 17:03:22 +0000
commit4964999beb3021c6b52cd3afeb326e22d4a20316 (patch)
tree21aa050a9e668b2c310fcdbd9ee3fd13331ecce8 /regress/sbin/ipsecctl/Makefile
parent089d5a08946bfffe50eb9676a7773a8dedcc6128 (diff)
Add a bunch of test for deletion of ike rules, add a test for "to
any" rules without a peer specified. These tests resulted in the recent fix in ipsecctl/ike.c.
Diffstat (limited to 'regress/sbin/ipsecctl/Makefile')
-rw-r--r--regress/sbin/ipsecctl/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/regress/sbin/ipsecctl/Makefile b/regress/sbin/ipsecctl/Makefile
index 32dc9f1089a..23398b546d5 100644
--- a/regress/sbin/ipsecctl/Makefile
+++ b/regress/sbin/ipsecctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.33 2006/06/15 11:05:58 hshoexer Exp $
+# $OpenBSD: Makefile,v 1.34 2006/06/15 17:03:21 hshoexer Exp $
# TARGETS
# ipsec: feed ipsecNN.in through ipsecctl and check wether the output matches
@@ -18,7 +18,12 @@ IKEFAIL=1 3 4 5
IKETESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
IKETESTS+=16 17 18 19 20 21 22 23
IKETESTS+=29 30 31 32 33 34 35 36 37 38 39 40
-IKETESTS+=41 42 43 46
+IKETESTS+=41 42 43 46 47
+
+IKEDELTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+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
@@ -80,6 +85,14 @@ ikefail${n}:
ipsecctl -nv -f - 2>&1 | diff -u ${.CURDIR}/ikefail${n}.ok /dev/stdin
.endfor
+.for n in ${IKEDELTESTS}
+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
+.endfor
+
ipsec: ${IPSEC_TARGETS}
REGRESS_TARGETS+=ipsec
@@ -101,6 +114,9 @@ REGRESS_TARGETS+=ike
ikefail: ${IKEFAIL_TARGETS}
REGRESS_TARGETS+=ikefail
+ikedel: ${IKEDEL_TARGETS}
+REGRESS_TARGETS+=ikedel
+
alltests: ${REGRESS_TARGETS}
.PHONY: ${REGRESS_TARGETS}