[--expect-failure={yes|no}] [--color-tests={yes|no}]
[--enable-hard-errors={yes|no}] [--ignore-exit]
[--diagnostic-string=STRING] [--merge|--no-merge]
- [--comments|--no-comments] [--] TEST-COMMAND
+ [--comments|--no-comments] [--post-script] [--] TEST-COMMAND
The '--test-name', '-log-file' and '--trs-file' options are mandatory.
END
}
test_name= # Used for reporting.
log_file= # Where to save the result and output of the test script.
trs_file= # Where to save the metadata of the test run.
+post_script= # Script to be run after the test.
expect_failure=0
color_tests=0
merge=0
--comments) comments=1;;
--no-comments) comments=0;;
--diagnostic-string) diag_string=$2; shift;;
+ --post-script) post_script=$2; shift;;
--) shift; break;;
-*) usage_error "invalid option: '$1'";;
esac
test $? -eq 0 || fatal "I/O or internal error"
+if test ! -z $post_script ; then
+ $post_script
+ test $? -eq 0 || fatal "Post script returned an error. See $log_file"
+fi
+
# Local Variables:
# mode: shell-script
# sh-indentation: 2
SUBDIRS = tools kernel ust
-LOG_DRIVER_FLAGS='--merge'
-LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
+LOG_DRIVER_FLAGS = --merge --post-script $(top_srcdir)/tests/utils/warn_processes.sh
+LOG_DRIVER = env PGREP='$(PGREP)' AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/config/tap-driver.sh
TESTS = tools/filtering/test_invalid_filter \