summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f77068f)
instrumentation even in --coverage mode.
FAILURES=0
TESTS_RUN=0
COVERAGE=0
FAILURES=0
TESTS_RUN=0
COVERAGE=0
+PERF_TESTS=("string_utils_test.py")
+
dup() {
if [ $# -ne 2 ]; then
dup() {
if [ $# -ne 2 ]; then
if [ ${UNITTEST} -eq 1 ]; then
for test in $(find ${ROOT} -name "*_test.py" -print); do
BASE=$(basename ${test})
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 [ ${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