Specify we use a bash script
[lttng-ci.git] / lttng-tools / lttng-tools-master-test-joraj.sh
index 545d45d4535dadb82f815584b5c70951259294e9..356425f963e703b95b8b35500709300f4eaf7af0 100755 (executable)
@@ -1,3 +1,5 @@
+#!/bin/bash
+set -x
 # Create build directory
 rm -rf $WORKSPACE/build
 mkdir -p $WORKSPACE/build
@@ -9,7 +11,7 @@ URCU_LIBS="$WORKSPACE/dependencies/liburcu/build/lib/"
 # lttng-ust
 UST_INCS="$WORKSPACE/dependencies/lttng-ust/build/include/"
 UST_LIBS="$WORKSPACE/dependencies/lttng-ust/build/lib/"
-UST_PREFIX=$WORKSPACE"/dependencies/lttng-ust/build/"
+UST_PREFIX="$WORKSPACE/dependencies/lttng-ust/build/"
 
 # babeltrace
 BABEL_INCS="$WORKSPACE/dependencies/babeltrace/build/include/"
@@ -24,7 +26,7 @@ then
     export LDFLAGS="-L$URCU_LIBS"
     export LD_LIBRARY_PATH="$URCU_LIBS:$BABEL_LIBS:$LD_LIBRARY_PATH"
 else
-       CONF_OPTS=$CONF_OPTS" --with-lttng-ust-prefix="$UST_PREFIX
+       CONF_OPTS+=" --with-lttng-ust-prefix=$UST_PREFIX"
     export CPPFLAGS="-I$URCU_INCS"
     export LDFLAGS="-L$URCU_LIBS"
     export LD_LIBRARY_PATH="$URCU_LIBS:$BABEL_LIBS:$LD_LIBRARY_PATH"
@@ -43,22 +45,23 @@ python_bindings)
     # We only support bindings built with Python 3
     export PYTHON="python3"
     export PYTHON_CONFIG="/usr/bin/python3-config"
-    CONF_OPTS="--enable-python-bindings"
+    CONF_OPTS+=" --enable-python-bindings"
     ;;
 no_ust)
     echo "Build without UST support"
-    CONF_OPTS="--disable-lttng-ust"
+    CONF_OPTS+=" --disable-lttng-ust"
     ;;
 java_jul)
     echo "Build with java-jul UST support"
-    CONF_OPTS=$CONF_OPTS" --enable-java-agent-tests-jul --with-java-classpath=$UST_PREFIX/share/java/\*"
+    CONF_OPTS+=" --enable-java-agent-tests-jul --with-java-classpath=$UST_PREFIX/share/java/\*"
        ;;
 java_log4j)
        echo "Build with java-log4j UST support"
-       CONF_OPTS=$CONF_OPTS" --enable-java-agent-tests-log4j --with-java-classpath=/usr/share/java/log4j-1.2.jar"
+       CONF_OPTS+=" --enable-java-agent-tests-log4j --with-java-classpath=/usr/share/java/log4j-1.2.jar"
+       ;;
 *)
     echo "Standard build"
-    CONF_OPTS=""
+    CONF_OPTS+=" "
     ;;
 esac
 
@@ -69,6 +72,9 @@ esac
 #
 # Make sure to move to the build_path and configure
 # before continuing
+echo "**************************************************"
+echo $CONF_OPTS
+echo "**************************************************"
 
 BUILD_PATH=$WORKSPACE
 case "$build" in
@@ -84,7 +90,7 @@ case "$build" in
                BUILD_PATH=`mktemp -d`
 
                # Initial configure and generate tarball
-               ./configure
+               ./configure $CONF_OPTS
                make dist
 
                mkdir -p $BUILD_PATH
@@ -171,3 +177,4 @@ find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
 if [ $build = "dist" ]; then
        rm -rf $BUILD_PATH
 fi
+set +x
This page took 0.023661 seconds and 4 git commands to generate.