Tests fix: errors in shell scripts
[urcu.git] / tests / benchmark / runtests-batch.sh
index 2da1401b15771c91e5e76090161027a91108aeca..f030de6e6e75617314761ca3e8a0628b72861310 100755 (executable)
@@ -1,19 +1,14 @@
-#!/bin/sh
+#!/bin/bash
 
+. ../utils/tap.sh
 . ./common.sh
 
-log_file="runall.detail.log"
+NUM_TESTS=1
 
-# 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
+plan_tests     ${NUM_TESTS}
 
 #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} $*
+       okx "${TEST_TIME_BIN}" ./"${a}" "$@" 2>"${TMPFILE}"
+       diag "time: $(cat "${TMPFILE}")"
 done
-
This page took 0.023022 seconds and 4 git commands to generate.