Changeset View
Changeset View
Standalone View
Standalone View
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 | |||||
vangyzen: If the glob fails, say due to a typo, this will infinitely recurse. | |||||
# Invalid glob | |||||
"${TESTBASE}/${2}") echo "Invalid exclude for $2" >&2; exit 1; ;; | |||||
esac | |||||
exclude "$1" "${file##${TESTBASE}/}" | |||||
done | |||||
Not Done Inline ActionsI think the other files in this dir indent by four spaces. markj: I think the other files in this dir indent by four spaces. | |||||
Done Inline ActionsTrue. I noticed but only 1 line had it in this file so I dumped it as my vim was unhappy. I can keep the same style as the directory though. bdrewery: True. I noticed but only 1 line had it in this file so I dumped it as my vim was unhappy. I can… | |||||
} | } | ||||
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 |
If the glob fails, say due to a typo, this will infinitely recurse.