verbose-tests

Enable verbose tests and print content of failing tests output file.
This commit is contained in:
Andreas Henriksson 2014-07-30 14:28:17 +02:00 committed by su-fang
parent 4d3a306bab
commit d4bcfe0a90
2 changed files with 12 additions and 1 deletions

View File

@ -13,7 +13,7 @@ clean-local-tests:
CLEAN_LOCALS += clean-local-tests
TESTS_OPTIONS = --nonroot
TESTS_OPTIONS = --nonroot --verbose --parallel=1
TESTS_PARALLEL = --parallel
TESTS_COMMAND = $(top_srcdir)/tests/run.sh \
--srcdir=$(abs_top_srcdir) \

View File

@ -148,6 +148,17 @@ function ts_failed_subtest {
ts_report " $msg ($1)"
fi
if [ "$TS_VERBOSE" = "yes" ]; then
echo ========= script: $TS_SCRIPT =================
echo ================= OUTPUT =====================
cat -n $TS_OUTPUT
echo ================= EXPECTED ===================
cat -n $TS_EXPECTED
echo ================= O/E diff ===================
diff -u $TS_OUTPUT $TS_EXPECTED
echo ==============================================
fi
return $ret
}