Debian Codegraph @

testsuite/systemtap.samples/examples.exp

raw
1 foreach file [lsort [glob -nocomplain $srcdir/../examples/*.stp $srcdir/../examples/small_demos/*.stp]] {
2 set test [file tail $file]
3 switch $test {
4 {iostat-scsi.stp} {set cmd "stap -p4 -g $file 5"}
5 {sigmon.stp} {set cmd "stap -p4 -x 1234 $file SIGKILL"}
6 {keyhack.stp} {set cmd "stap -p4 -g $file"}
7 default {set cmd "stap -p4 $file"}
8 }
9 verbose -log "Running $cmd"
10 set rc [catch {eval "exec $cmd"} baz]
11 if {$rc} { fail $test; verbose -log $baz } else { pass $test }
12 }