Makefile.am: fix typo in LOG_DRIVER variable
Self-executing tests were not being run through the tap log driver. This caused `make check` to ignore discrepancies between the expected number of tests and the actual number of tests. Also, fix some uncommented output from test scripts that could confuse TAP parsers. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
0da98ec6ba
commit
ea6aeef8ba
@ -36,7 +36,7 @@ TEST_EXTENSIONS = .py
|
||||
AM_TESTS_ENVIRONMENT = \
|
||||
PMTEST_UTIL_DIR=$(top_builddir)/src/util/; export PMTEST_UTIL_DIR; \
|
||||
PMTEST_SCRIPTLIB_DIR=$(top_srcdir)/scripts/library/; export PMTEST_SCRIPTLIB_DIR;
|
||||
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
|
||||
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
|
||||
$(top_srcdir)/build-aux/tap-driver.sh
|
||||
PY_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
|
||||
$(top_srcdir)/build-aux/tap-driver.sh
|
||||
|
@ -10,7 +10,7 @@ if [[ -z $lib || ! -f $lib ]]; then
|
||||
fi
|
||||
. "$lib"
|
||||
|
||||
if ! type -t human_to_size >/dev/null; then
|
||||
if ! type -t human_to_size &>/dev/null; then
|
||||
printf 'Bail out! human_to_size function not found\n'
|
||||
exit 1
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ if [[ -z $lib || ! -f $lib ]]; then
|
||||
fi
|
||||
. "$lib"
|
||||
|
||||
if ! type -t parseopts >/dev/null; then
|
||||
if ! type -t parseopts &>/dev/null; then
|
||||
printf 'Bail out! parseopts function not found\n'
|
||||
exit 1
|
||||
fi
|
||||
|
@ -25,7 +25,7 @@ total=23
|
||||
run=0
|
||||
failure=0
|
||||
|
||||
if ! type -p "$bin"; then
|
||||
if ! type -p "$bin" &>/dev/null; then
|
||||
echo "Bail out! pacsort binary ($bin) could not be located"
|
||||
exit 1
|
||||
fi
|
||||
@ -47,7 +47,7 @@ runtest() {
|
||||
fi
|
||||
}
|
||||
|
||||
echo "Running pacsort tests..."
|
||||
echo "# Running pacsort tests..."
|
||||
|
||||
echo "1..$total"
|
||||
|
||||
|
@ -25,7 +25,7 @@ run=0
|
||||
failure=0
|
||||
|
||||
# use first arg as our binary if specified
|
||||
if ! type -p "$bin"; then
|
||||
if ! type -p "$bin" &>/dev/null; then
|
||||
echo "Bail out! vercmp binary ($bin) could not be located"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user