| 1 |
set self buildok |
| 2 |
set runtime dyninst |
| 3 |
|
| 4 |
if {![dyninst_p]} { |
| 5 |
untested "$self ($runtime) : no $runtime support found" |
| 6 |
return |
| 7 |
} |
| 8 |
|
| 9 |
set effective_uid [exec /usr/bin/id -u] |
| 10 |
foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] { |
| 11 |
set test $self/[file tail $file] |
| 12 |
verbose -log "Running $file ($runtime)" |
| 13 |
set rc [stap_run_batch $file --runtime=$runtime] |
| 14 |
|
| 15 |
# Use setup_kfail <pr number> <target triplet> for known bugs. |
| 16 |
# |
| 17 |
# (Note that tcl doesn't like comments directly inside the switch |
| 18 |
# statement, but comments can go in sub-blocks.) |
| 19 |
switch $test { |
| 20 |
buildok/alias_suffixes02.stp - |
| 21 |
buildok/alias_suffixes03.stp - |
| 22 |
buildok/alias_suffixes04.stp - |
| 23 |
buildok/alias_suffixes05.stp - |
| 24 |
buildok/alias_suffixes06.stp - |
| 25 |
buildok/atomic.stp - |
| 26 |
buildok/aux_syscalls-embedded.stp - |
| 27 |
buildok/context-embedded-ns.stp - |
| 28 |
buildok/context-embedded.stp - |
| 29 |
buildok/contextfuns.stp - |
| 30 |
buildok/context-symbols-embedded.stp - |
| 31 |
buildok/context-unwind-embedded.stp - |
| 32 |
buildok/conversions-embedded.stp - |
| 33 |
buildok/conversions-guru-embedded.stp - |
| 34 |
buildok/conversions.stp - |
| 35 |
buildok/defined-entry.stp - |
| 36 |
buildok/dentry-embedded.stp - |
| 37 |
buildok/dev-embedded.stp - |
| 38 |
buildok/eighteen.stp - |
| 39 |
buildok/fifteen.stp - |
| 40 |
buildok/five.stp - |
| 41 |
buildok/floatingpoint.stp - |
| 42 |
buildok/fortyfive.stp - |
| 43 |
buildok/fortysix.stp - |
| 44 |
buildok/fortytwo.stp - |
| 45 |
buildok/fourteen-plus.stp - |
| 46 |
buildok/fourteen.stp - |
| 47 |
buildok/gtod_noinit.stp - |
| 48 |
buildok/guru.stp - |
| 49 |
buildok/histogram_operator_in.stp - |
| 50 |
buildok/hwbkpt.stp - |
| 51 |
buildok/inet_sock-embedded.stp - |
| 52 |
buildok/ioblock-all-probes.stp - |
| 53 |
buildok/ioblock-detailed.stp - |
| 54 |
buildok/ioblock-embedded.stp - |
| 55 |
buildok/ioscheduler-all-probes.stp - |
| 56 |
buildok/ioscheduler-detailed.stp - |
| 57 |
buildok/ioscheduler-embedded.stp - |
| 58 |
buildok/ip-embedded.stp - |
| 59 |
buildok/ipmib-all-probes.stp - |
| 60 |
buildok/ipmib-detailed.stp - |
| 61 |
buildok/ipmib-embedded.stp - |
| 62 |
buildok/iterate_histogram_buckets.stp - |
| 63 |
buildok/json-detailed.stp - |
| 64 |
buildok/kprocess-all-probes.stp - |
| 65 |
buildok/kprocess-detailed.stp - |
| 66 |
buildok/kprocess-embedded.stp - |
| 67 |
buildok/linuxmib-all-probes.stp - |
| 68 |
buildok/linuxmib-detailed.stp - |
| 69 |
buildok/loadavg-embedded.stp - |
| 70 |
buildok/logging-embedded.stp - |
| 71 |
buildok/logging-embedded2.stp - |
| 72 |
buildok/maxactive01.stp - |
| 73 |
buildok/memory-all-probes.stp - |
| 74 |
buildok/memory-detailed.stp - |
| 75 |
buildok/memory-embedded.stp - |
| 76 |
buildok/memory-mmap.stp - |
| 77 |
buildok/memory.stp - |
| 78 |
buildok/nd_syscalls-all-probes.stp - |
| 79 |
buildok/nd_syscalls-arch-detailed.stp - |
| 80 |
buildok/nd_syscalls-detailed.stp - |
| 81 |
buildok/nd_syscalls2-detailed.stp - |
| 82 |
buildok/nested_vars.stp - |
| 83 |
buildok/netfilter-glob.stp - |
| 84 |
buildok/netfilter01.stp - |
| 85 |
buildok/netfilter02.stp - |
| 86 |
buildok/netfilter03.stp - |
| 87 |
buildok/netfilter04.stp - |
| 88 |
buildok/networking-all-probes.stp - |
| 89 |
buildok/networking-detailed.stp - |
| 90 |
buildok/networking-embedded.stp - |
| 91 |
buildok/newlocals01.stp - |
| 92 |
buildok/nfs-all-probes.stp - |
| 93 |
buildok/nfs-detailed.stp - |
| 94 |
buildok/nfs-embedded.stp - |
| 95 |
buildok/nfs-fop.check_flags.stp - |
| 96 |
buildok/nfs_proc-detailed.stp - |
| 97 |
buildok/nfs_proc-embedded.stp - |
| 98 |
buildok/nfs_proc-embedded-ver4.3.stp - |
| 99 |
buildok/nfsd-all-probes.stp - |
| 100 |
buildok/nfsd-detailed.stp - |
| 101 |
buildok/nfsd-embedded.stp - |
| 102 |
buildok/nfsderrno-embedded.stp - |
| 103 |
buildok/oldlocals02.stp - |
| 104 |
buildok/pr10678.stp - |
| 105 |
buildok/pr13284.stp - |
| 106 |
buildok/pretty.stp - |
| 107 |
buildok/pretty-print-untimed.stp - |
| 108 |
buildok/print_histogram_entry.stp - |
| 109 |
buildok/print_histograms.stp - |
| 110 |
buildok/proc_mem-embedded.stp - |
| 111 |
buildok/process_test.stp - |
| 112 |
buildok/procfs01.stp - |
| 113 |
buildok/profiletimer.stp - |
| 114 |
buildok/queue_stats-embedded.stp - |
| 115 |
buildok/rcu.stp - |
| 116 |
buildok/rpc-all-probes.stp - |
| 117 |
buildok/rpc-detailed.stp - |
| 118 |
buildok/rpc-embedded.stp - |
| 119 |
buildok/scheduler-all-probes.stp - |
| 120 |
buildok/scheduler-cpu_off.stp - |
| 121 |
buildok/scheduler-ctxswitch.stp - |
| 122 |
buildok/scheduler-detailed.stp - |
| 123 |
buildok/scheduler-embedded.stp - |
| 124 |
buildok/scsi-all-probes.stp - |
| 125 |
buildok/scsi-detailed.stp - |
| 126 |
buildok/scsi-embedded.stp - |
| 127 |
buildok/seven.stp - |
| 128 |
buildok/seventeen.stp - |
| 129 |
buildok/signal-all-probes.stp - |
| 130 |
buildok/signal-check_ignored.stp - |
| 131 |
buildok/signal-detailed.stp - |
| 132 |
buildok/signal-embedded.stp - |
| 133 |
buildok/signal-handle.stp - |
| 134 |
buildok/six.stp - |
| 135 |
buildok/socket-all-probes.stp - |
| 136 |
buildok/socket-detailed.stp - |
| 137 |
buildok/socket-embedded.stp - |
| 138 |
buildok/stopwatches.stp - |
| 139 |
buildok/syscall.stp - |
| 140 |
buildok/syscall_any.stp - |
| 141 |
buildok/syscalls-arch-detailed.stp - |
| 142 |
buildok/syscalls-detailed.stp - |
| 143 |
buildok/syscalls2-detailed.stp - |
| 144 |
buildok/systemtap_privilege.stp - |
| 145 |
buildok/task-embedded.stp - |
| 146 |
buildok/task_ns.stp - |
| 147 |
buildok/task_rlimit_test.stp - |
| 148 |
buildok/task_test.stp - |
| 149 |
buildok/task_time-embedded.stp - |
| 150 |
buildok/tcp-all-probes.stp - |
| 151 |
buildok/tcp-detailed.stp - |
| 152 |
buildok/tcp-embedded.stp - |
| 153 |
buildok/tcp_test.stp - |
| 154 |
buildok/tcpmib-all-probes.stp - |
| 155 |
buildok/tcpmib-detailed.stp - |
| 156 |
buildok/tcpmib-embedded.stp - |
| 157 |
buildok/thirteen.stp - |
| 158 |
buildok/thirtyone.stp - |
| 159 |
buildok/thirtytwo.stp - |
| 160 |
buildok/three.stp - |
| 161 |
buildok/timestamp-embedded.stp - |
| 162 |
buildok/timestamp_monotonic-embedded.stp - |
| 163 |
buildok/tty-detailed.stp - |
| 164 |
buildok/tty-resize.stp - |
| 165 |
buildok/twenty.stp - |
| 166 |
buildok/twentyeight.stp - |
| 167 |
buildok/twentyeightprime.stp - |
| 168 |
buildok/twentyfive.stp - |
| 169 |
buildok/twentynine.stp - |
| 170 |
buildok/twentyseven.stp - |
| 171 |
buildok/twentythree.stp - |
| 172 |
buildok/twentytwo.stp - |
| 173 |
buildok/two.stp - |
| 174 |
buildok/ucontext-embedded.stp - |
| 175 |
buildok/ucontext-symbols-embedded.stp - |
| 176 |
buildok/ucontext-unwind-embedded.stp - |
| 177 |
buildok/udp-all-probes.stp - |
| 178 |
buildok/udp-detailed.stp - |
| 179 |
buildok/udp_test.stp - |
| 180 |
buildok/vfs-all-probes.stp - |
| 181 |
buildok/vfs-detailed.stp - |
| 182 |
buildok/vfs-embedded.stp - |
| 183 |
buildok/xtime.stp { |
| 184 |
# Use setup_kfail DYNINST <target triplet> for known |
| 185 |
# failures when running with the dyninst runtime (scripts |
| 186 |
# that use kernel features or kernel-only tapset |
| 187 |
# functions). |
| 188 |
if {$rc != 0} { setup_kfail DYNINST *-*-* } } |
| 189 |
|
| 190 |
buildok/fortyseven.stp { |
| 191 |
if {$rc != 0} { setup_kfail 15065 *-*-* } } |
| 192 |
|
| 193 |
buildok/per-process-syscall.stp { |
| 194 |
# Use setup_kfail 14708 <target triplet> for known |
| 195 |
# failures when running with the dyninst runtime (scripts |
| 196 |
# that use utrace-like probes) |
| 197 |
if {$rc != 0} { setup_kfail 14708 *-*-* } } |
| 198 |
|
| 199 |
buildok/stap_staticmarkers-detailed.stp { |
| 200 |
# Use setup_kfail ROOT_ONLY for tests that must be run as |
| 201 |
# root. |
| 202 |
# |
| 203 |
# In the case of stap_staticmarkers-detailed.stp, it |
| 204 |
# probes "staprun", which is only readable by root. |
| 205 |
if {$rc != 0 && $effective_uid != 0} { |
| 206 |
setup_kfail ROOT_ONLY *-*-* } |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
if {$rc == 0} { pass "$test ($runtime)" } else { fail "$test ($runtime)" } |
| 211 |
} |