summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok
diff options
context:
space:
mode:
authorfche <fche>2005-05-21 01:35:34 +0000
committerfche <fche>2005-05-21 01:35:34 +0000
commit2b066ec1b8801b08052a68282ce34ef9c425ae8f (patch)
treed0b8aadc2521e2fbf1adde2d330bd7a941587087 /testsuite/parseok
parenta199030a268b007580b57a83b511f97bbb65996f (diff)
downloadsystemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.tar.gz
systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.tar.xz
systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.zip
* at long last, a more full-bodied snapshot
2005-05-20 Frank Ch. Eigler <fche@redhat.com> Many changes throughout. Partial sketch of translation output. * elaborate.*: Elaboration pass. * translate.*: Translation pass. * staptree.*: Simplified for visitor concept. * main.cxx: Translator mainline. * *test.cxx: Removed. * testsuite/*: Some new tests, some changed for newer syntax.
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-xtestsuite/parseok/five.stp2
-rwxr-xr-xtestsuite/parseok/four.stp2
-rwxr-xr-xtestsuite/parseok/one.stp2
-rwxr-xr-xtestsuite/parseok/seven.stp26
-rwxr-xr-xtestsuite/parseok/six.stp2
-rwxr-xr-xtestsuite/parseok/three.stp2
-rwxr-xr-xtestsuite/parseok/two.stp2
7 files changed, 32 insertions, 6 deletions
diff --git a/testsuite/parseok/five.stp b/testsuite/parseok/five.stp
index a475807e..b7690943 100755
--- a/testsuite/parseok/five.stp
+++ b/testsuite/parseok/five.stp
@@ -1,4 +1,4 @@
-#! parsetest
+#! stap -p1
probe lkst("process_contextswitch") {}
probe syscall("name").return {}
diff --git a/testsuite/parseok/four.stp b/testsuite/parseok/four.stp
index d381b242..39c9ebd4 100755
--- a/testsuite/parseok/four.stp
+++ b/testsuite/parseok/four.stp
@@ -1,4 +1,4 @@
-#! parsetest
+#! stap -p1
probe syscall ("foo").foo.bar , syscall ("bar"), syscall ("*").return
{
diff --git a/testsuite/parseok/one.stp b/testsuite/parseok/one.stp
index 5b69767d..dab3b394 100755
--- a/testsuite/parseok/one.stp
+++ b/testsuite/parseok/one.stp
@@ -1,3 +1,3 @@
-#! parsetest
+#! stap -p1
# test
function k () { }
diff --git a/testsuite/parseok/seven.stp b/testsuite/parseok/seven.stp
new file mode 100755
index 00000000..8f692958
--- /dev/null
+++ b/testsuite/parseok/seven.stp
@@ -0,0 +1,26 @@
+#! stap -p1
+
+probe one { if (1) {} }
+probe two { if (2) {;} }
+probe three { if (3) ; }
+probe four { if (4) {} else ; }
+probe five { if (5) ; else {} }
+probe six { if (6) {} else {;} }
+probe seven { ; }
+probe eight { {} }
+probe nine { {;} }
+probe ten { a=1; }
+
+probe all
+{
+ if (1) {} ;
+ if (2) {;} ;
+ if (3) ; ;
+ if (4) {} else ; ;
+ if (5) ; else {} ;
+ if (6) {} else {;} ;
+ ; ;
+ {} ;
+ {;} ;
+ a=1
+}
diff --git a/testsuite/parseok/six.stp b/testsuite/parseok/six.stp
index 6fb9b764..bc16a336 100755
--- a/testsuite/parseok/six.stp
+++ b/testsuite/parseok/six.stp
@@ -1,4 +1,4 @@
-#! parsetest
+#! stap -p1
probe one
{
diff --git a/testsuite/parseok/three.stp b/testsuite/parseok/three.stp
index d2401877..1b31f6d8 100755
--- a/testsuite/parseok/three.stp
+++ b/testsuite/parseok/three.stp
@@ -1,4 +1,4 @@
-#! parsetest
+#! stap -p1
probe syscall ("foo")
{
diff --git a/testsuite/parseok/two.stp b/testsuite/parseok/two.stp
index fdcf335e..d18dd3e3 100755
--- a/testsuite/parseok/two.stp
+++ b/testsuite/parseok/two.stp
@@ -1,4 +1,4 @@
-#! parsetest
+#! stap -p1
probe syscall (231)
{