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=f5ab766ee2c8300cb00ca5878b1cb464f960a66d diff --git a/tests/benchmark/common.sh b/tests/benchmark/common.sh old mode 100644 new mode 100755 index 9eb03f8..1f5f07f --- 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 +}