summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorfche <fche>2005-02-12 02:28:43 +0000
committerfche <fche>2005-02-12 02:28:43 +0000
commit2f1a1aead38c1dcd329a694dd8d3290b37320466 (patch)
tree3700f34d81fadb3b3f2cf850cce7eaec73d70659 /testsuite
downloadsystemtap-steved-2f1a1aead38c1dcd329a694dd8d3290b37320466.tar.gz
systemtap-steved-2f1a1aead38c1dcd329a694dd8d3290b37320466.tar.xz
systemtap-steved-2f1a1aead38c1dcd329a694dd8d3290b37320466.zip
* parser prototype snapshot
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/parseko/one.stp2
-rwxr-xr-xtestsuite/parseko/two.stp4
-rwxr-xr-xtestsuite/parseok/one.stp2
-rwxr-xr-xtestsuite/parseok/two.stp12
4 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/parseko/one.stp b/testsuite/parseko/one.stp
new file mode 100755
index 00000000..f288e930
--- /dev/null
+++ b/testsuite/parseko/one.stp
@@ -0,0 +1,2 @@
+#! stap
+"not a probe"
diff --git a/testsuite/parseko/two.stp b/testsuite/parseko/two.stp
new file mode 100755
index 00000000..64a24afe
--- /dev/null
+++ b/testsuite/parseko/two.stp
@@ -0,0 +1,4 @@
+#! stap
+probe foo {
+ a +
+}
diff --git a/testsuite/parseok/one.stp b/testsuite/parseok/one.stp
new file mode 100755
index 00000000..b3ca32b2
--- /dev/null
+++ b/testsuite/parseok/one.stp
@@ -0,0 +1,2 @@
+#! stap
+# test
diff --git a/testsuite/parseok/two.stp b/testsuite/parseok/two.stp
new file mode 100755
index 00000000..3776633b
--- /dev/null
+++ b/testsuite/parseok/two.stp
@@ -0,0 +1,12 @@
+#! stap
+
+probe kernel:systemcall("foo")
+{
+ array[idx] << value;
+ if (global > 5) { global -- } else ;
+}
+
+probe systemtap:end
+{
+ function("value", 4+8);
+}