| 1 |
set self parseko |
| 2 |
foreach runtime [get_runtime_list] { |
| 3 |
foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] { |
| 4 |
set test $self/[file tail $file] |
| 5 |
if {$runtime != ""} { |
| 6 |
verbose -log "Running $file ($runtime)" |
| 7 |
set rc [stap_run_batch $file --runtime=$runtime] |
| 8 |
lappend test "($runtime)" |
| 9 |
} else { |
| 10 |
verbose -log "Running $file" |
| 11 |
set rc [stap_run_batch $file] |
| 12 |
} |
| 13 |
if {$rc < 0} { |
| 14 |
# crashed |
| 15 |
fail $test |
| 16 |
} else { |
| 17 |
setup_xfail *-*-* |
| 18 |
if {$rc == 0} { pass $test } else { fail $test } |
| 19 |
} |
| 20 |
} |
| 21 |
} |