doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/at_register.exp
raw| 1 | set test "at_register" |
| 2 | set testpath "$srcdir/$subdir" |
| 3 | |
| 4 | set res [target_compile ${testpath}/${test}.c ${test} executable "additional_flags=-O2 additional_flags=-g"] |
| 5 | if { $res != "" } { |
| 6 | verbose "target_compile failed: $res" 2 |
| 7 | fail "${test}: unable to compile ${test}.c" |
| 8 | } else { |
| 9 | stap_run $test no_load $all_pass_string $srcdir/$subdir/$test.stp -g -c ./${test} -w |
| 10 | } |
| 11 | |
| 12 | # Cleanup |
| 13 | if { $verbose == 0 } { catch { exec rm -f $test } } |
| 14 |