Debian Codegraph @

testsuite/systemtap.pass1-4/parseok.exp

raw
1 set self parseok
2
3 proc dyninst_kfails {test} {
4 # Use setup_kfail <pr number> <target triplet> for known bugs.
5 #
6 # (Note that tcl doesn't like comments directly inside the switch
7 # statement, but comments can go in sub-blocks.)
8 switch $test {
9 parseok/EXAMPLE.stp {
10 # Use setup_kfail DYNINST <target triplet> for known
11 # failures when running with the dyninst runtime (scripts
12 # that use kernel features or kernel-only tapset
13 # functions).
14 setup_kfail DYNINST *-*-*
15 }
16 }
17 }
18
19 foreach runtime [get_runtime_list] {
20 foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] {
21 set test $self/[file tail $file]
22 if {$runtime != ""} {
23 verbose -log "Running $file ($runtime)"
24 set rc [stap_run_batch $file --runtime=$runtime]
25 if {$rc != 0} { ${runtime}_kfails $test }
26 lappend test "($runtime)"
27 } else {
28 verbose -log "Running $file"
29 set rc [stap_run_batch $file]
30 }
31 if {$rc == 0} { pass $test } else { fail $test }
32 }
33 }