tests: split in check, regtest and bench targets
[urcu.git] / tests / benchmark / runtests.sh
diff --git a/tests/benchmark/runtests.sh b/tests/benchmark/runtests.sh
new file mode 100755 (executable)
index 0000000..6001174
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+. ./common.sh
+
+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"
+else
+       time_command=""
+fi
+
+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} $*
+done
+
This page took 0.023889 seconds and 4 git commands to generate.