From 2b066ec1b8801b08052a68282ce34ef9c425ae8f Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 21 May 2005 01:35:34 +0000 Subject: * at long last, a more full-bodied snapshot 2005-05-20 Frank Ch. Eigler 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. --- testsuite/parseok/five.stp | 2 +- testsuite/parseok/four.stp | 2 +- testsuite/parseok/one.stp | 2 +- testsuite/parseok/seven.stp | 26 ++++++++++++++++++++++++++ testsuite/parseok/six.stp | 2 +- testsuite/parseok/three.stp | 2 +- testsuite/parseok/two.stp | 2 +- 7 files changed, 32 insertions(+), 6 deletions(-) create mode 100755 testsuite/parseok/seven.stp (limited to 'testsuite/parseok') 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) { -- cgit