arch=${arch:-}
conf=${conf:-}
build=${build:-}
+test_type=${test_type:-}
SRCDIR="$WORKSPACE/src/lttng-tools"
#TMPDIR="$WORKSPACE/tmp"
BABEL_LIBS="$WORKSPACE/deps/babeltrace/build/lib/"
BABEL_BINS="$WORKSPACE/deps/babeltrace/build/bin/"
+# pgrep
+PGREP=pgrep
# Set platform variables
case "$arch" in
;;
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"
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"
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'."