Fix: uatomic arm32: add missing release barrier before uatomic_xchg
[urcu.git] / tests / benchmark / runtests.sh
index 60011744e67699f3eaaa88181257eec008a3d620..781e8f7f7e32d735e16430280d21b12448a24706 100755 (executable)
@@ -1,12 +1,27 @@
-#!/bin/sh
+#!/bin/bash
+
+source ../utils/tap.sh
+
+NUM_TESTS=15
+
+plan_tests     ${NUM_TESTS}
 
 . ./common.sh
 
-log_file="runall.detail.log"
+function cleanup()
+{
+       if [ x"$tmpfile" != x"" ]; then
+               rm -f $tmpfile
+       fi
+}
+
+tmpfile=
+trap cleanup SIGINT SIGTERM EXIT
+tmpfile=$(mktemp)
 
 # 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
@@ -15,7 +30,6 @@ 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 "$log_file"
-       $time_command ./${a} $*
+       okx $time_command -o $tmpfile ./${a} $*
+       diag "time: $(cat $tmpfile)"
 done
-
This page took 0.022988 seconds and 4 git commands to generate.