X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fruntests-batch.sh;h=2da1401b15771c91e5e76090161027a91108aeca;hp=67e019b1a0fcda9532acd9856f53d59005977524;hb=fce9a534217cc39db50bb546f2521cc4321df197;hpb=833dbdb633ba44bfb71b4b965a83096d8e4e827b diff --git a/tests/runtests-batch.sh b/tests/runtests-batch.sh index 67e019b..2da1401 100755 --- a/tests/runtests-batch.sh +++ b/tests/runtests-batch.sh @@ -1,8 +1,19 @@ #!/bin/sh -#for a in test_urcu_gc test_urcu_gc_mb test_qsbr_gc; do +. ./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_gc_mb test_urcu_qsbr_gc; do for a in test_urcu_gc; do - echo "./${a} $*" | tee -a runall.detail.log - /usr/bin/time --append --output runall.detail.log ./${a} $* + echo "./${a} $*" | tee -a "$log_file" + $time_command ./${a} $* done