summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-21 01:37:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-21 01:37:58 +0000
commit97265011059124f442b1289ed8a54f854b696ec2 (patch)
tree9383adda510eea8bc3bc9a4379400496cbcbcc0b /regress/sbin/pfctl
parenta4115fb51c2f0ca435905f9a5f66b8033bc8edd5 (diff)
test missing comma
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pf24.in8
-rw-r--r--regress/sbin/pfctl/pf24.ok7
3 files changed, 17 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 154f2ff5b51..c920374e84a 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.25 2002/07/20 19:52:50 deraadt Exp $
+# $OpenBSD: Makefile,v 1.26 2002/07/21 01:37:57 deraadt Exp $
-PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
+PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12
.for n in ${PFFAIL}
diff --git a/regress/sbin/pfctl/pf24.in b/regress/sbin/pfctl/pf24.in
new file mode 100644
index 00000000000..73c20493363
--- /dev/null
+++ b/regress/sbin/pfctl/pf24.in
@@ -0,0 +1,8 @@
+#test variable concat
+a="ssh"
+b="ftp"
+c=$a $b
+d=$a $b $a $b
+e=$a $b $b "test" $a $b
+
+pass in proto tcp from any to any port { $c }
diff --git a/regress/sbin/pfctl/pf24.ok b/regress/sbin/pfctl/pf24.ok
new file mode 100644
index 00000000000..b3706bf7118
--- /dev/null
+++ b/regress/sbin/pfctl/pf24.ok
@@ -0,0 +1,7 @@
+a = ssh
+b = ftp
+c = ssh ftp
+d = ssh ftp ssh ftp
+e = ssh ftp ftp test ssh ftp
+@0 pass in proto tcp from any to any port = ftp
+@1 pass in proto tcp from any to any port = ssh