blob: d86bdd7b8d1c20a648e6b31c3799660faac4fafd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
set self unprivilegedok
# Need to build a user application
catch {exec gcc -g -o foo $srcdir/systemtap.unprivileged/foo.c} err
if {$err == "" && [file exists foo]} then { pass "$self compile" } else { fail "$self compile: $err" }
# Now run the tests
foreach file [lsort [glob -nocomplain $srcdir/systemtap.unprivileged/$self/*.stp]] {
set test $self/[file tail $file]
verbose -log "Running $file"
set rc [stap_run_batch $file]
if {$rc == 0} { pass $test } else { fail $test }
}
catch {exec rm -f foo}
|