Path: blob/main/cddl/usr.sbin/dtrace/tests/tools/exclude.sh
104958 views
1# This file lists DTrace tests which are known to fail or hang/crash the2# system. They were pulled from the legacy DTrace test infrastructure in3# tools/tests/dtrace and may be out of date.4#5# Tests are listed here generally because one or more of the following is true:6#7# 1) The test is broken (usually because it assumes it's running on Solaris and8# the test encodes some sort of Solarisism).9# 2) The functionality being tested is buggy (often but not always the result10# of a FreeBSD-specific bug).11# 3) The test relies on DTrace functionality that's not yet available in FreeBSD12# (e.g. tests for a specific SDT provider that we don't have).13#14# An end goal is to remove this file, concentrating first on instances of15# 1) and 2).16#17# The SKIP variable contains tests that should not be executed at all. The18# EXFAIL variable contains tests that are expected to fail when run. The19# SKIPCI variable contains tests that are flakey and should not be executed in20# the CI environment. Please avoid adding tests to SKIP unless it really is21# necessary; with EXFAIL, tests that begin passing as the result of a change22# are visible in the test summary.2324exclude()25{26case $2 in27# Handle globbing later28*"*"*) ;;29# No globbing needed30*)31eval $1=\"\$$1\\n$2\"32return33;;34esac35for file in ${TESTBASE}/${2}; do36case ${file} in37# Invalid glob38"${TESTBASE}/${2}") echo "Invalid exclude for $2" >&2; exit 1; ;;39esac40exclude "$1" "${file##${TESTBASE}/}"41done42}4344exclude EXFAIL common/aggs/tst.subr.d45exclude EXFAIL common/dtraceUtil/tst.ELFGenerationOut.d.ksh46exclude EXFAIL common/dtraceUtil/tst.ELFGenerationWithO.d.ksh47exclude EXFAIL common/funcs/tst.copyin.d48exclude EXFAIL common/funcs/tst.copyinto.d49exclude EXFAIL common/funcs/tst.ddi_pathname.d50exclude EXFAIL common/io/tst.fds.d51exclude EXFAIL common/mdb/tst.dtracedcmd.ksh52exclude EXFAIL common/misc/tst.dofmax.ksh53exclude EXFAIL common/misc/tst.include.ksh54exclude EXFAIL common/safety/tst.copyin2.d55exclude EXFAIL common/safety/tst.msgdsize.d56exclude EXFAIL common/safety/tst.msgsize.d57exclude EXFAIL common/scalars/tst.misc.d58exclude EXFAIL common/scalars/tst.selfarray2.d59exclude EXFAIL common/sched/tst.enqueue.d60exclude EXFAIL common/speculation/tst.SpecSizeVariations3.d61exclude EXFAIL common/tracemem/err.D_TRACEMEM_ADDR.badaddr.d62exclude EXFAIL common/translators/tst.TestTransStability2.ksh63exclude EXFAIL common/types/tst.struct.d64exclude EXFAIL common/types/tst.typedef.d6566# We don't have a cpc provider.67exclude SKIP common/cpc/err.D_PDESC_ZERO.lowfrequency.d68exclude SKIP common/cpc/err.D_PDESC_ZERO.malformedoverflow.d69exclude SKIP common/cpc/err.D_PDESC_ZERO.nonexistentevent.d70exclude SKIP common/cpc/err.cpcvscpustatpart1.ksh71exclude SKIP common/cpc/err.cpcvscpustatpart2.ksh72exclude SKIP common/cpc/err.cputrackfailtostart.ksh73exclude SKIP common/cpc/err.cputrackterminates.ksh74exclude SKIP common/cpc/err.toomanyenablings.d75exclude SKIP common/cpc/tst.allcpus.ksh76exclude SKIP common/cpc/tst.genericevent.d77exclude SKIP common/cpc/tst.platformevent.ksh7879# We don't have a mib provider.80exclude EXFAIL common/mib/tst.icmp.ksh81exclude EXFAIL common/mib/tst.tcp.ksh82exclude EXFAIL common/mib/tst.udp.ksh8384# At the moment dtrace(1) always needs to run as root.85exclude SKIP common/privs/tst.fds.ksh86exclude SKIP common/privs/tst.func_access.ksh87exclude SKIP common/privs/tst.getf.ksh88exclude SKIP common/privs/tst.kpriv.ksh89exclude SKIP common/privs/tst.op_access.ksh90exclude SKIP common/privs/tst.procpriv.ksh91exclude SKIP common/privs/tst.providers.ksh92exclude SKIP common/privs/tst.unpriv_funcs.ksh9394# These tests hang for reasons unknown.95exclude SKIP common/buffering/tst.ring3.d96exclude SKIP common/funcs/tst.chill.ksh97exclude SKIP common/funcs/tst.index.d9899# No Java support at the moment.100exclude EXFAIL common/java_api/tst.Abort.ksh101exclude EXFAIL common/java_api/tst.Bean.ksh102exclude EXFAIL common/java_api/tst.Close.ksh103exclude EXFAIL common/java_api/tst.Drop.ksh104exclude EXFAIL common/java_api/tst.Enable.ksh105exclude EXFAIL common/java_api/tst.FunctionLookup.ksh106exclude EXFAIL common/java_api/tst.GetAggregate.ksh107exclude EXFAIL common/java_api/tst.MaxConsumers.ksh108exclude EXFAIL common/java_api/tst.MultiAggPrinta.ksh109exclude EXFAIL common/java_api/tst.ProbeData.ksh110exclude EXFAIL common/java_api/tst.ProbeDescription.ksh111exclude EXFAIL common/java_api/tst.StateMachine.ksh112exclude EXFAIL common/java_api/tst.StopLock.ksh113114# Expects specific formatting from banner(6).115exclude EXFAIL common/aggs/tst.aggpackbanner.ksh116117# Test assumes we're running on a Solaris kernel.118exclude EXFAIL common/misc/tst.roch.d119exclude EXFAIL common/predicates/tst.argsnotcached.d120exclude EXFAIL common/safety/tst.vahole.d121122# Tests that depend on the plockstat provider.123exclude EXFAIL common/plockstat/tst.available.d124exclude EXFAIL common/plockstat/tst.libmap.d125exclude EXFAIL common/usdt/tst.andpid.ksh126127# Depends on java.128exclude SKIP common/drops/drp.DTRACEDROP_STKSTROVERFLOW.d129130# Interrupt priority isn't relevant on FreeBSD.131exclude SKIP common/builtinvar/tst.ipl.d132exclude SKIP common/builtinvar/tst.ipl1.d133134# These tests rely on being able to find a host via broadcast pings.135exclude EXFAIL common/ip/tst.ipv4remotesctp.ksh136exclude EXFAIL common/ip/tst.ipv4remotetcp.ksh137exclude EXFAIL common/ip/tst.ipv4remoteudp.ksh138exclude EXFAIL common/ip/tst.ipv4remoteudplite.ksh139exclude EXFAIL common/ip/tst.ipv6remoteicmp.ksh140exclude EXFAIL common/ip/tst.ipv4remoteicmp.ksh141exclude EXFAIL common/ip/tst.remotesctpstate.ksh142exclude EXFAIL common/ip/tst.remotetcpstate.ksh143144# Tries to enable pid$target:libc::entry, though there's no "libc" module.145# Currently unsure as to whether this might be a libproc bug.146exclude EXFAIL common/pid/tst.probemod.ksh147148# Assumes date(1) has a pid$target::main:return probe.149exclude EXFAIL common/pid/tst.newprobes.ksh150151# libproc+librtld_db don't handle dlopen(2) yet.152exclude EXFAIL common/pid/tst.provregex2.ksh153exclude EXFAIL common/pid/tst.provregex4.ksh154155# This test appears to be invalid. dtrace is supposed to press on if a156# depends_on pragma cannot be satisfied, per the comment above157# dt_load_libs_dir() in libdtrace.158exclude EXFAIL common/pragma/err.invalidlibdep.ksh159160# This test checks for a leading tab on a line before #define. That is illegal161# on Solaris, but the clang pre-processor on FreeBSD is happy with code like162# that.163exclude EXFAIL common/preprocessor/err.D_PRAGCTL_INVAL.tabdefine.d164165# This test uses proc:::signal-handle, which we don't appear to have.166exclude EXFAIL common/proc/tst.signal.ksh167168# This test uses proc:::lwp-start, which we don't appear to have.169exclude EXFAIL common/proc/tst.startexit.ksh170171# This test causes a panic at the moment because fbt instruments the lock class'172# lc_owned method.173exclude SKIP common/safety/tst.rw.d174175# Depends on some implementation details of the runtime linker.176exclude EXFAIL common/vars/tst.ucaller.ksh177178# These rely on process attributes that FreeBSD doesn't carry.179exclude EXFAIL common/scripting/tst.projid.ksh180exclude EXFAIL common/scripting/tst.taskid.ksh181182# Depends on tst.chasestrings.exe being ELF32. See r326181 and r326285.183exclude EXFAIL common/uctf/err.user64mode.ksh184185# This test expects its test program to be installed without CTF data, but186# the rest of the programs for this feature need CTF data. Not yet sure how187# to build that.188exclude EXFAIL common/uctf/tst.libtype.ksh189190# libproc doesn't have linkmap support yet.191exclude EXFAIL common/uctf/tst.linkmap.ksh192193# Uses Sun-specific compiler options.194exclude EXFAIL common/usdt/tst.badguess.ksh195exclude EXFAIL common/usdt/tst.guess32.ksh196exclude EXFAIL common/usdt/tst.guess64.ksh197198# Depends on non-standard static linker behaviour.199exclude EXFAIL common/usdt/tst.eliminate.ksh200201# Generated headers include <sys/sdt.h>, so _DTRACE_VERSION is always defined.202exclude EXFAIL common/usdt/tst.nodtrace.ksh203204# Uses the Solaris-specific ppriv(1).205exclude EXFAIL common/usdt/tst.user.ksh206207# Triggers a lock assertion by using the raise() action from a profile probe.208exclude SKIP common/ustack/tst.spin.ksh209210# https://bugs.freebsd.org/237641211exclude SKIPCI common/misc/tst.dynopt.d212213214