;;
esac
-if [ "x${CC:-}" != "x" ]; then
- echo "Selected compiler:"
- "$CC" -v
-fi
-
# Set platform variables
case "$platform" in
macos*)
export LDFLAGS="-L/opt/local/lib $LDFLAGS"
export PYTHON="python3"
export PYTHON_CONFIG="python3-config"
-
- LTTNG_TOOLS_RUN_TESTS="no"
- LTTNG_TOOLS_RUN_TESTS_LONG_REGRESSION="no"
;;
cygwin|cygwin64|msys32|msys64)
export MAKE=make
export TAR=tar
export NPROC=nproc
-
- LTTNG_TOOLS_RUN_TESTS="no"
- LTTNG_TOOLS_RUN_TESTS_LONG_REGRESSION="no"
;;
*)
fi
P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
- DEPS_PYTHON3="$WORKSPACE/deps/build/$LIBDIR/python$P3_VERSION/site-packages"
+
+ # Temporary fix for an issue on debian python >= 3.10, add the 'local' prefix
+ DEPS_PYTHON3="$WORKSPACE/deps/build/$LIBDIR/python$P3_VERSION/site-packages:$WORKSPACE/deps/build/local/$LIBDIR/python$P3_VERSION/dist-packages"
if [ "$LIBDIR" != "$LIBDIR_ARCH" ]; then
DEPS_PYTHON3="$DEPS_PYTHON3:$WORKSPACE/deps/build/$LIBDIR_ARCH/python$P3_VERSION/site-packages"
fi
no-ust)
print_header "Conf: Without UST support"
+
CONF_OPTS+=("--without-lttng-ust")
DIST_CONF_OPTS+=("--without-lttng-ust")
;;
fi
fi
-# Run tests for all configs except 'no-ust'
-if [ "$LTTNG_TOOLS_RUN_TESTS" = "yes" ] && [ "$conf" != "no-ust" ]; then
+# Run tests for all configs except 'no-ust' / 'relayd-only'
+if [ "$LTTNG_TOOLS_RUN_TESTS" = "yes" ] && [[ ! "$conf" =~ (no-ust|relayd-only) ]]; then
print_header "Run test suite"
# Allow core dumps
prove --merge -v --exec '' - < long_regression --archive "$TAPDIR/long_regression/" || exit_status=1
cd ..
fi
-else
+fi
+
+if [ "$LTTNG_TOOLS_RUN_TESTS" = "yes" ] && [[ "$conf" =~ (no-ust|relayd-only) ]]; then
# The TAP plugin will fail the job if no test logs are present
mkdir -p "$TAPDIR/no-tests"
echo "1..1" > "$TAPDIR/no-tests/tests.log"