Add -Wextra to CFLAGS
[urcu.git] / tests / benchmark / runtests.sh
index 38e798c809b045df47fbe84232d437e6c425d0fc..dd5d6624bae6c470d68f5895dc9b26b20a918e80 100755 (executable)
@@ -1,21 +1,16 @@
-#!/bin/sh
+#!/bin/bash
 
+. ../utils/tap.sh
 . ./common.sh
 
-log_file="runall.detail.log"
+NUM_TESTS=15
 
-# Check if time bin is non-empty
-if [ -n "$test_time_bin" ]; then
-       time_command="$test_time_bin"
-else
-       time_command=""
-fi
+plan_tests     ${NUM_TESTS}
 
 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} $* 2>> $log_file
+       okx ${TEST_TIME_BIN} ./"${a}" "$@" 2>"${TMPFILE}"
+       diag "time: $(cat "${TMPFILE}")"
 done
-
This page took 0.022284 seconds and 4 git commands to generate.