From aafa7871f89484e36a7554cd943b4f827f4e3112 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 13 Oct 2009 11:50:34 -0700 Subject: Add a test for CONFIG_FOO wildcards --- testsuite/semok/config_wildcard.stp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 testsuite/semok/config_wildcard.stp (limited to 'testsuite/semok') diff --git a/testsuite/semok/config_wildcard.stp b/testsuite/semok/config_wildcard.stp new file mode 100755 index 00000000..4e5a6150 --- /dev/null +++ b/testsuite/semok/config_wildcard.stp @@ -0,0 +1,25 @@ +#! stap -p2 + +# check that wildcards work in CONFIG checks +probe + %( CONFIG_NFSD == "m" || CONFIG_NFSD == "y" %? + %( CONFIG_NFSD == "[my]" && + CONFIG_NFSD == "[a-z]" && + CONFIG_NFSD == "?" && + CONFIG_NFSD == "*" + %? begin + %: noprobe + %) + %: + %( CONFIG_NFSD != "[my]" && + CONFIG_NFSD != "[a-z]" && + CONFIG_NFSD != "?" && + CONFIG_NFSD == "*" && + CONFIG_NFSD == "" + %? begin + %: noprobe + %) + %) +{ + exit() +} -- cgit