X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Fcommon.sh;fp=tests%2Fbenchmark%2Fcommon.sh;h=0000000000000000000000000000000000000000;hp=4dbc5671edbb0f91b09dae3aba3d296440d434dc;hb=de6cb9d58c9d654b3e375835faf1f84294315cdd;hpb=4c10e9af6fb29192621372ab9077860f3c1b179f diff --git a/tests/benchmark/common.sh b/tests/benchmark/common.sh deleted file mode 100755 index 4dbc567..0000000 --- a/tests/benchmark/common.sh +++ /dev/null @@ -1,36 +0,0 @@ -# -# This file is meant to be sourced from other tests scripts. -# - -cleanup() { - if [ x"$TMPFILE" != "x" ]; then - rm -f "$TMPFILE" - fi - - # Call the tap.sh exit cleanup code - _exit -} - -xseq() { - i=$1 - while [[ "$i" -le "$2" ]]; do - echo "$i" - i=$(( i + 1 )) - done -} - -# Set TEST_TIME_BIN -if [ -x "$URCU_TEST_TIME_BIN" ]; then - TEST_TIME_BIN="$URCU_TEST_TIME_BIN" -elif [ -x "/usr/bin/time" ]; then - TEST_TIME_BIN="/usr/bin/time" -else - TEST_TIME_BIN="" -fi -export TEST_TIME_BIN - -# Create a temporary file for tests output -TMPFILE=$(mktemp) - -# Set traps to delete the temporary file on exit -trap cleanup EXIT