* testsuite/systemtap.maps/absentstats.exp: Added dyninst testing.
* testsuite/systemtap.maps/elision.exp: Ditto.
* testsuite/systemtap.maps/exists.exp: Ditto.
* testsuite/systemtap.maps/foreach_fail.exp: Ditto.
* testsuite/systemtap.maps/foreach_limit.exp: Ditto.
* testsuite/systemtap.maps/foreach_limit2.exp: Ditto.
* testsuite/systemtap.maps/hist_in_string.exp: Ditto.
* testsuite/systemtap.maps/ii.exp: Ditto.
* testsuite/systemtap.maps/iiiiii.exp: Ditto.
* testsuite/systemtap.maps/is.exp: Ditto.
* testsuite/systemtap.maps/ix.exp: Ditto.
* testsuite/systemtap.maps/ix_clear.exp: Ditto.
* testsuite/systemtap.maps/ix_clear2.exp: Ditto.
* testsuite/systemtap.maps/ix_clear3.exp: Ditto.
* testsuite/systemtap.maps/ix_hist.exp: Ditto.
* testsuite/systemtap.maps/linear.exp: Ditto.
* testsuite/systemtap.maps/linear_0.exp: Ditto.
* testsuite/systemtap.maps/linear_bad.exp: Ditto.
* testsuite/systemtap.maps/linear_empty.exp: Ditto.
* testsuite/systemtap.maps/linear_large.exp: Ditto.
* testsuite/systemtap.maps/linear_large_neg.exp: Ditto.
* testsuite/systemtap.maps/linear_nearlyempty.exp: Ditto.
* testsuite/systemtap.maps/linear_neg.exp: Ditto.
* testsuite/systemtap.maps/linear_over.exp: Ditto.
* testsuite/systemtap.maps/linear_overunder.exp: Ditto.
* testsuite/systemtap.maps/linear_under.exp: Ditto.
* testsuite/systemtap.maps/log.exp: Ditto.
* testsuite/systemtap.maps/log_edge.exp: Ditto.
* testsuite/systemtap.maps/map_hash.exp: Ditto.
* testsuite/systemtap.maps/map_wrap.exp: Ditto.
* testsuite/systemtap.pass1-4/debugtypes.exp: Ditto.
# PR 2142+2610
set test "absentstats"
+set script $srcdir/$subdir/$test.stp
if {![installtest_p]} { untested $test; return }
-set ok 0
-set ko 0
-
-spawn stap -DMAXERRORS=20 $srcdir/$subdir/$test.stp
-# spawn echo hello children 0
-expect {
- -timeout 150
- -re {^ERROR: empty aggregate[^\r]*\r} { incr ko ; exp_continue }
- -re {^WARNING: Number of errors} { incr ko ; exp_continue }
- -re {^0\r} { incr ok ; exp_continue }
- -re {\n} { exp_continue }
- eof { }
+foreach runtime [get_runtime_list] {
+ set ok 0
+ set ko 0
+
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap -DMAXERRORS=20 --runtime=$runtime $script
+ lappend testname "($runtime)"
+ } else {
+ spawn stap -DMAXERRORS=20 $script
+ }
+ expect {
+ -timeout 150
+ -re {^ERROR: empty aggregate[^\r]*\r} { incr ko ; exp_continue }
+ -re {^WARNING: Number of errors} { incr ko ; exp_continue }
+ -re {^0\r} { incr ok ; exp_continue }
+ -re {\n} { exp_continue }
+ eof { }
+ }
+ catch close
+ wait
+
+ # As of stap 1.5, @count and @sum are allowed, the rest fail
+ if {$ok == 4 && $ko == 11} {
+ pass $testname
+ } else {
+ fail "$testname ($ok $ko)"
+ }
+
+ set ok 0
+ set ko 0
+
+ if {$runtime != ""} {
+ spawn stap -DMAXERRORS=20 --runtime=$runtime $script --compatible=1.4
+ } else {
+ spawn stap -DMAXERRORS=20 $script --compatible=1.4
+ }
+ expect {
+ -timeout 150
+ -re {^ERROR: empty aggregate[^\r]*\r} { incr ko ; exp_continue }
+ -re {^WARNING: Number of errors} { incr ko ; exp_continue }
+ -re {^0\r} { incr ok ; exp_continue }
+ -re {\n} { exp_continue }
+ eof { }
+ }
+ catch close
+ wait
+
+ # In stap <= 1.4, only @count is allowed, the rest fail
+ if {$ok == 2 && $ko == 13} {
+ pass "$testname 1.4"
+ } else {
+ fail "$testname 1.4 ($ok $ko)"
+ }
}
-catch close
-wait
-
-# As of stap 1.5, @count and @sum are allowed, the rest fail
-if {$ok == 4 && $ko == 11} then { pass $test } else { fail "$test ($ok $ko)" }
-
-
-set ok 0
-set ko 0
-
-spawn stap -DMAXERRORS=20 $srcdir/$subdir/$test.stp --compatible=1.4
-# spawn echo hello children 0
-expect {
- -timeout 150
- -re {^ERROR: empty aggregate[^\r]*\r} { incr ko ; exp_continue }
- -re {^WARNING: Number of errors} { incr ko ; exp_continue }
- -re {^0\r} { incr ok ; exp_continue }
- -re {\n} { exp_continue }
- eof { }
-}
-catch close
-wait
-
-# In stap <= 1.4, only @count is allowed, the rest fail
-if {$ok == 2 && $ko == 13} then { pass "$test 1.4" } else { fail "$test 1.4 ($ok $ko)" }
}
-for {set i -1} { $i < 4} {incr i} {
- set test "elision-$i"
- set ::result_string $myresults($i)
- stap_run_exact "elision$i" $srcdir/$subdir/elision.stp -DHIST_ELISION=$i
+set script $srcdir/$subdir/elision.stp
+foreach runtime [get_runtime_list] {
+ for {set i -1} { $i < 4} {incr i} {
+ set test "elision$i"
+ set ::result_string $myresults($i)
+
+ if {$runtime != ""} {
+ lappend test "($runtime)"
+ stap_run_exact $test $script -DHIST_ELISION=$i --runtime=$runtime
+ } else {
+ stap_run_exact $test $script -DHIST_ELISION=$i
+ }
+ }
}
-
-
hello there
emtpy string still there}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
set test foreach_fail
if {![installtest_p]} { untested $test; return }
-spawn stap $srcdir/$subdir/$test.stp
-expect {
- -timeout 60
- timeout {
- fail "$test timed out" }
- eof {
- fail "$test unexpected EOF" }
- -re "semantic error:" { pass "$test correctly failed to compile" }
+foreach runtime [get_runtime_list] {
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap --runtime=$runtime $srcdir/$subdir/$test.stp
+ lappend testname "($runtime)"
+ } else {
+ spawn stap $srcdir/$subdir/$test.stp
+ }
+ expect {
+ -timeout 60
+ timeout {
+ fail "$testname timed out" }
+ eof {
+ fail "$testname unexpected EOF" }
+ -re "semantic error:" { pass "$testname correctly failed to compile" }
+ }
+ close
+ wait
}
-close
-wait
Done.}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
Done.}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 128
}
-stap_run2 $srcdir/$subdir/$test.stp
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
foo[9] = 285
foo[10] = 385}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
foo[1,1,1,1,0] = 4
foo[1,1,1,1,1] = 5}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
foo[9] = # 81
foo[10] = # 100}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
Run a quick foreach without sorting...
complete sum of foo:1243}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
set pass_result {foo\[1\] = 1 1*ERROR: empty aggregate*}
-
-# spawn test
-spawn stap $srcdir/$subdir/$test.stp
-expect {
- -timeout 150
- $pass_result {
- pass "$test passed"
- }
- timeout {
- exec kill -INT -[exp_pid]
- fail "$test timed out"
- }
- eof {
- fail "$test unexpected EOF" }
- -re "semantic error:" { fail "$test compilation" }
+foreach runtime [get_runtime_list] {
+ # spawn test
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap --runtime=$runtime $srcdir/$subdir/$test.stp
+ lappend testname "($runtime)"
+ } else {
+ spawn stap $srcdir/$subdir/$test.stp
+ }
+ expect {
+ -timeout 150
+ $pass_result {
+ pass "$testname passed"
+ }
+ timeout {
+ exec kill -INT -[exp_pid]
+ fail "$testname timed out"
+ }
+ eof {
+ fail "$testname unexpected EOF" }
+ -re "semantic error:" { fail "$testname compilation" }
+ }
+ catch { close }
+ wait
}
-catch { close }
-wait
set pass_result {foo\[1\] = 1 1*ERROR: empty aggregate*}
-# spawn test
-spawn stap $srcdir/$subdir/$test.stp
-expect {
- -timeout 150
- $pass_result {
- pass "$test passed"
- }
- timeout {
- exec kill -INT -[exp_pid]
- fail "$test timed out"
- }
- eof {
- fail "$test unexpected EOF" }
- -re "semantic error:" { fail "$test compilation" }
+foreach runtime [get_runtime_list] {
+ # spawn test
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap --runtime=$runtime $srcdir/$subdir/$test.stp
+ lappend testname "($runtime)"
+ } else {
+ spawn stap $srcdir/$subdir/$test.stp
+ }
+ expect {
+ -timeout 150
+ $pass_result {
+ pass "$testname passed"
+ }
+ timeout {
+ exec kill -INT -[exp_pid]
+ fail "$testname timed out"
+ }
+ eof {
+ fail "$testname unexpected EOF" }
+ -re "semantic error:" { fail "$testname compilation" }
+ }
+ catch { close }
+ wait
}
-catch { close }
-wait
set pass_result {*ERROR: empty aggregate*}
-# spawn test
-spawn stap $srcdir/$subdir/$test.stp
-expect {
- -timeout 150
- $pass_result {
- pass "$test passed"
- }
- timeout {
- exec kill -INT -[exp_pid]
- fail "$test timed out"
- }
- eof {
- fail "$test unexpected EOF" }
- -re "semantic error:" { fail "$test compilation" }
+foreach runtime [get_runtime_list] {
+ # spawn test
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap --runtime=$runtime $srcdir/$subdir/$test.stp
+ lappend testname "($runtime)"
+ } else {
+ spawn stap $srcdir/$subdir/$test.stp
+ }
+ expect {
+ -timeout 150
+ $pass_result {
+ pass "$testname passed"
+ }
+ timeout {
+ exec kill -INT -[exp_pid]
+ fail "$testname timed out"
+ }
+ eof {
+ fail "$testname unexpected EOF" }
+ -re "semantic error:" { fail "$testname compilation" }
+ }
+ catch { close }
+ wait
}
-catch { close }
-wait
4096 | 0
}
-stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime -DMAXACTION=10000
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
+ }
+}
1500 | 0
}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
if {![installtest_p]} { untested $test; return }
-set ok 0
-
-spawn stap -DMAXACTION=10000 $srcdir/$subdir/$test.stp
-expect {
- -timeout 150
- "WARNING: histogram: interval cannot be zero." {
- incr ok
- exp_continue
+set script $srcdir/$subdir/$test.stp
+foreach runtime [get_runtime_list] {
+ set ok 0
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap -DMAXACTION=10000 --runtime=$runtime $script
+ lappend testname "($runtime)"
+ } else {
+ spawn stap -DMAXACTION=10000 $script
}
- eof { }
-}
-catch close
-wait
+ expect {
+ -timeout 150
+ "WARNING: histogram: interval cannot be zero." {
+ incr ok
+ exp_continue
+ }
+ eof { }
+ }
+ catch close
+ wait
-if {$ok == 1} {
- pass $test
-} else {
- fail $test
+ if {$ok == 1} {
+ pass $testname
+ } else {
+ fail $testname
+ }
}
if {![installtest_p]} { untested $test; return }
-set ok 0
+set script $srcdir/$subdir/$test.stp
+foreach runtime [get_runtime_list] {
+ set ok 0
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap -DMAXACTION=10000 --runtime=$runtime $script
+ lappend testname "($runtime)"
+ } else {
+ spawn stap -DMAXACTION=10000 $script
+ }
-spawn stap -DMAXACTION=10000 $srcdir/$subdir/$test.stp
-expect {
- -timeout 150
- "WARNING: histogram: Number of buckets" {
- incr ok
- exp_continue
+ expect {
+ -timeout 150
+ "WARNING: histogram: Number of buckets" {
+ incr ok
+ exp_continue
+ }
+ eof { }
}
- eof { }
-}
-catch close
-wait
+ catch close
+ wait
-if {$ok == 1} {
- pass $test
-} else {
- fail $test
+ if {$ok == 1} {
+ pass $testname
+ } else {
+ fail $testname
+ }
}
set test "linear_empty"
set ::result_string {count=0}
-stap_run2 $srcdir/$subdir/$test.stp -w
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp -w --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp -w
+ }
+}
>1000000000 |@ 1
}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
0 |@ 1
}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
1050 | 0
}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
if {![installtest_p]} { untested $test; return }
-set ok 0
-
-spawn stap -DMAXACTION=10000 $srcdir/$subdir/$test.stp
-expect {
- -timeout 150
- "Number of buckets" {
- incr ok
- exp_continue
+set script $srcdir/$subdir/$test.stp
+foreach runtime [get_runtime_list] {
+ set ok 0
+ set testname $test
+ if {$runtime != ""} {
+ spawn stap -DMAXACTION=10000 --runtime=$runtime $script
+ lappend testname "($runtime)"
+ } else {
+ spawn stap -DMAXACTION=10000 $script
}
- eof { }
-}
-catch close
-wait
+ expect {
+ -timeout 150
+ "Number of buckets" {
+ incr ok
+ exp_continue
+ }
+ eof { }
+ }
+ catch close
+ wait
-if {$ok == 1} {
- pass $test
-} else {
- fail $test
+ if {$ok == 1} {
+ pass $testname
+ } else {
+ fail $testname
+ }
}
>100 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 9000
}
-stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime -DMAXACTION=10000
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
+ }
+}
>1000 |@@@@@@@ 102
}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
1900 | 0
}
-stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime -DMAXACTION=10000
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
+ }
+}
4611686018427387904 |@ 1
}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
bucket 66: 2
bucket 67: 1}
-stap_run2 $srcdir/$subdir/$test.stp
-
-
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test.stp
+ }
+}
array[3]=0x1
array[2]=0x1
array[1]=0x1}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
#SI Regular Map Test
set test "map_hash_SI.stp"
array["startx"]=0x1
array["stat"]=0x1
array["stdbuf"]=0x1}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
#SSI Regular Map Test
set test "map_hash_SSI.stp"
array["startx","startx"]=0x1
array["stat","stat"]=0x1
array["stdbuf","stdbuf"]=0x1}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
#II Statistics Map Test
set test "map_hash_stat_II.stp"
array[2046]: count:1 sum:1 avg:1 min:1 max:1
array[2047]: count:1 sum:1 avg:1 min:1 max:1
array[2048]: count:1 sum:1 avg:1 min:1 max:1}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
#SI Statistics Map Test
set test "map_hash_stat_SI.stp"
array["startx"]: count:1 sum:1 avg:1 min:1 max:1
array["stat"]: count:1 sum:1 avg:1 min:1 max:1
array["stdbuf"]: count:1 sum:1 avg:1 min:1 max:1}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
#SSI Statistics Map Test
set test "map_hash_stat_SSI.stp"
array["startx", "startx"]: count:1 sum:1 avg:1 min:1 max:1
array["stat", "stat"]: count:1 sum:1 avg:1 min:1 max:1
array["stdbuf", "stdbuf"]: count:1 sum:1 avg:1 min:1 max:1}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
foo[7]=0x7
foo[6]=0x6
foo[5]=0x5}
-stap_run2 $srcdir/$subdir/$test
+
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
# Statistics Valued Array Test
set test "map_wrap2.stp"
foo[7]: count:1 sum:7 avg:7 min:7 max:7
foo[8]: count:1 sum:8 avg:8 min:8 max:8
foo[9]: count:1 sum:9 avg:9 min:9 max:9}
-stap_run2 $srcdir/$subdir/$test
+foreach runtime [get_runtime_list] {
+ if {$runtime != ""} {
+ stap_run2 $srcdir/$subdir/$test --runtime=$runtime
+ } else {
+ stap_run2 $srcdir/$subdir/$test
+ }
+}
}
pass "compiling $test.cxx"
-if {[stap_run_batch $srcdir/$subdir/$test.stp] == 0} {
- pass "compiling $test.stp"
-} else {
- fail "compiling $test.stp"
+foreach runtime [get_runtime_list] {
+ set testname "compiling $test.stp"
+ if {$runtime != ""} {
+ set rc [stap_run_batch $srcdir/$subdir/$test.stp --runtime=$runtime]
+ lappend testname "($runtime)"
+ } else {
+ set rc [stap_run_batch $srcdir/$subdir/$test.stp]
+ }
+
+ if {$rc == 0} { pass $testname } else { fail $testname }
}