mkdir -p "$PREFIX" "$TAPDIR"
#export TMPDIR
+CFLAGS="-g -O2"
# liburcu
URCU_INCS="$WORKSPACE/deps/liburcu/build/include/"
NPROC=gnproc
BISON="bison"
YACC="$BISON -y"
- CFLAGS="-D_XOPEN_SOURCE=500"
+ CFLAGS="${CFLAGS:-} -D_XOPEN_SOURCE=500"
RUN_TESTS="no"
export PATH="/opt/csw/bin:/usr/ccs/bin:$PATH"
NPROC=nproc
BISON="/opt/csw/bin/bison"
YACC="$BISON -y"
- CFLAGS="-D_XOPEN_SOURCE=500"
+ CFLAGS="${CFLAGS:-} -D_XOPEN_SOURCE=500"
RUN_TESTS="no"
export PATH="$PATH:/usr/perl5/bin"
+ CPPFLAGS="-I/opt/csw/include"
+ LDFLAGS="-L/opt/csw/lib"
;;
macosx)
RUN_TESTS="no"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
- CFLAGS="-I/opt/local/include"
+ CPPFLAGS="-I/opt/local/include"
LDFLAGS="-L/opt/local/lib"
;;
NPROC=nproc
BISON="bison"
YACC="$BISON -y"
- CFLAGS=""
+ #CFLAGS=""
RUN_TESTS="no"
;;
NPROC=nproc
BISON="bison"
YACC="$BISON -y"
- CFLAGS=""
+ #CFLAGS=""
RUN_TESTS="yes"
PYTHON2=python2
NO_UST="--disable-lttng-ust"
fi
+# Most build configs require the python bindings
+CONF_OPTS="--enable-python-bindings"
+export PYTHON="python3"
+export PYTHON_CONFIG="/usr/bin/python3-config"
+
# Set configure options for each build configuration
-CONF_OPTS=""
case "$conf" in
static)
echo "Static build"
- CONF_OPTS="--enable-static --disable-shared"
+ CONF_OPTS+=" --enable-static --disable-shared"
;;
no-ust)
echo "Build without UST support"
- CONF_OPTS="$NO_UST"
+ CONF_OPTS+=" $NO_UST"
;;
agents)
echo "Enable Python agents"
export PYTHONPATH="$UST_PYTHON2:$UST_PYTHON3"
CONF_OPTS+=" --enable-test-python-agent-all"
-
- echo "Enable 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"
;;
relayd-only)
*)
echo "Standard build"
- CONF_OPTS=""
;;
esac
if [ "$conf" != "no-ust" ]; then
# Run 'unit_tests', 2.8 and up has a new test suite
if vergte "$PACKAGE_VERSION" "2.8"; then
- make check
+ make --keep-going check
rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*'" $BUILD_PATH/tests/" "$TAPDIR"
else
prove --merge -v --exec '' - < "$BUILD_PATH/tests/unit_tests" --archive "$TAPDIR/unit/" || true
prove --merge -v --exec '' - < "$BUILD_PATH/tests/fast_regression" --archive "$TAPDIR/fast_regression/" || true
+ prove --merge -v --exec '' - < "$BUILD_PATH/tests/with_bindings_regression" --archive "$TAPDIR/with_bindings_regression/" || true
fi
else
# Regression is disabled for now, we need to adjust the testsuite for no ust builds.
echo "Tests disabled for 'no-ust'."
fi
- # Run 'with_bindings_regression' test suite for 'python-bindings' config
- if [ "$conf" = "python-bindings" ]; then
- prove --merge -v --exec '' - < "$BUILD_PATH/tests/with_bindings_regression" --archive "$TAPDIR/with_bindings_regression/" || true
- fi
-
# TAP plugin is having a hard time with .yml files.
find "$TAPDIR" -name "meta.yml" -exec rm -f {} \;