Commit | Line | Data |
---|---|---|
fce9a534 SM |
1 | # |
2 | # This file is meant to be sourced from other tests scripts. | |
3 | # | |
4 | ||
5 | if [ -x "$URCU_TEST_TIME_BIN" ]; then | |
6 | test_time_bin="$URCU_TEST_TIME_BIN" | |
7 | elif [ -x "/usr/bin/time" ]; then | |
8 | test_time_bin="/usr/bin/time" | |
9 | else | |
10 | test_time_bin="" | |
11 | fi | |
12 | ||
f80aadcd MJ |
13 | function cleanup() |
14 | { | |
15 | if [ x"$tmpfile" != x"" ]; then | |
16 | rm -f $tmpfile | |
17 | fi | |
18 | } | |
19 | ||
20 | function xseq () { | |
21 | i=$1 | |
22 | while [[ "$i" -le "$2" ]]; do | |
23 | echo "$i" | |
24 | i=$(expr $i + 1) | |
25 | done | |
26 | } |