X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-tools%2Fbuild.sh;h=243e647090cc5c992687723ea0ea5778d1a137ca;hb=3249749d9bb19a5379d6a6e9edb5b1c507277e54;hp=8562d1e650c2f3d5aa47f14434041915b2914426;hpb=1ad4c3d00f43ef188e2fb0b71fd8af5ee3591ca7;p=lttng-ci.git diff --git a/scripts/lttng-tools/build.sh b/scripts/lttng-tools/build.sh index 8562d1e..243e647 100755 --- a/scripts/lttng-tools/build.sh +++ b/scripts/lttng-tools/build.sh @@ -217,11 +217,6 @@ clang-*) ;; esac -if [ "x${CC:-}" != "x" ]; then - echo "Selected compiler:" - "$CC" -v -fi - # Set platform variables case "$platform" in macos*) @@ -233,18 +228,12 @@ 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" ;; *) @@ -321,6 +310,7 @@ static) no-ust) print_header "Conf: Without UST support" + CONF_OPTS+=("--without-lttng-ust") DIST_CONF_OPTS+=("--without-lttng-ust") ;; @@ -498,8 +488,8 @@ if [ "$LTTNG_TOOLS_CLANG_TIDY" = "yes" ]; then 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 @@ -544,7 +534,9 @@ if [ "$LTTNG_TOOLS_RUN_TESTS" = "yes" ] && [ "$conf" != "no-ust" ]; then 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"