From 92a569fdb3d34fd5de6a1de2734b87e05bd2d74c Mon Sep 17 00:00:00 2001 From: John Johansen Date: Fri, 16 Nov 2007 09:22:49 +0000 Subject: [PATCH] profile namespace tests --- parser/tst/simple_tests/profile_ns_bad1.sd | 31 +++++++++++++++++ parser/tst/simple_tests/profile_ns_ok1.sd | 19 +++++++++++ parser/tst/simple_tests/profile_ns_ok2.sd | 34 +++++++++++++++++++ .../simple_ok_change_profile_3.sd | 7 ++++ 4 files changed, 91 insertions(+) create mode 100644 parser/tst/simple_tests/profile_ns_bad1.sd create mode 100644 parser/tst/simple_tests/profile_ns_ok1.sd create mode 100644 parser/tst/simple_tests/profile_ns_ok2.sd create mode 100644 parser/tst/simple_tests/simple_ok_change_profile_3.sd diff --git a/parser/tst/simple_tests/profile_ns_bad1.sd b/parser/tst/simple_tests/profile_ns_bad1.sd new file mode 100644 index 000000000..6fa1d5516 --- /dev/null +++ b/parser/tst/simple_tests/profile_ns_bad1.sd @@ -0,0 +1,31 @@ +# +# $Id: profile_ns_bad1.sd 81 2006-08-04 18:14:49Z jrjohansen $ +#=DESCRIPTION collision same profile, same namespace +#=EXRESULT FAIL +# vim:syntax=subdomain +# Last Modified: Sun Apr 17 19:44:44 2005 +# +foo:/does/not/exist { + #include + + /usr/X11R6/lib/lib*so* rrr, + /does/not/exist r, + /var/log/messages www, + /tmp/sd*.foo rwrwwrll, + /bin/cat pxpxpxpxpx, + /bin/ls ixixixix, + /bin/echo uxuxuxuxux, +} + +foo:/does/not/exist { + #include + + /usr/X11R6/lib/lib*so* rrr, + /does/not/exist r, + /var/log/messages www, + /tmp/sd*.foo rwrwwrll, + /bin/cat pxpxpxpxpx, + /bin/ls ixixixix, + /bin/echo uxuxuxuxux, +} + diff --git a/parser/tst/simple_tests/profile_ns_ok1.sd b/parser/tst/simple_tests/profile_ns_ok1.sd new file mode 100644 index 000000000..22aa9531f --- /dev/null +++ b/parser/tst/simple_tests/profile_ns_ok1.sd @@ -0,0 +1,19 @@ +# +# $Id: profile_basic_ok1.sd 81 2006-08-04 18:14:49Z jrjohansen $ +#=DESCRIPTION Basic namespace test, duplicate mode bits +#=EXRESULT PASS +# vim:syntax=subdomain +# Last Modified: Sun Apr 17 19:44:44 2005 +# +foo:/does/not/exist { + #include + + /usr/X11R6/lib/lib*so* rrr, + /does/not/exist r, + /var/log/messages www, + /tmp/sd*.foo rwrwwrll, + /bin/cat pxpxpxpxpx, + /bin/ls ixixixix, + /bin/echo uxuxuxuxux, +} + diff --git a/parser/tst/simple_tests/profile_ns_ok2.sd b/parser/tst/simple_tests/profile_ns_ok2.sd new file mode 100644 index 000000000..af9140243 --- /dev/null +++ b/parser/tst/simple_tests/profile_ns_ok2.sd @@ -0,0 +1,34 @@ +# +# $Id: profile_ns_ok2.sd 81 2006-08-04 18:14:49Z jrjohansen $ +#=DESCRIPTION same profile different namespaces test, duplicate mode bits +#=EXRESULT PASS +# vim:syntax=subdomain +# Last Modified: Sun Apr 17 19:44:44 2005 +# +/does/not/exist { + /usr/X11R6/lib/lib*so* rrr, + /does/not/exist r, + /var/log/messages www, + /tmp/sd*.foo rwrwwrll, + /bin/cat pxpxpxpxpx, + /bin/ls ixixixix, +} + +foo:/does/not/exist { + /usr/X11R6/lib/lib*so* rrr, + /does/not/exist r, + /var/log/messages www, + /tmp/sd*.foo rwrwwrll, + /bin/cat pxpxpxpxpx, + /bin/ls ixixixix, +} + +bar:/does/not/exist { + /usr/X11R6/lib/lib*so* rrr, + /does/not/exist r, + /var/log/messages www, + /tmp/sd*.foo rwrwwrll, + /bin/cat pxpxpxpxpx, + /bin/ls ixixixix, +} + diff --git a/parser/tst/simple_tests/simple_ok_change_profile_3.sd b/parser/tst/simple_tests/simple_ok_change_profile_3.sd new file mode 100644 index 000000000..90c9272d3 --- /dev/null +++ b/parser/tst/simple_tests/simple_ok_change_profile_3.sd @@ -0,0 +1,7 @@ +# +#=DESCRIPTION change_profile with name space +#=EXRESULT PASS +# +/usr/bin/foo { + change_profile foo:/bin/foo, +}