From a64bd36b339d8b40021c54a411e5ff25d08f0111 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 23 Feb 2011 15:26:13 -0500 Subject: [PATCH] convert test2 to use testsudoers --- plugins/sudoers/regress/testsudoers/test2.out | 9 +++++++++ .../sudoers/regress/{visudo => testsudoers}/test2.sh | 10 +++++----- plugins/sudoers/regress/visudo/test2.out | 0 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 plugins/sudoers/regress/testsudoers/test2.out rename plugins/sudoers/regress/{visudo => testsudoers}/test2.sh (70%) delete mode 100644 plugins/sudoers/regress/visudo/test2.out diff --git a/plugins/sudoers/regress/testsudoers/test2.out b/plugins/sudoers/regress/testsudoers/test2.out new file mode 100644 index 000000000..ad7fc3976 --- /dev/null +++ b/plugins/sudoers/regress/testsudoers/test2.out @@ -0,0 +1,9 @@ +Parses OK. + + + +%:C/non UNIX 0 c ALL = (ALL) ALL +%:C/non\'UNIX\'1 c ALL = (ALL) ALL +%:C/non"UNIX"0 c ALL = (ALL) ALL +%:C/non_UNIX_0 c ALL = (ALL) ALL +%:C/non\'UNIX_3 c ALL = (ALL) ALL diff --git a/plugins/sudoers/regress/visudo/test2.sh b/plugins/sudoers/regress/testsudoers/test2.sh similarity index 70% rename from plugins/sudoers/regress/visudo/test2.sh rename to plugins/sudoers/regress/testsudoers/test2.sh index 6014a0de6..83cc00dd4 100755 --- a/plugins/sudoers/regress/visudo/test2.sh +++ b/plugins/sudoers/regress/testsudoers/test2.sh @@ -4,9 +4,9 @@ # See http://www.sudo.ws/bugs/show_bug.cgi?id=437 # -WANT=${SRCDIR-.}/regress/visudo/test1.ok -GOT=vs_test1.out -./visudo -c -f- > $GOT < $GOT </dev/null; then - echo "visudo 2: OK" + echo "testsudoers 2: OK" else - echo "visudo 2: FAILED" + echo "testsudoers 2: FAILED" diff $WANT $GOT fi diff --git a/plugins/sudoers/regress/visudo/test2.out b/plugins/sudoers/regress/visudo/test2.out deleted file mode 100644 index e69de29bb..000000000 -- 2.40.0