verbose-tests
Enable verbose tests and print content of failing tests output file.
This commit is contained in:
parent
4d3a306bab
commit
d4bcfe0a90
|
@ -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) \
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue