Kaydet (Commit) c48b87e6 authored tarafından Miklos Vajna's avatar Miklos Vajna

solenv: support PYTHON_TEST_NAME for python tests

This is similar to CPPUNIT_TEST_NAME for CppunitTests, i.e. allows running a
single module/class/method only, instead of all modules added by
gb_PythonTest_add_modules.

Example:

make PythonTest_sw_python PYTHON_TEST_NAME="text_portion_enumeration_test.TextPortionEnumerationTest.test_empty2"

Change-Id: Ibed5729bc29a5112216bce211455d6c6a0837b30
Reviewed-on: https://gerrit.libreoffice.org/46907Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 7cf4eeed
......@@ -57,7 +57,7 @@ else
)) \
$(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) \
$(gb_PythonTest_COMMAND) \
$(MODULES) \
$(if $(PYTHON_TEST_NAME),$(PYTHON_TEST_NAME),$(MODULES)) \
$(if $(gb_CppunitTest__interactive),, \
> $@.log 2>&1 \
|| ($(if $(value gb_CppunitTest_postprocess), \
......
......@@ -24,9 +24,22 @@ make $1Test_$2 VALGRIND=memcheck # for memory checking
You can limit the execution to just one particular test by:
EOF
case $1 in
Python)
cat << EOF
make $1Test_$2 PYTHON_TEST_NAME="testXYZ" ...above mentioned params...
EOF
;;
*)
cat << EOF
make $1Test_$2 CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
EOF
;;
esac
exit 1
......
......@@ -25,9 +25,22 @@ make $1Test_$2 CPPUNITTRACE="drmemory -free_max_frames 20" # for memory checking
You can limit the execution to just one particular test by:
EOF
case $1 in
Python)
cat << EOF
make $1Test_$2 PYTHON_TEST_NAME="testXYZ" ...above mentioned params...
EOF
;;
*)
cat << EOF
make $1Test_$2 CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
EOF
;;
esac
exit 1
......
......@@ -29,9 +29,22 @@ make $1Test_$2 DEBUGCPPUNIT=TRUE
You can limit the execution to just one particular test by:
EOF
case $1 in
Python)
cat << EOF
make PYTHON_TEST_NAME="testXYZ" ...above mentioned params...
EOF
;;
*)
cat << EOF
make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
EOF
;;
esac
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment