Test for the presence of the tracepoint_test file before running the test
authorYannick Brosseau <yannick.brosseau@gmail.com>
Fri, 18 Feb 2011 21:34:06 +0000 (16:34 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 18 Feb 2011 21:34:06 +0000 (16:34 -0500)
Since the test is disabled in the makefile, don't try to execute it in the
script.

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/tracepoint/run

index f0d9ed103f0eb8f469484b32d8db1b717f7d213b..d63f42de89841b9bb386da10b280e02f58452784 100755 (executable)
@@ -2,6 +2,11 @@
 
 TESTDIR=$(dirname $0)/..
 
+if [ ! -x "$TESTDIR/tracepoint/tracepoint_test" ]; then
+    echo "tracepoint_test executable is not present"
+    exit 1
+fi
+
 source $TESTDIR/test_functions.sh
 source $TESTDIR/tap.sh
 
This page took 0.024307 seconds and 4 git commands to generate.