From: Mathieu Desnoyers Date: Mon, 16 Mar 2015 01:15:41 +0000 (-0400) Subject: tests: Use stderr redirection for time output X-Git-Tag: v0.9.0~65 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=8d11f7cd74968f5baffdbfde8b38d3197ef6865d;p=urcu.git tests: Use stderr redirection for time output Allows using Mac OS X time command in tests. Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/runtests-batch.sh b/tests/benchmark/runtests-batch.sh index 2da1401..3d295fb 100755 --- a/tests/benchmark/runtests-batch.sh +++ b/tests/benchmark/runtests-batch.sh @@ -6,7 +6,7 @@ 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" + time_command="$test_time_bin" else time_command="" fi @@ -14,6 +14,6 @@ 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 "$log_file" - $time_command ./${a} $* + $time_command ./${a} $* 2>> $log_file done diff --git a/tests/benchmark/runtests.sh b/tests/benchmark/runtests.sh index 6001174..38e798c 100755 --- a/tests/benchmark/runtests.sh +++ b/tests/benchmark/runtests.sh @@ -6,7 +6,7 @@ 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" + time_command="$test_time_bin" else time_command="" fi @@ -16,6 +16,6 @@ for a in test_urcu_gc test_urcu_signal_gc test_urcu_mb_gc test_urcu_qsbr_gc \ test_urcu test_urcu_signal test_urcu_mb test_urcu_qsbr \ test_rwlock test_perthreadlock test_mutex; do echo "./${a} $*" | tee -a "$log_file" - $time_command ./${a} $* + $time_command ./${a} $* 2>> $log_file done