summaryrefslogtreecommitdiffstats
path: root/testsuite/semok
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-10-13 11:50:34 -0700
committerJosh Stone <jistone@redhat.com>2009-10-13 11:50:34 -0700
commitaafa7871f89484e36a7554cd943b4f827f4e3112 (patch)
treeba4d67ab72faaa324919718b5d901b984f6a7683 /testsuite/semok
parent07940db192f25caf77b9ffbb7d35150ace5d5404 (diff)
downloadsystemtap-steved-aafa7871f89484e36a7554cd943b4f827f4e3112.tar.gz
systemtap-steved-aafa7871f89484e36a7554cd943b4f827f4e3112.tar.xz
systemtap-steved-aafa7871f89484e36a7554cd943b4f827f4e3112.zip
Add a test for CONFIG_FOO wildcards
Diffstat (limited to 'testsuite/semok')
-rwxr-xr-xtestsuite/semok/config_wildcard.stp25
1 files changed, 25 insertions, 0 deletions
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()
+}