Babeltrace:use new variable TEST_PLAN_PATH for test plan base path.
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 19 Feb 2015 21:05:00 +0000 (16:05 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 19 Feb 2015 21:05:00 +0000 (16:05 -0500)
Normally we use WORKSPACE as base test plan directory except for
dist build where we want to test independent tarball.

This behaviour should waterfall on tools and others

babeltrace/babeltrace-master.sh

index 13c4ec6d9906c43a4b9c6df128bc85e5433335e4..eb75863e32fcf2ca0ffdce1c69aba9c318372c3e 100755 (executable)
@@ -35,6 +35,8 @@ esac
 # before continuing
 
 BUILD_PATH=$WORKSPACE
+TEST_PLAN_PATH=$WORKSPACE
+
 case "$build" in
        oot)
                echo "Out of tree build"
@@ -59,9 +61,11 @@ case "$build" in
                tar xvf *.tar.* --strip 1
 
                $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
+
+               # Set test plan to dist tar
+               TEST_PLAN_PATH=$BUILD_PATH
                ;;
        *)
-               BUILD_PATH=$WORKSPACE
                echo "Standard tree build"
                $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
                ;;
@@ -76,8 +80,8 @@ mkdir -p $WORKSPACE/tap
 cd $BUILD_PATH/tests
 
 # Run make check tests
-if [ -e $BUILD_PATH/tests/tests ]; then
-       prove --merge --exec '' - < $BUILD_PATH/tests/tests --archive $WORKSPACE/tap/ || true
+if [ -e $TEST_PLAN_PATH/tests/tests ]; then
+       prove --merge --exec '' - < $TEST_PLAN_PATH/tests/tests --archive $WORKSPACE/tap/ || true
 else
        echo "Missing test plan"
        exit 1
This page took 0.023484 seconds and 4 git commands to generate.