]> granicus.if.org Git - sudo/commitdiff
Tests for empty sudoers (should parse OK) and syntax errors within
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Nov 2011 22:04:55 +0000 (17:04 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Nov 2011 22:04:55 +0000 (17:04 -0500)
a line (should report correct line number) both with and without
the trailing newline.

18 files changed:
plugins/sudoers/regress/sudoers/test10.in [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test10.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test10.toke.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test10.toke.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test11.in [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test11.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test11.toke.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test11.toke.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test12.in [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test12.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test12.toke.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test13.in [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test13.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test13.toke.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test9.in [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test9.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test9.toke.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test9.toke.out.ok [new file with mode: 0644]

diff --git a/plugins/sudoers/regress/sudoers/test10.in b/plugins/sudoers/regress/sudoers/test10.in
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/plugins/sudoers/regress/sudoers/test10.out.ok b/plugins/sudoers/regress/sudoers/test10.out.ok
new file mode 100644 (file)
index 0000000..ea87d79
--- /dev/null
@@ -0,0 +1,4 @@
+Parses OK.
+
+
+
diff --git a/plugins/sudoers/regress/sudoers/test10.toke.ok b/plugins/sudoers/regress/sudoers/test10.toke.ok
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/plugins/sudoers/regress/sudoers/test10.toke.out.ok b/plugins/sudoers/regress/sudoers/test10.toke.out.ok
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/plugins/sudoers/regress/sudoers/test11.in b/plugins/sudoers/regress/sudoers/test11.in
new file mode 100644 (file)
index 0000000..5ffba7b
--- /dev/null
@@ -0,0 +1 @@
+bogus
diff --git a/plugins/sudoers/regress/sudoers/test11.out.ok b/plugins/sudoers/regress/sudoers/test11.out.ok
new file mode 100644 (file)
index 0000000..c2b9d28
--- /dev/null
@@ -0,0 +1,4 @@
+Parse error in sudoers near line 1.
+
+
+
diff --git a/plugins/sudoers/regress/sudoers/test11.toke.ok b/plugins/sudoers/regress/sudoers/test11.toke.ok
new file mode 100644 (file)
index 0000000..d57d6c3
--- /dev/null
@@ -0,0 +1,2 @@
+WORD(5) 
+<*> 
\ No newline at end of file
diff --git a/plugins/sudoers/regress/sudoers/test11.toke.out.ok b/plugins/sudoers/regress/sudoers/test11.toke.out.ok
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/plugins/sudoers/regress/sudoers/test12.in b/plugins/sudoers/regress/sudoers/test12.in
new file mode 100644 (file)
index 0000000..23bda4a
--- /dev/null
@@ -0,0 +1 @@
+user ALL = (ALL)
diff --git a/plugins/sudoers/regress/sudoers/test12.out.ok b/plugins/sudoers/regress/sudoers/test12.out.ok
new file mode 100644 (file)
index 0000000..c2b9d28
--- /dev/null
@@ -0,0 +1,4 @@
+Parse error in sudoers near line 1.
+
+
+
diff --git a/plugins/sudoers/regress/sudoers/test12.toke.ok b/plugins/sudoers/regress/sudoers/test12.toke.ok
new file mode 100644 (file)
index 0000000..a1995f0
--- /dev/null
@@ -0,0 +1,2 @@
+WORD(5) ALL = ( ALL ) 
+<*> 
\ No newline at end of file
diff --git a/plugins/sudoers/regress/sudoers/test13.in b/plugins/sudoers/regress/sudoers/test13.in
new file mode 100644 (file)
index 0000000..b8002bc
--- /dev/null
@@ -0,0 +1 @@
+user ALL = (ALL)
\ No newline at end of file
diff --git a/plugins/sudoers/regress/sudoers/test13.out.ok b/plugins/sudoers/regress/sudoers/test13.out.ok
new file mode 100644 (file)
index 0000000..c2b9d28
--- /dev/null
@@ -0,0 +1,4 @@
+Parse error in sudoers near line 1.
+
+
+
diff --git a/plugins/sudoers/regress/sudoers/test13.toke.ok b/plugins/sudoers/regress/sudoers/test13.toke.ok
new file mode 100644 (file)
index 0000000..e189ffd
--- /dev/null
@@ -0,0 +1 @@
+WORD(5) ALL = ( ALL ) <*> 
\ No newline at end of file
diff --git a/plugins/sudoers/regress/sudoers/test9.in b/plugins/sudoers/regress/sudoers/test9.in
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/plugins/sudoers/regress/sudoers/test9.out.ok b/plugins/sudoers/regress/sudoers/test9.out.ok
new file mode 100644 (file)
index 0000000..ea87d79
--- /dev/null
@@ -0,0 +1,4 @@
+Parses OK.
+
+
+
diff --git a/plugins/sudoers/regress/sudoers/test9.toke.ok b/plugins/sudoers/regress/sudoers/test9.toke.ok
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/plugins/sudoers/regress/sudoers/test9.toke.out.ok b/plugins/sudoers/regress/sudoers/test9.toke.out.ok
new file mode 100644 (file)
index 0000000..e69de29