Fix: missing ;; for case
[lttng-ci.git] / lttng-ust / lttng-ust-master.sh
index 3d52a4965c1e03e4ab9a451204d5d2c9bad6dddf..ec96c2658de0d0068b20705b932d6220707755a0 100755 (executable)
@@ -27,13 +27,34 @@ java-agent)
     export CLASSPATH="/usr/share/java/log4j-1.2.jar"
     CONF_OPTS="--enable-java-agent-all"
     ;;
+python-agent)
+       echo "Python agent build"
+       CONF_OPTS="--enable-python-agent"
+       ;;
 *)
     echo "Standard build"
     CONF_OPTS=""
     ;;
 esac
 
-./configure --prefix=$PREFIX $CONF_OPTS
+BUILD_PATH=$WORKSPACE
+# Build type
+# oot : out-of-tree build
+# dist: build via make dist
+# *   : normal tree build
+case "$build" in
+       oot)
+               BUILD_PATH=$WORKSPACE/oot
+               mkdir -p $BUILD_PATH
+               cd $BUILD_PATH
+               ;;
+       dist)
+               ;;
+       *)
+               ;;
+esac
+
+$WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
 make V=1
 make install
 
@@ -43,7 +64,7 @@ mkdir -p $WORKSPACE/tap/unit
 
 cd $WORKSPACE/tests
 
-prove --merge --exec '' - < $WORKSPACE/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true
+prove --merge --exec '' - < $BUILD_PATH/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true
 
 # TAP plugin is having a hard time with .yml files.
 rm -f $WORKSPACE/tap/unit/meta.yml
This page took 0.024583 seconds and 4 git commands to generate.