Tests: ust: clock override plugin
[lttng-tools.git] / tests / regression / ust / clock-override / run-clock-override
diff --git a/tests/regression/ust/clock-override/run-clock-override b/tests/regression/ust/clock-override/run-clock-override
new file mode 100755 (executable)
index 0000000..d771ecf
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# launch with: run-clock-override progname args
+DIR=$(dirname $0)
+DIR=$(readlink -f $DIR)
+
+if [ -x "$DIR/.libs/lttng-ust-clock-override-test.so" ]; then
+       ret=`LTTNG_UST_CLOCK_PLUGIN="$DIR/.libs/lttng-ust-clock-override-test.so" $@`
+       exit $ret
+else
+       echo "Clock-override missing shared object"
+       exit $1
+fi
This page took 0.023665 seconds and 4 git commands to generate.