| 1 |
set self buildok |
| 2 |
|
| 3 |
set effective_uid [exec /usr/bin/id -u] |
| 4 |
foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] { |
| 5 |
set test $self/[file tail $file] |
| 6 |
verbose -log "Running $file" |
| 7 |
set rc [stap_run_batch $file] |
| 8 |
|
| 9 |
# Use setup_kfail <pr number> <target triplet> for known bugs. |
| 10 |
# |
| 11 |
# (Note that tcl doesn't like comments directly inside the switch |
| 12 |
# statement, but comments can go in sub-blocks.) |
| 13 |
switch $test { |
| 14 |
buildok/memory-write_shared_copy.stp { |
| 15 |
if {$rc != 0} { setup_kfail 1155 *-*-* } } |
| 16 |
|
| 17 |
buildok/memory-mmap.stp - |
| 18 |
buildok/memory-write_shared_copy.stp - |
| 19 |
buildok/networking-change_rx_flag.stp - |
| 20 |
buildok/nfs-fop.check_flags.stp - |
| 21 |
buildok/scheduler-cpu_off.stp - |
| 22 |
buildok/scheduler-cpu_on.stp - |
| 23 |
buildok/scheduler-ctxswitch.stp - |
| 24 |
buildok/scheduler-migrate.stp - |
| 25 |
buildok/signal-check_ignored.stp - |
| 26 |
buildok/signal-handle.stp - |
| 27 |
buildok/tty-resize.stp { |
| 28 |
# (Note that if a test fails because of debuginfo-quality |
| 29 |
# problems, don't kfail a tapset's entire test. Extract |
| 30 |
# the failing probe/function's test into a new file and |
| 31 |
# kfail that.) |
| 32 |
# |
| 33 |
# Use setup_kfail GCC <target triplet> for |
| 34 |
# debuginfo-quality problems. |
| 35 |
if {$rc != 0} { setup_kfail GCC *-*-* } } |
| 36 |
|
| 37 |
buildok/per-process-syscall.stp - |
| 38 |
buildok/utrace.stp { |
| 39 |
# Use setup_kfail UTRACE <target triplet> for systems |
| 40 |
# without utrace. |
| 41 |
if {$rc != 0 && ![utrace_p]} { setup_kfail UTRACE *-*-*} } |
| 42 |
|
| 43 |
buildok/fortyfour.stp - |
| 44 |
buildok/map_probe_cond.stp - |
| 45 |
buildok/pretty-uprobes.stp - |
| 46 |
buildok/ucontext-symbols-embedded.stp - |
| 47 |
buildok/ucontext-unwind-embedded.stp { |
| 48 |
# Use setup_kfail UPROBES <target triplet> for systems |
| 49 |
# without uprobes. (ia64 has utrace, but not uprobes.) |
| 50 |
if {$rc != 0 && ![uprobes_p]} { setup_kfail UPROBES *-*-* } } |
| 51 |
|
| 52 |
buildok/twentyeightprime.stp { |
| 53 |
# Use setup_kfail UPROBES <target triplet> for systems |
| 54 |
# without uprobes. (ia64 has utrace, but not uprobes.) |
| 55 |
if {$rc != 0 && ![uprobes_p]} { setup_kfail UPROBES *-*-* } |
| 56 |
|
| 57 |
# Use setup_kfail INODE_UPROBES <target triplet> for |
| 58 |
# systems with inode uprobes, where absolute probes don't |
| 59 |
# work. |
| 60 |
if {$rc != 0 && [inode_uprobes_p]} { |
| 61 |
setup_kfail INODE_UPROBES *-*-* } |
| 62 |
} |
| 63 |
|
| 64 |
buildok/context-symbols-embedded.stp - |
| 65 |
buildok/context-unwind-embedded.stp { |
| 66 |
# Use setup_kfail UNWIND <target triplet> for systems |
| 67 |
# with an unsupported dwarf unwind architecture |
| 68 |
if {$rc != 0 && [istarget ia64-*-*]} { |
| 69 |
setup_kfail UNWIND ia64-*-* } } |
| 70 |
|
| 71 |
buildok/fortyseven.stp { |
| 72 |
if {$rc != 0} { setup_kfail 15065 *-*-* } } |
| 73 |
|
| 74 |
buildok/stap_staticmarkers-detailed.stp { |
| 75 |
# Use setup_kfail ROOT_ONLY for tests that must be run as |
| 76 |
# root. |
| 77 |
# |
| 78 |
# In the case of stap_staticmarkers-detailed.stp, it |
| 79 |
# probes "staprun", which is only readable by root. |
| 80 |
if {$rc != 0 && $effective_uid != 0} { |
| 81 |
setup_kfail ROOT_ONLY *-*-* } |
| 82 |
|
| 83 |
# Use setup_kfail UPROBES <target triplet> for systems |
| 84 |
# without uprobes. (ia64 has utrace, but not uprobes.) |
| 85 |
if {$rc != 0 && ![uprobes_p]} { setup_kfail UPROBES *-*-* } |
| 86 |
} |
| 87 |
|
| 88 |
buildok/hwbkpt.stp { |
| 89 |
if {$rc != 0 && ![hwbkpt_probes_p]} { setup_kfail HWBKPT *-*-* } } |
| 90 |
} |
| 91 |
if {$rc == 0} { pass $test } else { fail $test } |
| 92 |
} |