summaryrefslogtreecommitdiff
path: root/test/other_tools/just_mr/rc_merge.test.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-02-19 15:46:16 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-03-10 16:28:59 +0100
commita0db78bd86a21fa072e28fa6dfd0fc53fd72a652 (patch)
tree4b4be2f8bdb12403b2979f10b20f4d748eb9832e /test/other_tools/just_mr/rc_merge.test.cpp
parentd53358c350898091d9cf2ba76ccdfa9e590275ee (diff)
downloadjustbuild-a0db78bd86a21fa072e28fa6dfd0fc53fd72a652.tar.gz
rc merging: invocation log is merged locally
Diffstat (limited to 'test/other_tools/just_mr/rc_merge.test.cpp')
-rw-r--r--test/other_tools/just_mr/rc_merge.test.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/other_tools/just_mr/rc_merge.test.cpp b/test/other_tools/just_mr/rc_merge.test.cpp
index 0f1c62f9..9be58ca0 100644
--- a/test/other_tools/just_mr/rc_merge.test.cpp
+++ b/test/other_tools/just_mr/rc_merge.test.cpp
@@ -54,10 +54,15 @@ TEST_CASE("accumulating") {
TEST_CASE("local-merge") {
auto conf = Configuration{Expression::FromJson(R"(
- {"just args": {"build": ["-J", "8"], "install": ["-J", "8", "--remember"]}}
+ {"just args": {"build": ["-J", "8"], "install": ["-J", "8", "--remember"]}
+ ,"invocation log": {"directory": {"root": "system"
+ , "path": "/var/log/just-mr"}}
+ }
)"_json)};
auto delta = Configuration{Expression::FromJson(R"(
- {"just args": {"build": ["-J", "128"], "install-cas": ["--remember"]}}
+ {"just args": {"build": ["-J", "128"], "install-cas": ["--remember"]}
+ ,"invocation log": {"project id": "unicorn"}
+ }
)"_json)};
auto merged = MergeMRRC(conf, delta);
@@ -67,4 +72,9 @@ TEST_CASE("local-merge") {
, "install": ["-J", "8", "--remember"]
}
)"_json));
+ CHECK(merged["invocation log"] == Expression::FromJson(R"(
+ { "directory":{"root": "system" , "path": "/var/log/just-mr"}
+ , "project id": "unicorn"
+ }
+ )"_json));
}