Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/bench.exp

raw
1 set test "bench"
2
3 if {![installtest_p]} {untested $test; return}
4
5 foreach runtime [get_runtime_list] {
6 set test "bench"
7 if {$runtime != ""} {
8 lappend test "($runtime)"
9 spawn stap -tu $srcdir/$subdir/bench.stp --runtime=$runtime
10 } else {
11 spawn stap -tu $srcdir/$subdir/bench.stp
12 }
13 set ok 0
14 expect {
15 -timeout 180
16 -re {^[^\r\n]+, hits: [0-9]+[^\r\n]+\r\n} { incr ok; exp_continue }
17 timeout { fail "$test (timeout)" }
18 eof { }
19 }
20 catch { close }; catch { wait }
21 if {$ok >= 18} { pass "$test" } { fail "$test ($ok)" }
22 }