xref: /freebsd/cddl/usr.sbin/dtrace/tests/tools/exclude.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
14ddbe5acSMark Johnston
24ddbe5acSMark Johnston# This file lists DTrace tests which are known to fail or hang/crash the
34ddbe5acSMark Johnston# system. They were pulled from the legacy DTrace test infrastructure in
44ddbe5acSMark Johnston# tools/tests/dtrace and may be out of date.
54ddbe5acSMark Johnston#
64ddbe5acSMark Johnston# Tests are listed here generally because one or more of the following is true:
74ddbe5acSMark Johnston#
84ddbe5acSMark Johnston# 1) The test is broken (usually because it assumes it's running on Solaris and
94ddbe5acSMark Johnston#    the test encodes some sort of Solarisism).
104ddbe5acSMark Johnston# 2) The functionality being tested is buggy (often but not always the result
114ddbe5acSMark Johnston#    of a FreeBSD-specific bug).
124ddbe5acSMark Johnston# 3) The test relies on DTrace functionality that's not yet available in FreeBSD
134ddbe5acSMark Johnston#    (e.g. tests for a specific SDT provider that we don't have).
144ddbe5acSMark Johnston#
154ddbe5acSMark Johnston# An end goal is to remove this file, concentrating first on instances of
164ddbe5acSMark Johnston# 1) and 2).
174ddbe5acSMark Johnston#
184ddbe5acSMark Johnston# The SKIP variable contains tests that should not be executed at all. The
19e62aee66SLi-Wen Hsu# EXFAIL variable contains tests that are expected to fail when run. The
20e62aee66SLi-Wen Hsu# SKIPCI variable contains tests that are flakey and should not be executed in
21e62aee66SLi-Wen Hsu# the CI environment. Please avoid adding tests to SKIP unless it really is
22e62aee66SLi-Wen Hsu# necessary; with EXFAIL, tests that begin passing as the result of a change
23e62aee66SLi-Wen Hsu# are visible in the test summary.
244ddbe5acSMark Johnston
254ddbe5acSMark Johnstonexclude()
264ddbe5acSMark Johnston{
27b155807eSBryan Drewery    case $2 in
28b155807eSBryan Drewery    # Handle globbing later
29b155807eSBryan Drewery    *"*"*) ;;
30b155807eSBryan Drewery    # No globbing needed
31b155807eSBryan Drewery    *)
324ddbe5acSMark Johnston        eval $1=\"\$$1\\n$2\"
33b155807eSBryan Drewery        return
34b155807eSBryan Drewery        ;;
35b155807eSBryan Drewery    esac
36b155807eSBryan Drewery    for file in ${TESTBASE}/${2}; do
37b155807eSBryan Drewery        case ${file} in
38b155807eSBryan Drewery            # Invalid glob
39b155807eSBryan Drewery            "${TESTBASE}/${2}") echo "Invalid exclude for $2" >&2; exit 1; ;;
40b155807eSBryan Drewery        esac
41b155807eSBryan Drewery        exclude "$1" "${file##${TESTBASE}/}"
42b155807eSBryan Drewery    done
434ddbe5acSMark Johnston}
444ddbe5acSMark Johnston
454ddbe5acSMark Johnstonexclude EXFAIL common/aggs/tst.subr.d
464ddbe5acSMark Johnstonexclude EXFAIL common/dtraceUtil/tst.ELFGenerationOut.d.ksh
474ddbe5acSMark Johnstonexclude EXFAIL common/dtraceUtil/tst.ELFGenerationWithO.d.ksh
484ddbe5acSMark Johnstonexclude EXFAIL common/funcs/tst.copyin.d
494ddbe5acSMark Johnstonexclude EXFAIL common/funcs/tst.copyinto.d
504ddbe5acSMark Johnstonexclude EXFAIL common/funcs/tst.ddi_pathname.d
514ddbe5acSMark Johnstonexclude EXFAIL common/io/tst.fds.d
524ddbe5acSMark Johnstonexclude EXFAIL common/mdb/tst.dtracedcmd.ksh
534ddbe5acSMark Johnstonexclude EXFAIL common/misc/tst.dofmax.ksh
544ddbe5acSMark Johnstonexclude EXFAIL common/misc/tst.include.ksh
554ddbe5acSMark Johnstonexclude EXFAIL common/safety/tst.copyin2.d
564ddbe5acSMark Johnstonexclude EXFAIL common/safety/tst.msgdsize.d
574ddbe5acSMark Johnstonexclude EXFAIL common/safety/tst.msgsize.d
584ddbe5acSMark Johnstonexclude EXFAIL common/scalars/tst.misc.d
594ddbe5acSMark Johnstonexclude EXFAIL common/scalars/tst.selfarray2.d
604ddbe5acSMark Johnstonexclude EXFAIL common/sched/tst.enqueue.d
614ddbe5acSMark Johnstonexclude EXFAIL common/speculation/tst.SpecSizeVariations3.d
624ddbe5acSMark Johnstonexclude EXFAIL common/tracemem/err.D_TRACEMEM_ADDR.badaddr.d
634ddbe5acSMark Johnstonexclude EXFAIL common/translators/tst.TestTransStability2.ksh
644ddbe5acSMark Johnstonexclude EXFAIL common/types/tst.struct.d
654ddbe5acSMark Johnstonexclude EXFAIL common/types/tst.typedef.d
664ddbe5acSMark Johnston
674ddbe5acSMark Johnston# We don't have a cpc provider.
684ddbe5acSMark Johnstonexclude SKIP common/cpc/err.D_PDESC_ZERO.lowfrequency.d
694ddbe5acSMark Johnstonexclude SKIP common/cpc/err.D_PDESC_ZERO.malformedoverflow.d
704ddbe5acSMark Johnstonexclude SKIP common/cpc/err.D_PDESC_ZERO.nonexistentevent.d
714ddbe5acSMark Johnstonexclude SKIP common/cpc/err.cpcvscpustatpart1.ksh
724ddbe5acSMark Johnstonexclude SKIP common/cpc/err.cpcvscpustatpart2.ksh
734ddbe5acSMark Johnstonexclude SKIP common/cpc/err.cputrackfailtostart.ksh
744ddbe5acSMark Johnstonexclude SKIP common/cpc/err.cputrackterminates.ksh
754ddbe5acSMark Johnstonexclude SKIP common/cpc/err.toomanyenablings.d
764ddbe5acSMark Johnstonexclude SKIP common/cpc/tst.allcpus.ksh
774ddbe5acSMark Johnstonexclude SKIP common/cpc/tst.genericevent.d
784ddbe5acSMark Johnstonexclude SKIP common/cpc/tst.platformevent.ksh
794ddbe5acSMark Johnston
804ddbe5acSMark Johnston# We don't have a mib provider.
814ddbe5acSMark Johnstonexclude EXFAIL common/mib/tst.icmp.ksh
824ddbe5acSMark Johnstonexclude EXFAIL common/mib/tst.tcp.ksh
834ddbe5acSMark Johnstonexclude EXFAIL common/mib/tst.udp.ksh
844ddbe5acSMark Johnston
854ddbe5acSMark Johnston# At the moment dtrace(1) always needs to run as root.
864ddbe5acSMark Johnstonexclude SKIP common/privs/tst.fds.ksh
874ddbe5acSMark Johnstonexclude SKIP common/privs/tst.func_access.ksh
884ddbe5acSMark Johnstonexclude SKIP common/privs/tst.getf.ksh
8931768cc1SMark Johnstonexclude SKIP common/privs/tst.kpriv.ksh
904ddbe5acSMark Johnstonexclude SKIP common/privs/tst.op_access.ksh
914ddbe5acSMark Johnstonexclude SKIP common/privs/tst.procpriv.ksh
924ddbe5acSMark Johnstonexclude SKIP common/privs/tst.providers.ksh
934ddbe5acSMark Johnstonexclude SKIP common/privs/tst.unpriv_funcs.ksh
944ddbe5acSMark Johnston
954ddbe5acSMark Johnston# These tests hang for reasons unknown.
964ddbe5acSMark Johnstonexclude SKIP common/buffering/tst.ring3.d
974ddbe5acSMark Johnstonexclude SKIP common/funcs/tst.chill.ksh
984ddbe5acSMark Johnstonexclude SKIP common/funcs/tst.index.d
994ddbe5acSMark Johnston
1004ddbe5acSMark Johnston# No Java support at the moment.
1014ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.Abort.ksh
1024ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.Bean.ksh
1034ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.Close.ksh
1044ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.Drop.ksh
1054ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.Enable.ksh
1064ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.FunctionLookup.ksh
1074ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.GetAggregate.ksh
1084ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.MaxConsumers.ksh
1094ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.MultiAggPrinta.ksh
1104ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.ProbeData.ksh
1114ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.ProbeDescription.ksh
1124ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.StateMachine.ksh
1134ddbe5acSMark Johnstonexclude EXFAIL common/java_api/tst.StopLock.ksh
1144ddbe5acSMark Johnston
1154ddbe5acSMark Johnston# Expects specific formatting from banner(6).
1164ddbe5acSMark Johnstonexclude EXFAIL common/aggs/tst.aggpackbanner.ksh
1174ddbe5acSMark Johnston
1184ddbe5acSMark Johnston# Test assumes we're running on a Solaris kernel.
1194ddbe5acSMark Johnstonexclude EXFAIL common/misc/tst.roch.d
1204ddbe5acSMark Johnstonexclude EXFAIL common/predicates/tst.argsnotcached.d
1214ddbe5acSMark Johnstonexclude EXFAIL common/safety/tst.vahole.d
1224ddbe5acSMark Johnston
1234ddbe5acSMark Johnston# Tests that depend on the plockstat provider.
1244ddbe5acSMark Johnstonexclude EXFAIL common/plockstat/tst.available.d
1254ddbe5acSMark Johnstonexclude EXFAIL common/plockstat/tst.libmap.d
1264ddbe5acSMark Johnstonexclude EXFAIL common/usdt/tst.andpid.ksh
1274ddbe5acSMark Johnston
1284ddbe5acSMark Johnston# Depends on java.
1294ddbe5acSMark Johnstonexclude SKIP common/drops/drp.DTRACEDROP_STKSTROVERFLOW.d
1304ddbe5acSMark Johnston
1314ddbe5acSMark Johnston# Interrupt priority isn't relevant on FreeBSD.
1324ddbe5acSMark Johnstonexclude SKIP common/builtinvar/tst.ipl.d
1334ddbe5acSMark Johnstonexclude SKIP common/builtinvar/tst.ipl1.d
1344ddbe5acSMark Johnston
1354ddbe5acSMark Johnston# These tests rely on being able to find a host via broadcast pings.
1361e88cc8bSMichael Tuexenexclude EXFAIL common/ip/tst.ipv4remotesctp.ksh
1374ddbe5acSMark Johnstonexclude EXFAIL common/ip/tst.ipv4remotetcp.ksh
1384ddbe5acSMark Johnstonexclude EXFAIL common/ip/tst.ipv4remoteudp.ksh
1397bda9663SMichael Tuexenexclude EXFAIL common/ip/tst.ipv4remoteudplite.ksh
1404ddbe5acSMark Johnstonexclude EXFAIL common/ip/tst.ipv6remoteicmp.ksh
1414ddbe5acSMark Johnstonexclude EXFAIL common/ip/tst.ipv4remoteicmp.ksh
1421e88cc8bSMichael Tuexenexclude EXFAIL common/ip/tst.remotesctpstate.ksh
1434ddbe5acSMark Johnstonexclude EXFAIL common/ip/tst.remotetcpstate.ksh
1444ddbe5acSMark Johnston
1454ddbe5acSMark Johnston# Tries to enable pid$target:libc::entry, though there's no "libc" module.
1464ddbe5acSMark Johnston# Currently unsure as to whether this might be a libproc bug.
1474ddbe5acSMark Johnstonexclude EXFAIL common/pid/tst.probemod.ksh
1484ddbe5acSMark Johnston
1494ddbe5acSMark Johnston# Assumes date(1) has a pid$target::main:return probe.
1504ddbe5acSMark Johnstonexclude EXFAIL common/pid/tst.newprobes.ksh
1514ddbe5acSMark Johnston
1524ddbe5acSMark Johnston# libproc+librtld_db don't handle dlopen(2) yet.
1534ddbe5acSMark Johnstonexclude EXFAIL common/pid/tst.provregex2.ksh
1544ddbe5acSMark Johnstonexclude EXFAIL common/pid/tst.provregex4.ksh
1554ddbe5acSMark Johnston
156483f7100SMark Johnston# This test appears to be invalid. dtrace is supposed to press on if a
157483f7100SMark Johnston# depends_on pragma cannot be satisfied, per the comment above
158483f7100SMark Johnston# dt_load_libs_dir() in libdtrace.
159483f7100SMark Johnstonexclude EXFAIL common/pragma/err.invalidlibdep.ksh
160483f7100SMark Johnston
1614ddbe5acSMark Johnston# This test checks for a leading tab on a line before #define. That is illegal
1624ddbe5acSMark Johnston# on Solaris, but the clang pre-processor on FreeBSD is happy with code like
1634ddbe5acSMark Johnston# that.
1644ddbe5acSMark Johnstonexclude EXFAIL common/preprocessor/err.D_PRAGCTL_INVAL.tabdefine.d
1654ddbe5acSMark Johnston
1664ddbe5acSMark Johnston# This test uses proc:::signal-handle, which we don't appear to have.
1674ddbe5acSMark Johnstonexclude EXFAIL common/proc/tst.signal.ksh
1684ddbe5acSMark Johnston
1694ddbe5acSMark Johnston# This test uses proc:::lwp-start, which we don't appear to have.
1704ddbe5acSMark Johnstonexclude EXFAIL common/proc/tst.startexit.ksh
1714ddbe5acSMark Johnston
1724ddbe5acSMark Johnston# This test causes a panic at the moment because fbt instruments the lock class'
1734ddbe5acSMark Johnston# lc_owned method.
1744ddbe5acSMark Johnstonexclude SKIP common/safety/tst.rw.d
1754ddbe5acSMark Johnston
1764ddbe5acSMark Johnston# Depends on some implementation details of the runtime linker.
1774ddbe5acSMark Johnstonexclude EXFAIL common/vars/tst.ucaller.ksh
1784ddbe5acSMark Johnston
1794ddbe5acSMark Johnston# These rely on process attributes that FreeBSD doesn't carry.
1804ddbe5acSMark Johnstonexclude EXFAIL common/scripting/tst.projid.ksh
1814ddbe5acSMark Johnstonexclude EXFAIL common/scripting/tst.taskid.ksh
1824ddbe5acSMark Johnston
1837c370190SMark Johnston# Depends on tst.chasestrings.exe being ELF32. See r326181 and r326285.
1847c370190SMark Johnstonexclude EXFAIL common/uctf/err.user64mode.ksh
1857c370190SMark Johnston
1864ddbe5acSMark Johnston# This test expects its test program to be installed without CTF data, but
1874ddbe5acSMark Johnston# the rest of the programs for this feature need CTF data. Not yet sure how
1884ddbe5acSMark Johnston# to build that.
1894ddbe5acSMark Johnstonexclude EXFAIL common/uctf/tst.libtype.ksh
1904ddbe5acSMark Johnston
1914ddbe5acSMark Johnston# libproc doesn't have linkmap support yet.
1924ddbe5acSMark Johnstonexclude EXFAIL common/uctf/tst.linkmap.ksh
1934ddbe5acSMark Johnston
1944ddbe5acSMark Johnston# Uses Sun-specific compiler options.
1954ddbe5acSMark Johnstonexclude EXFAIL common/usdt/tst.badguess.ksh
1964ddbe5acSMark Johnstonexclude EXFAIL common/usdt/tst.guess32.ksh
1974ddbe5acSMark Johnstonexclude EXFAIL common/usdt/tst.guess64.ksh
1984ddbe5acSMark Johnston
1997c72b109SMark Johnston# Depends on non-standard static linker behaviour.
2007c72b109SMark Johnstonexclude EXFAIL common/usdt/tst.eliminate.ksh
2017c72b109SMark Johnston
2024ddbe5acSMark Johnston# Generated headers include <sys/sdt.h>, so _DTRACE_VERSION is always defined.
2034ddbe5acSMark Johnstonexclude EXFAIL common/usdt/tst.nodtrace.ksh
2044ddbe5acSMark Johnston
2054ddbe5acSMark Johnston# Uses the Solaris-specific ppriv(1).
2064ddbe5acSMark Johnstonexclude EXFAIL common/usdt/tst.user.ksh
20790556839SMark Johnston
20890556839SMark Johnston# Triggers a lock assertion by using the raise() action from a profile probe.
20990556839SMark Johnstonexclude SKIP common/ustack/tst.spin.ksh
210*0088bc44SLi-Wen Hsu
211*0088bc44SLi-Wen Hsu# https://bugs.freebsd.org/237641
212*0088bc44SLi-Wen Hsuexclude SKIPCI common/misc/tst.dynopt.d
213