babeltrace: set up tap parser for new test driver
[lttng-ci.git] / scripts / babeltrace / build.sh
index 70abe8eee21b08ba83b92fcdf8013980f93657ea..f007acfb50a621bf0ef7843197e7408809bbc4a2 100755 (executable)
@@ -39,6 +39,16 @@ solaris11)
     YACC="$BISON -y"
     export PATH="$PATH:/usr/perl5/bin"
     ;;
+macosx)
+    MAKE=make
+    TAR=tar
+    NPROC="getconf _NPROCESSORS_ONLN"
+    BISON="bison"
+    YACC="$BISON -y"
+    export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
+    export CFLAGS="-I/opt/local/include"
+    export LDFLAGS="-L/opt/local/lib"
+    ;;
 *)
     MAKE=make
     TAR=tar
@@ -55,7 +65,7 @@ static)
     echo "Static build"
     CONF_OPTS="--enable-static --disable-shared"
     ;;
-python-bindings)  
+python-bindings)
     echo "Build with python bindings"
     # We only support bindings built with Python 3
     export PYTHON="python3"
@@ -93,7 +103,7 @@ case "$build" in
 
     dist)
         echo "Distribution out of tree build"
-       BUILD_PATH=`mktemp -d`
+        BUILD_PATH=`mktemp -d`
 
         # Initial configure and generate tarball
         MAKE=$MAKE BISON="$BISON" YACC="$YACC" ./configure
@@ -112,7 +122,13 @@ case "$build" in
         TEST_PLAN_PATH=$BUILD_PATH
         ;;
 
-*)
+    clang)
+        echo "LLVM clang build"
+        export CC=clang
+        clang -v
+       MAKE=$MAKE BISON="$BISON" YACC="$YACC" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+        ;;
+    *)
         echo "Standard tree build"
         MAKE=$MAKE BISON="$BISON" YACC="$YACC" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
         ;;
@@ -125,8 +141,8 @@ $MAKE install
 # Run tests
 $MAKE check
 
-# Cleanup
-$MAKE clean
+# Remove global test suite log file, it confuses the tap parser
+rm -f tests/test-suite.log
 
 # Cleanup rpath in executables and shared libraries
 find $WORKSPACE/build/bin -type f -perm -0500 -exec chrpath --delete {} \;
This page took 0.024171 seconds and 4 git commands to generate.