summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-31 09:02:59 -0800
committerScott <[email protected]>2022-01-31 09:02:59 -0800
commitf65e30c79a4425a5ec49f4785c44655d59986ca6 (patch)
treefe379a3565dfddfb779b794ea573cd2a20d265f1 /tests
parentf77068f0dc494d9394cdacafc6f719730926839f (diff)
Make run_tests.sh re-run a subset of the tests w/o coverage
instrumentation even in --coverage mode.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 8af4749..016ac44 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -9,6 +9,8 @@ INTEGRATION=0
FAILURES=0
TESTS_RUN=0
COVERAGE=0
+PERF_TESTS=("string_utils_test.py")
+
dup() {
if [ $# -ne 2 ]; then
@@ -119,10 +121,14 @@ fi
if [ ${UNITTEST} -eq 1 ]; then
for test in $(find ${ROOT} -name "*_test.py" -print); do
BASE=$(basename ${test})
- BASE="${BASE} (unittest)"
- make_header "${BASE}" "${GREEN}"
+ HDR="${BASE} (unittest)"
+ make_header "${HDR}" "${GREEN}"
if [ ${COVERAGE} -eq 1 ]; then
coverage run --source ${HOME}/lib --append ${test} --unittests_ignore_perf
+ if [[ " ${PERF_TESTS[*]} " =~ " ${BASE} " ]]; then
+ echo "(re-running w/o coverage to record perf results)."
+ ${test}
+ fi
else
${test}
fi