Constraints scripts to first release packages

This commit is contained in:
torsten committed 2026-10-07 11:52:09 +00:00
1 parent 95f7d78569
commit 6b8f2efabb
2 files changed
+22 -5

No files matched your search

@@ -5,6 +5,7 @@
#
ADD_SUBDIRECTORY(CodeGen)
ADD_SUBDIRECTORY(CommonUnitTestsPlaceholder)
ADD_SUBDIRECTORY(httq)
ADD_SUBDIRECTORY(LtsAppDescriptor)
ADD_SUBDIRECTORY(LtsAppManager)
@@ -93,7 +93,7 @@ Environment variable overrides:
BUILD_GROUP9=ON|OFF
BUILD_GROUP10=ON|OFF
BUILD_GROUP11=ON|OFF
RUN_CTEST=ON|OFF (automatically OFF for RELEASE_BUILD=ON)
RUN_CTEST=ON|OFF (automatically ON for RELEASE_BUILD=ON - tests in Lts/Common + Z)
TESTS_ONLY=ON|OFF
INTEGRATION_TEST=ON|OFF
USE_PREBUILT_IMAGE=ON|OFF
@@ -124,7 +124,7 @@ Defaults:
BUILD_GROUP9=OFF
BUILD_GROUP10=OFF
BUILD_GROUP11=OFF Release: OFF (Lts/Application - not in scope)
RUN_CTEST=ON
RUN_CTEST=ON Release: ON (tests in Lts/Common + Z components)
TESTS_ONLY=OFF
INTEGRATION_TEST=OFF
USE_PREBUILT_IMAGE=OFF
@@ -518,9 +518,10 @@ GROUP3_TARGETS=(
whgTests
)
# Release build targets: Z components only (no Lts/Services)
# Release build targets: Z components + Lts/Common libraries (no Lts/Services)
# Used when RELEASE_BUILD=ON to build only release scope modules
RELEASE_GROUP3_TARGETS=(
# Z module targets
NGLLogger
nglapplication
nglcompression
@@ -537,6 +538,18 @@ RELEASE_GROUP3_TARGETS=(
qtsinglecoreapplication
wms_json_ds
tcpserver
# Lts/Common library targets (for tests)
LtsCoordTrans
LtsLicence
ngl_codegen
MockCoordTrans
# Test executables for release scope modules
# Note: test_nglpdfwidget excluded - requires Poppler-Qt6 (not in release scope)
# Note: nglcomp_test excluded - compression "Unknown error" in Qt6 (requires investigation)
# Note: grantlee_parser_smoke excluded - requires ktexttemplate_defaulttags plugin (not in release scope)
aes_crypt_test
ngltools_qt_smoke
lts_coord_trans_unit_test
)
GROUP4_TARGETS=(
@@ -1123,9 +1136,12 @@ if [[ "$TESTS_ONLY" == "ON" ]]; then
RUN_CTEST=ON
fi
# Release builds skip CTest (tests not in release scope)
# Release builds: CTest enabled for tests within release scope (Lts/Common + Z)
# Tests in excluded modules (GROUP1, GROUP2, GROUP4, GROUP5, GROUP11) will not be built
if [[ "$RELEASE_BUILD" == "ON" ]]; then
RUN_CTEST=OFF
# CTest runs if tests are available in built modules
# Lts/Common and Z modules may include tests (e.g., ngltools_qt_smoke, coordTransTests)
RUN_CTEST="${RUN_CTEST:-ON}"
fi
log_info "BUILD_RTI=${BUILD_RTI}"