2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Add trivial sudoedit parsing tests.

This commit is contained in:
Todd C. Miller 2014-05-12 09:52:29 -06:00
parent 3c5353c2be
commit 2e3fbaa2c5
7 changed files with 27 additions and 0 deletions

View File

@ -332,6 +332,12 @@ plugins/sudoers/regress/sudoers/test13.toke.ok
plugins/sudoers/regress/sudoers/test14.in plugins/sudoers/regress/sudoers/test14.in
plugins/sudoers/regress/sudoers/test14.out.ok plugins/sudoers/regress/sudoers/test14.out.ok
plugins/sudoers/regress/sudoers/test14.toke.ok plugins/sudoers/regress/sudoers/test14.toke.ok
plugins/sudoers/regress/sudoers/test15.in
plugins/sudoers/regress/sudoers/test15.out.ok
plugins/sudoers/regress/sudoers/test15.toke.ok
plugins/sudoers/regress/sudoers/test16.in
plugins/sudoers/regress/sudoers/test16.out.ok
plugins/sudoers/regress/sudoers/test16.toke.ok
plugins/sudoers/regress/sudoers/test2.in plugins/sudoers/regress/sudoers/test2.in
plugins/sudoers/regress/sudoers/test2.out.ok plugins/sudoers/regress/sudoers/test2.out.ok
plugins/sudoers/regress/sudoers/test2.toke.ok plugins/sudoers/regress/sudoers/test2.toke.ok

View File

@ -0,0 +1,2 @@
# Test parsing of sudoedit rule
user ALL = sudoedit /etc/motd

View File

@ -0,0 +1,5 @@
Parses OK.
user ALL = sudoedit /etc/motd

View File

@ -0,0 +1,2 @@
#
WORD(5) ALL = COMMAND ARG

View File

@ -0,0 +1,3 @@
# Test parsing of sudoedit rule in a Cmnd_Alias
Cmnd_Alias EDIT = sudoedit /etc/motd
user ALL = EDIT

View File

@ -0,0 +1,6 @@
Parses OK.
Cmnd_Alias EDIT = sudoedit /etc/motd
user ALL = EDIT

View File

@ -0,0 +1,3 @@
#
CMNDALIAS ALIAS = COMMAND ARG
WORD(5) ALL = ALIAS