Fix: regtest outputs valid TAP protocol
[urcu.git] / tests / benchmark / common.sh
CommitLineData
fce9a534
SM
1#
2# This file is meant to be sourced from other tests scripts.
3#
4
5if [ -x "$URCU_TEST_TIME_BIN" ]; then
6 test_time_bin="$URCU_TEST_TIME_BIN"
7elif [ -x "/usr/bin/time" ]; then
8 test_time_bin="/usr/bin/time"
9else
10 test_time_bin=""
11fi
12
f80aadcd
MJ
13function cleanup()
14{
15 if [ x"$tmpfile" != x"" ]; then
16 rm -f $tmpfile
17 fi
18}
19
20function xseq () {
21 i=$1
22 while [[ "$i" -le "$2" ]]; do
23 echo "$i"
24 i=$(expr $i + 1)
25 done
26}
This page took 0.027811 seconds and 4 git commands to generate.