LAVA: update canary job to 2.8.6
[lttng-ci.git] / scripts / lttng-ust / build.sh
index dc44f21342bb04755541f3dcf3dcb4ac72b2aba0..8c6e47c9a6012c6bd135079a85a7a414576e8562 100755 (executable)
@@ -35,6 +35,7 @@ rm -rf "$PREFIX" "$TMPDIR"
 mkdir -p "$PREFIX" "$TMPDIR"
 
 export TMPDIR
+export CFLAGS="-g -O2"
 
 # Set platform variables
 case "$arch" in
@@ -74,6 +75,11 @@ agents)
     CONF_OPTS+=" --enable-python-agent"
     ;;
 
+debug-rcu)
+    echo "Enable RCU sanity checks for debugging"
+    CPPFLAGS="${CPPFLAGS:-} -DDEBUG_RCU"
+    ;;
+
 *)
     echo "Standard build"
     CONF_OPTS=""
@@ -111,7 +117,7 @@ dist)
     echo "Distribution tarball in-tree build"
 
     # Initial configure and generate tarball
-    "$SRCDIR/configure"
+    CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" "$SRCDIR/configure"
     $MAKE dist
 
     BUILD_PATH="$(mktemp -d)"
@@ -131,7 +137,7 @@ oot-dist)
     cd "$BUILD_PATH"
 
     # Initial configure and generate tarball
-    "$SRCDIR/configure"
+    CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" "$SRCDIR/configure"
     $MAKE dist
 
     NEWSRC_PATH="$(mktemp -d)"
@@ -159,7 +165,7 @@ $MAKE -j "$($NPROC)" V=1
 $MAKE install
 
 # Run tests
-$MAKE check
+$MAKE --keep-going check
 
 # Copy tap logs for the jenkins tap parser
 rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
This page took 0.023779 seconds and 4 git commands to generate.