Allows using Mac OS X time command in tests.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
# 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
#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
# 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
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