summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/FileAPI/check_index.py
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-13 10:32:14 -0400
committerBrad King <brad.king@kitware.com>2018-12-12 06:40:10 -0500
commit276fdf299306f83b12bd1cc886f5e37d61f25c59 (patch)
treee2640920cf104e6e1dc1f83d4e57d9602c39a8d9 /Tests/RunCMake/FileAPI/check_index.py
parent8fce59848b52f71ae310fcd64fcf943fb2c42bf6 (diff)
downloadcmake-276fdf299306f83b12bd1cc886f5e37d61f25c59.tar.gz
fileapi: Add protocol v1 support for stateful per-client queries
Add support for client-owned *stateful* query files. These allow clients to request a list of versions of each object kind and get only the first-listed version that CMake recognizes. Since clients own their stateful query files they can mutate them over time. As a client installation is updated it may update the queries that it writes to build trees to get newer object versions without paying the cost of continuing to generate older versions. Issue: #18398
Diffstat (limited to 'Tests/RunCMake/FileAPI/check_index.py')
-rw-r--r--Tests/RunCMake/FileAPI/check_index.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/check_index.py b/Tests/RunCMake/FileAPI/check_index.py
index 6cc16a537f..4d90d593a4 100644
--- a/Tests/RunCMake/FileAPI/check_index.py
+++ b/Tests/RunCMake/FileAPI/check_index.py
@@ -81,6 +81,12 @@ def check_error(value, error):
assert is_string(value["error"])
assert value["error"] == error
+def check_error_re(value, error):
+ assert is_dict(value)
+ assert sorted(value.keys()) == ["error"]
+ assert is_string(value["error"])
+ assert re.search(error, value["error"])
+
reply_index = sys.argv[1]
reply_dir = os.path.dirname(reply_index)