test/run_unit.sh.in | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit abe076e56d530f19ad496f50deff615738355b31
Author: Miklos Vajna <[email protected]>
AuthorDate: Thu Jan 23 08:52:42 2020 +0100
Commit: Miklos Vajna <[email protected]>
CommitDate: Thu Jan 23 09:19:43 2020 +0100
test: restore ability to just run a single unit test
This was removed in commit 0599db3576838fcd3d736a2c93db0c7e0024f812
(copyFile: de-poco-ize and handle EINTR and short writes., 2020-01-18),
probably by accident.
Change-Id: I36bed5851fbfa0c37a007bedb6f318aaf4d8c64a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87233
Reviewed-by: Miklos Vajna <[email protected]>
Tested-by: Miklos Vajna <[email protected]>
diff --git a/test/run_unit.sh.in b/test/run_unit.sh.in
index 4b893f23c..e6f4da579 100755
--- a/test/run_unit.sh.in
+++ b/test/run_unit.sh.in
@@ -56,6 +56,16 @@ echo " $cmd_line"
# drop .la suffix
tst=`echo $tst | sed "s/\.la//"`;
+if test "z$tst" != "z" && test "z$CPPUNIT_TEST_NAME" != "z"; then
+ # $tst is not empty, but $CPPUNIT_TEST_NAME is set, exit early if they
+ # don't match.
+ if test "z$tst" != "z$CPPUNIT_TEST_NAME"; then
+ touch $tst_log
+ echo ":test-result: SKIP $tst (disabled by CPPUNIT_TEST_NAME)" >
$test_output
+ exit 0;
+ fi
+fi
+
export LOOL_LOGLEVEL=trace
if test "z$enable_debug" != "ztrue"; then
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits