X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fbenchmark%2Fcommon.sh;fp=tests%2Fbenchmark%2Fcommon.sh;h=9eb03f831c00491050fee072f05fff265a67e716;hb=169e1020838cc5b9f3df503d160ce1bf0c939b2f;hp=0000000000000000000000000000000000000000;hpb=5bcf8326b6e13ca93429925bc38fb81c73155c54;p=userspace-rcu.git diff --git a/tests/benchmark/common.sh b/tests/benchmark/common.sh new file mode 100644 index 0000000..9eb03f8 --- /dev/null +++ b/tests/benchmark/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 +