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 2fee661d6da24e69dab04a1edbb8c7a73f3745ef..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"
@@
-101,6
+102,8
@@
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
@@
-173,6
+176,17
@@
cygwin|cygwin64|msys32|msys64)
;;
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"
@@
-337,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"
@@
-353,6
+370,9
@@
if [ "$RUN_TESTS" = "yes" ]; then
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
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'."
else
# Regression is disabled for now, we need to adjust the testsuite for no ust builds.
echo "Tests disabled for 'no-ust'."
This page took
0.02364 seconds
and
4
git commands to generate.