]> sourceware.org Git - systemtap.git/commitdiff
Add a test for CONFIG_FOO wildcards
authorJosh Stone <jistone@redhat.com>
Tue, 13 Oct 2009 18:50:34 +0000 (11:50 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 13 Oct 2009 18:50:34 +0000 (11:50 -0700)
testsuite/semok/config_wildcard.stp [new file with mode: 0755]

diff --git a/testsuite/semok/config_wildcard.stp b/testsuite/semok/config_wildcard.stp
new file mode 100755 (executable)
index 0000000..4e5a615
--- /dev/null
@@ -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()
+}
This page took 0.031014 seconds and 5 git commands to generate.