X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fruntests.sh;h=60011744e67699f3eaaa88181257eec008a3d620;hp=79e54df7fcf1558d1aa3526570483267785e30c8;hb=fce9a534217cc39db50bb546f2521cc4321df197;hpb=f864c15d3148f14019e837544213314db0198ccb diff --git a/tests/runtests.sh b/tests/runtests.sh index 79e54df..6001174 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1,10 +1,21 @@ #!/bin/sh +. ./common.sh + +log_file="runall.detail.log" + +# Check if time bin is non-empty +if [ -n "$test_time_bin" ]; then + time_command="$test_time_bin -a -o $log_file" +else + time_command="" +fi + for a in test_urcu_gc test_urcu_signal_gc test_urcu_mb_gc test_urcu_qsbr_gc \ test_urcu_lgc test_urcu_signal_lgc test_urcu_mb_lgc test_urcu_qsbr_lgc \ test_urcu test_urcu_signal test_urcu_mb test_urcu_qsbr \ test_rwlock test_perthreadlock test_mutex; do - echo "./${a} $*" | tee -a runall.detail.log - /usr/bin/time -a -o runall.detail.log ./${a} $* + echo "./${a} $*" | tee -a "$log_file" + $time_command ./${a} $* done