Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/usr.sbin/dtrace/tests/tools/exclude.sh
Show All 17 Lines | |||||
# | # | ||||
# The SKIP variable contains tests that should not be executed at all. The | # The SKIP variable contains tests that should not be executed at all. The | ||||
# EXFAIL variable contains tests that are expected to fail when run. Please | # EXFAIL variable contains tests that are expected to fail when run. Please | ||||
# avoid adding tests to SKIP unless it really is necessary; with EXFAIL, tests | # avoid adding tests to SKIP unless it really is necessary; with EXFAIL, tests | ||||
# that begin passing as the result of a change are visible in the test summary. | # that begin passing as the result of a change are visible in the test summary. | ||||
exclude() | exclude() | ||||
{ | { | ||||
case $2 in | |||||
# Handle globbing later | |||||
*"*"*) ;; | |||||
# No globbing needed | |||||
*) | |||||
eval $1=\"\$$1\\n$2\" | eval $1=\"\$$1\\n$2\" | ||||
return | |||||
;; | |||||
esac | |||||
for file in ${TESTBASE}/${2}; do | |||||
case ${file} in | |||||
# Invalid glob | |||||
"${TESTBASE}/${2}") echo "Invalid exclude for $2" >&2; exit 1; ;; | |||||
esac | |||||
exclude "$1" "${file##${TESTBASE}/}" | |||||
done | |||||
} | } | ||||
exclude EXFAIL common/aggs/tst.subr.d | exclude EXFAIL common/aggs/tst.subr.d | ||||
exclude EXFAIL common/dtraceUtil/tst.ELFGenerationOut.d.ksh | exclude EXFAIL common/dtraceUtil/tst.ELFGenerationOut.d.ksh | ||||
exclude EXFAIL common/dtraceUtil/tst.ELFGenerationWithO.d.ksh | exclude EXFAIL common/dtraceUtil/tst.ELFGenerationWithO.d.ksh | ||||
exclude EXFAIL common/funcs/tst.copyin.d | exclude EXFAIL common/funcs/tst.copyin.d | ||||
exclude EXFAIL common/funcs/tst.copyinto.d | exclude EXFAIL common/funcs/tst.copyinto.d | ||||
exclude EXFAIL common/funcs/tst.ddi_pathname.d | exclude EXFAIL common/funcs/tst.ddi_pathname.d | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |