From a08658b46df41f1570e212a411c203acee9f15e8 Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Wed, 22 Jul 2009 15:43:46 +0000 Subject: [PATCH] Add a couple of testcases around change_profile keyword and different types of profile names. --- parser/tst/simple_tests/simple_ok_change_profile_4.sd | 10 ++++++++++ parser/tst/simple_tests/simple_ok_change_profile_5.sd | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 parser/tst/simple_tests/simple_ok_change_profile_4.sd create mode 100644 parser/tst/simple_tests/simple_ok_change_profile_5.sd diff --git a/parser/tst/simple_tests/simple_ok_change_profile_4.sd b/parser/tst/simple_tests/simple_ok_change_profile_4.sd new file mode 100644 index 000000000..47c7a66e5 --- /dev/null +++ b/parser/tst/simple_tests/simple_ok_change_profile_4.sd @@ -0,0 +1,10 @@ +# +#=DESCRIPTION change_profile with a variable (LP: #390810) +#=EXRESULT PASS +# + +@{LIBVIRT}="libvirt" + +/usr/bin/foo { + change_profile -> @{LIBVIRT}-foo, +} diff --git a/parser/tst/simple_tests/simple_ok_change_profile_5.sd b/parser/tst/simple_tests/simple_ok_change_profile_5.sd new file mode 100644 index 000000000..ef4153e8d --- /dev/null +++ b/parser/tst/simple_tests/simple_ok_change_profile_5.sd @@ -0,0 +1,10 @@ +# +#=DESCRIPTION change_profile with variable+regex (LP: #390810) +#=EXRESULT PASS +# + +@{LIBVIRT}="libvirt" + +/usr/bin/foo { + change_profile -> @{LIBVIRT}-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*, +}