From f08b6beeda53f0afd07fc877353746b6fea689f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 4 May 2025 16:14:31 +0200 Subject: [PATCH] ci: add variable "RUN_TESTS" in script build_test.sh When set to "0", the tests are not executed after the build. --- tools/build_test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/build_test.sh b/tools/build_test.sh index 992dc0d82..7b486c0c8 100755 --- a/tools/build_test.sh +++ b/tools/build_test.sh @@ -23,6 +23,7 @@ # # Build WeeChat according to environment variables: # - BUILDARGS: arguments for cmake command +# - RUN_TESTS: set to 0 to disable run of tests # # Syntax to run the script with environment variables: # BUILDARGS="arguments" ./build_test.sh @@ -61,4 +62,6 @@ else make VERBOSE=1 -j "$(nproc)" sudo make install fi -ctest -V +if [ "$RUN_TESTS" != "0" ]; then + ctest -V +fi