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