Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/cddl/usr.sbin/dtrace/tests/tools/exclude.sh
104958 views
1
2
# This file lists DTrace tests which are known to fail or hang/crash the
3
# system. They were pulled from the legacy DTrace test infrastructure in
4
# tools/tests/dtrace and may be out of date.
5
#
6
# Tests are listed here generally because one or more of the following is true:
7
#
8
# 1) The test is broken (usually because it assumes it's running on Solaris and
9
# the test encodes some sort of Solarisism).
10
# 2) The functionality being tested is buggy (often but not always the result
11
# of a FreeBSD-specific bug).
12
# 3) The test relies on DTrace functionality that's not yet available in FreeBSD
13
# (e.g. tests for a specific SDT provider that we don't have).
14
#
15
# An end goal is to remove this file, concentrating first on instances of
16
# 1) and 2).
17
#
18
# The SKIP variable contains tests that should not be executed at all. The
19
# EXFAIL variable contains tests that are expected to fail when run. The
20
# SKIPCI variable contains tests that are flakey and should not be executed in
21
# the CI environment. Please avoid adding tests to SKIP unless it really is
22
# necessary; with EXFAIL, tests that begin passing as the result of a change
23
# are visible in the test summary.
24
25
exclude()
26
{
27
case $2 in
28
# Handle globbing later
29
*"*"*) ;;
30
# No globbing needed
31
*)
32
eval $1=\"\$$1\\n$2\"
33
return
34
;;
35
esac
36
for file in ${TESTBASE}/${2}; do
37
case ${file} in
38
# Invalid glob
39
"${TESTBASE}/${2}") echo "Invalid exclude for $2" >&2; exit 1; ;;
40
esac
41
exclude "$1" "${file##${TESTBASE}/}"
42
done
43
}
44
45
exclude EXFAIL common/aggs/tst.subr.d
46
exclude EXFAIL common/dtraceUtil/tst.ELFGenerationOut.d.ksh
47
exclude EXFAIL common/dtraceUtil/tst.ELFGenerationWithO.d.ksh
48
exclude EXFAIL common/funcs/tst.copyin.d
49
exclude EXFAIL common/funcs/tst.copyinto.d
50
exclude EXFAIL common/funcs/tst.ddi_pathname.d
51
exclude EXFAIL common/io/tst.fds.d
52
exclude EXFAIL common/mdb/tst.dtracedcmd.ksh
53
exclude EXFAIL common/misc/tst.dofmax.ksh
54
exclude EXFAIL common/misc/tst.include.ksh
55
exclude EXFAIL common/safety/tst.copyin2.d
56
exclude EXFAIL common/safety/tst.msgdsize.d
57
exclude EXFAIL common/safety/tst.msgsize.d
58
exclude EXFAIL common/scalars/tst.misc.d
59
exclude EXFAIL common/scalars/tst.selfarray2.d
60
exclude EXFAIL common/sched/tst.enqueue.d
61
exclude EXFAIL common/speculation/tst.SpecSizeVariations3.d
62
exclude EXFAIL common/tracemem/err.D_TRACEMEM_ADDR.badaddr.d
63
exclude EXFAIL common/translators/tst.TestTransStability2.ksh
64
exclude EXFAIL common/types/tst.struct.d
65
exclude EXFAIL common/types/tst.typedef.d
66
67
# We don't have a cpc provider.
68
exclude SKIP common/cpc/err.D_PDESC_ZERO.lowfrequency.d
69
exclude SKIP common/cpc/err.D_PDESC_ZERO.malformedoverflow.d
70
exclude SKIP common/cpc/err.D_PDESC_ZERO.nonexistentevent.d
71
exclude SKIP common/cpc/err.cpcvscpustatpart1.ksh
72
exclude SKIP common/cpc/err.cpcvscpustatpart2.ksh
73
exclude SKIP common/cpc/err.cputrackfailtostart.ksh
74
exclude SKIP common/cpc/err.cputrackterminates.ksh
75
exclude SKIP common/cpc/err.toomanyenablings.d
76
exclude SKIP common/cpc/tst.allcpus.ksh
77
exclude SKIP common/cpc/tst.genericevent.d
78
exclude SKIP common/cpc/tst.platformevent.ksh
79
80
# We don't have a mib provider.
81
exclude EXFAIL common/mib/tst.icmp.ksh
82
exclude EXFAIL common/mib/tst.tcp.ksh
83
exclude EXFAIL common/mib/tst.udp.ksh
84
85
# At the moment dtrace(1) always needs to run as root.
86
exclude SKIP common/privs/tst.fds.ksh
87
exclude SKIP common/privs/tst.func_access.ksh
88
exclude SKIP common/privs/tst.getf.ksh
89
exclude SKIP common/privs/tst.kpriv.ksh
90
exclude SKIP common/privs/tst.op_access.ksh
91
exclude SKIP common/privs/tst.procpriv.ksh
92
exclude SKIP common/privs/tst.providers.ksh
93
exclude SKIP common/privs/tst.unpriv_funcs.ksh
94
95
# These tests hang for reasons unknown.
96
exclude SKIP common/buffering/tst.ring3.d
97
exclude SKIP common/funcs/tst.chill.ksh
98
exclude SKIP common/funcs/tst.index.d
99
100
# No Java support at the moment.
101
exclude EXFAIL common/java_api/tst.Abort.ksh
102
exclude EXFAIL common/java_api/tst.Bean.ksh
103
exclude EXFAIL common/java_api/tst.Close.ksh
104
exclude EXFAIL common/java_api/tst.Drop.ksh
105
exclude EXFAIL common/java_api/tst.Enable.ksh
106
exclude EXFAIL common/java_api/tst.FunctionLookup.ksh
107
exclude EXFAIL common/java_api/tst.GetAggregate.ksh
108
exclude EXFAIL common/java_api/tst.MaxConsumers.ksh
109
exclude EXFAIL common/java_api/tst.MultiAggPrinta.ksh
110
exclude EXFAIL common/java_api/tst.ProbeData.ksh
111
exclude EXFAIL common/java_api/tst.ProbeDescription.ksh
112
exclude EXFAIL common/java_api/tst.StateMachine.ksh
113
exclude EXFAIL common/java_api/tst.StopLock.ksh
114
115
# Expects specific formatting from banner(6).
116
exclude EXFAIL common/aggs/tst.aggpackbanner.ksh
117
118
# Test assumes we're running on a Solaris kernel.
119
exclude EXFAIL common/misc/tst.roch.d
120
exclude EXFAIL common/predicates/tst.argsnotcached.d
121
exclude EXFAIL common/safety/tst.vahole.d
122
123
# Tests that depend on the plockstat provider.
124
exclude EXFAIL common/plockstat/tst.available.d
125
exclude EXFAIL common/plockstat/tst.libmap.d
126
exclude EXFAIL common/usdt/tst.andpid.ksh
127
128
# Depends on java.
129
exclude SKIP common/drops/drp.DTRACEDROP_STKSTROVERFLOW.d
130
131
# Interrupt priority isn't relevant on FreeBSD.
132
exclude SKIP common/builtinvar/tst.ipl.d
133
exclude SKIP common/builtinvar/tst.ipl1.d
134
135
# These tests rely on being able to find a host via broadcast pings.
136
exclude EXFAIL common/ip/tst.ipv4remotesctp.ksh
137
exclude EXFAIL common/ip/tst.ipv4remotetcp.ksh
138
exclude EXFAIL common/ip/tst.ipv4remoteudp.ksh
139
exclude EXFAIL common/ip/tst.ipv4remoteudplite.ksh
140
exclude EXFAIL common/ip/tst.ipv6remoteicmp.ksh
141
exclude EXFAIL common/ip/tst.ipv4remoteicmp.ksh
142
exclude EXFAIL common/ip/tst.remotesctpstate.ksh
143
exclude EXFAIL common/ip/tst.remotetcpstate.ksh
144
145
# Tries to enable pid$target:libc::entry, though there's no "libc" module.
146
# Currently unsure as to whether this might be a libproc bug.
147
exclude EXFAIL common/pid/tst.probemod.ksh
148
149
# Assumes date(1) has a pid$target::main:return probe.
150
exclude EXFAIL common/pid/tst.newprobes.ksh
151
152
# libproc+librtld_db don't handle dlopen(2) yet.
153
exclude EXFAIL common/pid/tst.provregex2.ksh
154
exclude EXFAIL common/pid/tst.provregex4.ksh
155
156
# This test appears to be invalid. dtrace is supposed to press on if a
157
# depends_on pragma cannot be satisfied, per the comment above
158
# dt_load_libs_dir() in libdtrace.
159
exclude EXFAIL common/pragma/err.invalidlibdep.ksh
160
161
# This test checks for a leading tab on a line before #define. That is illegal
162
# on Solaris, but the clang pre-processor on FreeBSD is happy with code like
163
# that.
164
exclude EXFAIL common/preprocessor/err.D_PRAGCTL_INVAL.tabdefine.d
165
166
# This test uses proc:::signal-handle, which we don't appear to have.
167
exclude EXFAIL common/proc/tst.signal.ksh
168
169
# This test uses proc:::lwp-start, which we don't appear to have.
170
exclude EXFAIL common/proc/tst.startexit.ksh
171
172
# This test causes a panic at the moment because fbt instruments the lock class'
173
# lc_owned method.
174
exclude SKIP common/safety/tst.rw.d
175
176
# Depends on some implementation details of the runtime linker.
177
exclude EXFAIL common/vars/tst.ucaller.ksh
178
179
# These rely on process attributes that FreeBSD doesn't carry.
180
exclude EXFAIL common/scripting/tst.projid.ksh
181
exclude EXFAIL common/scripting/tst.taskid.ksh
182
183
# Depends on tst.chasestrings.exe being ELF32. See r326181 and r326285.
184
exclude EXFAIL common/uctf/err.user64mode.ksh
185
186
# This test expects its test program to be installed without CTF data, but
187
# the rest of the programs for this feature need CTF data. Not yet sure how
188
# to build that.
189
exclude EXFAIL common/uctf/tst.libtype.ksh
190
191
# libproc doesn't have linkmap support yet.
192
exclude EXFAIL common/uctf/tst.linkmap.ksh
193
194
# Uses Sun-specific compiler options.
195
exclude EXFAIL common/usdt/tst.badguess.ksh
196
exclude EXFAIL common/usdt/tst.guess32.ksh
197
exclude EXFAIL common/usdt/tst.guess64.ksh
198
199
# Depends on non-standard static linker behaviour.
200
exclude EXFAIL common/usdt/tst.eliminate.ksh
201
202
# Generated headers include <sys/sdt.h>, so _DTRACE_VERSION is always defined.
203
exclude EXFAIL common/usdt/tst.nodtrace.ksh
204
205
# Uses the Solaris-specific ppriv(1).
206
exclude EXFAIL common/usdt/tst.user.ksh
207
208
# Triggers a lock assertion by using the raise() action from a profile probe.
209
exclude SKIP common/ustack/tst.spin.ksh
210
211
# https://bugs.freebsd.org/237641
212
exclude SKIPCI common/misc/tst.dynopt.d
213
214