summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-10-30 20:05:25 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-10-30 20:05:25 +0000
commit3dfe578b823f39090b6b6ff69d486a2d09f0a619 (patch)
tree73c0d583ad21cf5f06c4fb115d8c53442f05aa7e /regress/sbin
parent23934d70ca697240f8d6859ff7ec2b39df724b81 (diff)
add a regression test for ipcomp
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/ipsecctl/Makefile4
-rw-r--r--regress/sbin/ipsecctl/sa8.in3
-rw-r--r--regress/sbin/ipsecctl/sa8.ok6
3 files changed, 11 insertions, 2 deletions
diff --git a/regress/sbin/ipsecctl/Makefile b/regress/sbin/ipsecctl/Makefile
index c7c1f111d37..c184648f0aa 100644
--- a/regress/sbin/ipsecctl/Makefile
+++ b/regress/sbin/ipsecctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2005/10/16 21:36:12 hshoexer Exp $
+# $OpenBSD: Makefile,v 1.9 2005/10/30 20:05:24 hshoexer Exp $
# TARGETS
# ipsec: feed ipsecNN.in through ipsecctl and check wether the output matches
@@ -9,7 +9,7 @@
IPSECTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13
TCPMD5TESTS=1 2 3
-SATESTS=1 2 3 4 5 6 7
+SATESTS=1 2 3 4 5 6 7 8
IKETESTS=1 2 3 4 5 6 7 8
SHELL=/bin/sh
diff --git a/regress/sbin/ipsecctl/sa8.in b/regress/sbin/ipsecctl/sa8.in
new file mode 100644
index 00000000000..104c1aeb3cc
--- /dev/null
+++ b/regress/sbin/ipsecctl/sa8.in
@@ -0,0 +1,3 @@
+ipcomp from 1.1.1.1 to 2.2.2.2 spi 0x1000:0x1001
+ipcomp from 3.3.3.3 to 4.4.4.4 spi 0x2000:0x2001 comp deflate
+ipcomp from 5.5.5.5 to 6.6.6.6 spi 0x3000:0x3001 comp lzs
diff --git a/regress/sbin/ipsecctl/sa8.ok b/regress/sbin/ipsecctl/sa8.ok
new file mode 100644
index 00000000000..b84b110407a
--- /dev/null
+++ b/regress/sbin/ipsecctl/sa8.ok
@@ -0,0 +1,6 @@
+ipcomp from 1.1.1.1 to 2.2.2.2 spi 0x00001000 comp deflate
+ipcomp from 2.2.2.2 to 1.1.1.1 spi 0x00001001 comp deflate
+ipcomp from 3.3.3.3 to 4.4.4.4 spi 0x00002000 comp deflate
+ipcomp from 4.4.4.4 to 3.3.3.3 spi 0x00002001 comp deflate
+ipcomp from 5.5.5.5 to 6.6.6.6 spi 0x00003000 comp lzs
+ipcomp from 6.6.6.6 to 5.5.5.5 spi 0x00003001 comp lzs