projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: disable Ubuntu-hwe-4.18.0 branch for bionic builds
[lttng-ci.git]
/
scripts
/
lttng-tools
/
build.sh
diff --git
a/scripts/lttng-tools/build.sh
b/scripts/lttng-tools/build.sh
index ad695d24263f1bd1dee265225caa77fb2f2f86d8..dded5f1efeda0b555474c8e6f92d3c6aa069103f 100755
(executable)
--- a/
scripts/lttng-tools/build.sh
+++ b/
scripts/lttng-tools/build.sh
@@
-73,6
+73,7
@@
verne() {
arch=${arch:-}
conf=${conf:-}
build=${build:-}
arch=${arch:-}
conf=${conf:-}
build=${build:-}
+test_type=${test_type:-}
SRCDIR="$WORKSPACE/src/lttng-tools"
#TMPDIR="$WORKSPACE/tmp"
SRCDIR="$WORKSPACE/src/lttng-tools"
#TMPDIR="$WORKSPACE/tmp"
@@
-85,6
+86,7
@@
rm -rf "$PREFIX" "$TAPDIR"
mkdir -p "$PREFIX" "$TAPDIR"
#export TMPDIR
mkdir -p "$PREFIX" "$TAPDIR"
#export TMPDIR
+CFLAGS="-g -O2"
# liburcu
URCU_INCS="$WORKSPACE/deps/liburcu/build/include/"
# liburcu
URCU_INCS="$WORKSPACE/deps/liburcu/build/include/"
@@
-100,29
+102,35
@@
UST_JAVA="$WORKSPACE/deps/lttng-ust/build/share/java/"
BABEL_LIBS="$WORKSPACE/deps/babeltrace/build/lib/"
BABEL_BINS="$WORKSPACE/deps/babeltrace/build/bin/"
BABEL_LIBS="$WORKSPACE/deps/babeltrace/build/lib/"
BABEL_BINS="$WORKSPACE/deps/babeltrace/build/bin/"
+# pgrep
+PGREP=pgrep
# Set platform variables
case "$arch" in
# Set platform variables
case "$arch" in
-sol
aris10
)
+sol
10-i386
)
MAKE=gmake
TAR=gtar
NPROC=gnproc
BISON="bison"
YACC="$BISON -y"
MAKE=gmake
TAR=gtar
NPROC=gnproc
BISON="bison"
YACC="$BISON -y"
- CFLAGS="
-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1
"
+ CFLAGS="
${CFLAGS:-} -D_XOPEN_SOURCE=500
"
RUN_TESTS="no"
RUN_TESTS="no"
+
+ export PATH="/opt/csw/bin:/usr/ccs/bin:$PATH"
;;
;;
-sol
aris11
)
+sol
11-i386
)
MAKE=gmake
TAR=gtar
NPROC=nproc
MAKE=gmake
TAR=gtar
NPROC=nproc
- BISON="
/opt/csw/bin/
bison"
+ BISON="bison"
YACC="$BISON -y"
YACC="$BISON -y"
- CFLAGS="
-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1
"
+ CFLAGS="
${CFLAGS:-} -D_XOPEN_SOURCE=500
"
RUN_TESTS="no"
export PATH="$PATH:/usr/perl5/bin"
RUN_TESTS="no"
export PATH="$PATH:/usr/perl5/bin"
+ CPPFLAGS="-I/opt/csw/include"
+ LDFLAGS="-L/opt/csw/lib"
;;
macosx)
;;
macosx)
@@
-134,17
+142,27
@@
macosx)
RUN_TESTS="no"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
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"
+ C
PP
FLAGS="-I/opt/local/include"
LDFLAGS="-L/opt/local/lib"
;;
LDFLAGS="-L/opt/local/lib"
;;
+cygwin|cygwin64|msys32|msys64)
+ MAKE=make
+ TAR=tar
+ NPROC=nproc
+ BISON="bison"
+ YACC="$BISON -y"
+ #CFLAGS=""
+ RUN_TESTS="no"
+ ;;
+
*)
MAKE=make
TAR=tar
NPROC=nproc
BISON="bison"
YACC="$BISON -y"
*)
MAKE=make
TAR=tar
NPROC=nproc
BISON="bison"
YACC="$BISON -y"
- CFLAGS=""
+
#
CFLAGS=""
RUN_TESTS="yes"
PYTHON2=python2
RUN_TESTS="yes"
PYTHON2=python2
@@
-158,6
+176,17
@@
macosx)
;;
esac
;;
esac
+case "$test_type" in
+base)
+ RUN_TESTS_LONG_REGRESSION="no"
+ ;;
+full)
+ RUN_TESTS_LONG_REGRESSION="yes"
+ ;;
+*)
+ RUN_TESTS_LONG_REGRESSION="no"
+ ;;
+esac
# Enter the source directory
cd "$SRCDIR"
# Enter the source directory
cd "$SRCDIR"
@@
-192,17
+221,21
@@
else
NO_UST="--disable-lttng-ust"
fi
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
# Set configure options for each build configuration
-CONF_OPTS=""
case "$conf" in
static)
echo "Static build"
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"
;;
no-ust)
echo "Build without UST support"
- CONF_OPTS
="
$NO_UST"
+ CONF_OPTS
+="
$NO_UST"
;;
agents)
;;
agents)
@@
-214,12
+247,6
@@
agents)
echo "Enable Python agents"
export PYTHONPATH="$UST_PYTHON2:$UST_PYTHON3"
CONF_OPTS+=" --enable-test-python-agent-all"
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)
;;
relayd-only)
@@
-227,9
+254,13
@@
relayd-only)
CONF_OPTS="--disable-bin-lttng --disable-bin-lttng-consumerd --disable-bin-lttng-crash --disable-bin-lttng-sessiond --disable-extras --disable-man-pages $NO_UST"
;;
CONF_OPTS="--disable-bin-lttng --disable-bin-lttng-consumerd --disable-bin-lttng-crash --disable-bin-lttng-sessiond --disable-extras --disable-man-pages $NO_UST"
;;
+debug-rcu)
+ echo "Enable RCU sanity checks for debugging"
+ CPPFLAGS="${CPPFLAGS:-} -DDEBUG_RCU"
+ ;;
+
*)
echo "Standard build"
*)
echo "Standard build"
- CONF_OPTS=""
;;
esac
;;
esac
@@
-320,6
+351,9
@@
if [ "$RUN_TESTS" = "yes" ]; then
mkdir -p "$TAPDIR/unit"
mkdir -p "$TAPDIR/fast_regression"
mkdir -p "$TAPDIR/with_bindings_regression"
mkdir -p "$TAPDIR/unit"
mkdir -p "$TAPDIR/fast_regression"
mkdir -p "$TAPDIR/with_bindings_regression"
+ if [ "$RUN_TESTS_LONG_REGRESSION" = "yes" ]; then
+ mkdir -p "$TAPDIR/long_regression"
+ fi
# Force the lttng-sessiond path to /bin/true to prevent the spawing of a
# lttng-sessiond --daemonize on "lttng create"
# Force the lttng-sessiond path to /bin/true to prevent the spawing of a
# lttng-sessiond --daemonize on "lttng create"
@@
-329,22
+363,21
@@
if [ "$RUN_TESTS" = "yes" ]; then
if [ "$conf" != "no-ust" ]; then
# Run 'unit_tests', 2.8 and up has a new test suite
if vergte "$PACKAGE_VERSION" "2.8"; then
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
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
+ if [ "$RUN_TESTS_LONG_REGRESSION" = "yes" ]; then
+ prove --merge -v --exec '' - < "$BUILD_PATH/tests/long_regression" --archive "$TAPDIR/long_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
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 {} \;
# TAP plugin is having a hard time with .yml files.
find "$TAPDIR" -name "meta.yml" -exec rm -f {} \;
This page took
0.025557 seconds
and
4
git commands to generate.