Debian Codegraph @

testsuite/systemtap.pass1-4/runok.exp

raw
1 set self runok
2
3 proc dyninst_kfails {test} {
4 }
5
6 foreach runtime [get_runtime_list] {
7 foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] {
8 set test $self/[file tail $file]
9 if {! [installtest_p]} { untested $test; continue }
10 if {$runtime != ""} {
11 verbose -log "Running $file ($runtime)"
12 set rc [stap_run_batch $file --runtime=$runtime]
13 if {$rc != 0} { ${runtime}_kfails $test }
14 lappend test "($runtime)"
15 } else {
16 verbose -log "Running $file"
17 set rc [stap_run_batch $file]
18 }
19 if {$rc == 0} { pass $test } else { fail $test }
20 }
21 }