X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fcommon.sh;fp=tests%2Fcommon.sh;h=9eb03f831c00491050fee072f05fff265a67e716;hp=0000000000000000000000000000000000000000;hb=fce9a534217cc39db50bb546f2521cc4321df197;hpb=f864c15d3148f14019e837544213314db0198ccb diff --git a/tests/common.sh b/tests/common.sh new file mode 100644 index 0000000..9eb03f8 --- /dev/null +++ b/tests/common.sh @@ -0,0 +1,12 @@ +# +# This file is meant to be sourced from other tests scripts. +# + +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 +