summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-03-27 16:13:16 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-03-27 16:13:16 +0000
commit684b10ac9e29be4dc2f02a86c7d85eceead86bb8 (patch)
tree93075c3f7c1b140715304ee1b9db81ecdd3c4d18 /regress/sbin
parent73fe88af2c1fe1d7aa9bca9b448d309309d0475a (diff)
test invalid cbq and priq flags, respectively
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfail33.in3
-rw-r--r--regress/sbin/pfctl/pfail33.ok2
-rw-r--r--regress/sbin/pfctl/pfail34.in3
-rw-r--r--regress/sbin/pfctl/pfail34.ok2
5 files changed, 12 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index b5929af662e..3ce1e80c10c 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.118 2003/03/19 14:03:52 henning Exp $
+# $OpenBSD: Makefile,v 1.119 2003/03/27 16:13:14 henning Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok
@@ -14,7 +14,7 @@ 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 25 26 27
PFTESTS+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
PFTESTS+=51 52 53 54 55 56 57 58 59 60
PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
-PFFAIL+=28 29 30 31 32
+PFFAIL+=28 29 30 31 32 33 34
PFSIMPLE=1 2
PFSETUP=1 2 3
PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29
diff --git a/regress/sbin/pfctl/pfail33.in b/regress/sbin/pfctl/pfail33.in
new file mode 100644
index 00000000000..3f332825d6f
--- /dev/null
+++ b/regress/sbin/pfctl/pfail33.in
@@ -0,0 +1,3 @@
+#invalid cbq flags
+
+altq on gif2 cbq(borrow invalid) bandwidth 10Mb queue one
diff --git a/regress/sbin/pfctl/pfail33.ok b/regress/sbin/pfctl/pfail33.ok
new file mode 100644
index 00000000000..cabbc86a391
--- /dev/null
+++ b/regress/sbin/pfctl/pfail33.ok
@@ -0,0 +1,2 @@
+stdin:3: unknown cbq flag "invalid"
+pfctl: Syntax error in file: pf rules not loaded
diff --git a/regress/sbin/pfctl/pfail34.in b/regress/sbin/pfctl/pfail34.in
new file mode 100644
index 00000000000..1b8e9b07c85
--- /dev/null
+++ b/regress/sbin/pfctl/pfail34.in
@@ -0,0 +1,3 @@
+#invalid cbq/priq flags
+
+altq on gif2 priq(red invalid) bandwidth 10Mb queue one
diff --git a/regress/sbin/pfctl/pfail34.ok b/regress/sbin/pfctl/pfail34.ok
new file mode 100644
index 00000000000..7459b3670e2
--- /dev/null
+++ b/regress/sbin/pfctl/pfail34.ok
@@ -0,0 +1,2 @@
+stdin:3: unknown priq flag "invalid"
+pfctl: Syntax error in file: pf rules not loaded