projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Detect nproc bin name in benchmark scripts
[urcu.git]
/
tests
/
benchmark
/
runtests-batch.sh
diff --git
a/tests/benchmark/runtests-batch.sh
b/tests/benchmark/runtests-batch.sh
index 2da1401b15771c91e5e76090161027a91108aeca..0e5577b3cdc4a9cf3c783a6301d2ff997ac85d09 100755
(executable)
--- a/
tests/benchmark/runtests-batch.sh
+++ b/
tests/benchmark/runtests-batch.sh
@@
-1,19
+1,35
@@
-#!/bin/sh
+#!/bin/bash
+
+source ../utils/tap.sh
+
+NUM_TESTS=1
+
+plan_tests ${NUM_TESTS}
. ./common.sh
. ./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
# 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
else
time_command=""
fi
+tmpfile=$(mktemp)
+
#for a in test_urcu_gc test_urcu_gc_mb test_urcu_qsbr_gc; do
for a in test_urcu_gc; do
#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 $time_command -o $tmpfile ./${a} $*
+ diag "time: $(cat $tmpfile)"
done
done
-
This page took
0.02379 seconds
and
4
git commands to generate.