Skip to content

Commit 88f41b9

Browse files
committed
Print time of tests run under valgrind
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent a622dc7 commit 88f41b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_valgrind.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ for test in $TESTS; do
154154

155155
LAST_TEST_FAILED=0
156156
set +e
157-
HWLOC_CPUID_PATH=./cpuid valgrind $OPTION $OPT_SUP --gen-suppressions=all $test $FILTER >$LOG 2>&1
157+
HWLOC_CPUID_PATH=./cpuid time valgrind $OPTION $OPT_SUP --gen-suppressions=all $test $FILTER >$LOG 2>&1
158158
RET=$?
159159
set -e
160160
# 125 is the return code when the test is skipped
@@ -172,9 +172,11 @@ for test in $TESTS; do
172172
grep -e "ERROR SUMMARY:" $LOG | grep -v -e "ERROR SUMMARY: 0 errors from 0 contexts" > $ERR || true
173173
if [ $LAST_TEST_FAILED -eq 0 -a $(cat $ERR | wc -l) -eq 0 ]; then
174174
[ $RET -eq 0 ] && echo "- OK" || echo "- SKIPPED"
175+
tail -n2 $LOG || true # print out the output of the "time" command
175176
rm -f $LOG $ERR
176177
else
177178
echo "- FAILED!"
179+
tail -n2 $LOG || true # print out the output of the "time" command
178180
cat $ERR | cut -d' ' -f2-
179181
ANY_TEST_FAILED=1
180182
fi || true

0 commit comments

Comments
 (0)