X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Fcommon.sh;h=1f5f07f96622201075e02b33c4f284bad27366a9;hp=9eb03f831c00491050fee072f05fff265a67e716;hb=f80aadcdd08e594e5758acc9ec5d7ef71725ac77;hpb=fba91a85491b83db5338078d42bb43023991eca4 diff --git a/tests/benchmark/common.sh b/tests/benchmark/common.sh index 9eb03f8..1f5f07f 100755 --- a/tests/benchmark/common.sh +++ b/tests/benchmark/common.sh @@ -10,3 +10,17 @@ else test_time_bin="" fi +function cleanup() +{ + if [ x"$tmpfile" != x"" ]; then + rm -f $tmpfile + fi +} + +function xseq () { + i=$1 + while [[ "$i" -le "$2" ]]; do + echo "$i" + i=$(expr $i + 1) + done +}