When the unit test fails, mention how to run just that exact test.
Idea that appeared during the Stephan's talk - thanks! :-)
Change-Id: Icc0b8454fde8a28f87236425d9df213959d5349c
Reviewed-on: https://gerrit.libreoffice.org/43368
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
diff --git a/solenv/gbuild/platform/unittest-failed-default.sh b/solenv/gbuild/platform/unittest-failed-default.sh
index 5e6b40f..2ec0c40 100755
--- a/solenv/gbuild/platform/unittest-failed-default.sh
+++ b/solenv/gbuild/platform/unittest-failed-default.sh
@@ -19,6 +19,7 @@
cat << EOF
Error: a unit test failed, please do one of:
make $1Test_$2 CPPUNITTRACE="gdb --args"
# for interactive debugging on Linux
make $1Test_$2 VALGRIND=memcheck
@@ -26,6 +27,10 @@ make $1Test_$2 VALGRIND=memcheck
make $1Test_$2 DEBUGCPPUNIT=TRUE
# for exception catching
You can limit the execution to just one particular test by:
make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
EOF
exit 1