Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/cast-user.exp

raw
1 set test "cast-user"
2 set ::result_string {binary sa_family OK
3 binary sa_data OK
4 header sa_family OK
5 header sa_data OK}
6
7 set srcfile "$srcdir/$subdir/$test.c"
8 set stpfile "$srcdir/$subdir/$test.stp"
9 set exefile "[pwd]/$test.exe"
10 set test_flags "additional_flags=-g"
11 set res [target_compile "$srcfile" "$exefile" executable "$test_flags"]
12 if { $res != "" } {
13 verbose "target_compile failed: $res" 2
14 fail "$test compile"
15 untested "$test"
16 return
17 } else {
18 pass "$test compile"
19 }
20
21 stap_run3 $test "$stpfile" "$exefile" -c "$exefile"