summaryrefslogtreecommitdiff
path: root/tests/release/test_release_state_dependency.cmake
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /tests/release/test_release_state_dependency.cmake
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
Diffstat (limited to 'tests/release/test_release_state_dependency.cmake')
-rw-r--r--tests/release/test_release_state_dependency.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/release/test_release_state_dependency.cmake b/tests/release/test_release_state_dependency.cmake
new file mode 100644
index 00000000..73f60c38
--- /dev/null
+++ b/tests/release/test_release_state_dependency.cmake
@@ -0,0 +1,12 @@
+cmake_minimum_required (VERSION 3.12)
+
+if (NOT SOURCE_DIR)
+ message (FATAL_ERROR "SOURCE_DIR is required")
+endif ()
+
+# CONFIGURE_DEPENDS is the top-level CMAKE_CONFIGURE_DEPENDS, "|"-separated.
+string (REPLACE "|" ";" depends "${CONFIGURE_DEPENDS}")
+list (FIND depends "${SOURCE_DIR}/release-state.txt" index)
+if (index EQUAL -1)
+ message (FATAL_ERROR "release-state.txt is not a configure dependency, so a commit that changes it leaves an incremental build's channel, version and expiry stale")
+endif ()