summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-11 11:35:15 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-11 12:12:04 +0200
commit8803fe0f88e74da33528c5e2e9fb484a8bc49edc (patch)
tree98b0e904ac9d996b010a282a1813f4c97dd90316 /test
parent5e3df9f382b93d672a16339252abfce27d3b5da8 (diff)
downloadjustbuild-8803fe0f88e74da33528c5e2e9fb484a8bc49edc.tar.gz
Routinely run tests with compatible remote services
Diffstat (limited to 'test')
-rw-r--r--test/end-to-end/TARGETS67
1 files changed, 49 insertions, 18 deletions
diff --git a/test/end-to-end/TARGETS b/test/end-to-end/TARGETS
index a1b50e46..81ac180e 100644
--- a/test/end-to-end/TARGETS
+++ b/test/end-to-end/TARGETS
@@ -10,28 +10,20 @@
["@", "src", "", "bin/just-deduplicate-repos.py"]
}
}
-, "TESTS":
+, "remote tests (unconfigured)":
{ "type": ["@", "rules", "test", "suite"]
- , "arguments_config": ["TEST_BOOTSTRAP_JUST_MR"]
- , "stage": ["end-to-end"]
+ , "arguments_config": ["TEST_COMPATIBLE_REMOTE", "TEST_BOOTSTRAP_JUST_MR"]
+ , "stage":
+ [ { "type": "if"
+ , "cond": {"type": "var", "name": "TEST_COMPATIBLE_REMOTE"}
+ , "then": "compatible"
+ , "else": "native"
+ }
+ ]
, "deps":
{ "type": "++"
, "$1":
- [ [ ["./", "actions", "TESTS"]
- , ["./", "cli", "TESTS"]
- , ["./", "generated-binary", "TESTS"]
- , ["./", "target-tests", "TESTS"]
- , ["./", "user-errors", "TESTS"]
- , ["./", "built-in-rules", "TESTS"]
- , ["./", "build-fails", "TESTS"]
- , ["./", "remote-execution", "TESTS"]
- , ["./", "target-cache", "TESTS"]
- , ["./", "just-mr", "TESTS"]
- , ["./", "git-import", "TESTS"]
- , ["./", "gc", "TESTS"]
- , ["./", "execution-service", "TESTS"]
- , ["./", "symlinks", "TESTS"]
- ]
+ [ [["./", "remote-execution", "TESTS"], ["./", "just-mr", "TESTS"]]
, { "type": "if"
, "cond": {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"}
, "then": []
@@ -40,4 +32,43 @@
]
}
}
+, "remote tests, compatible":
+ { "type": "configure"
+ , "tainted": ["test"]
+ , "target": "remote tests (unconfigured)"
+ , "config":
+ {"type": "singleton_map", "key": "TEST_COMPATIBLE_REMOTE", "value": true}
+ }
+, "remote tests, native":
+ { "type": "configure"
+ , "tainted": ["test"]
+ , "target": "remote tests (unconfigured)"
+ , "config":
+ {"type": "singleton_map", "key": "TEST_COMPATIBLE_REMOTE", "value": false}
+ }
+, "remote tests":
+ { "type": ["@", "rules", "test", "suite"]
+ , "stage": ["using-remote"]
+ , "deps": ["remote tests, compatible", "remote tests, native"]
+ }
+, "TESTS":
+ { "type": ["@", "rules", "test", "suite"]
+ , "arguments_config": []
+ , "stage": ["end-to-end"]
+ , "deps":
+ [ "remote tests"
+ , ["./", "actions", "TESTS"]
+ , ["./", "build-fails", "TESTS"]
+ , ["./", "built-in-rules", "TESTS"]
+ , ["./", "cli", "TESTS"]
+ , ["./", "execution-service", "TESTS"]
+ , ["./", "gc", "TESTS"]
+ , ["./", "generated-binary", "TESTS"]
+ , ["./", "git-import", "TESTS"]
+ , ["./", "symlinks", "TESTS"]
+ , ["./", "target-cache", "TESTS"]
+ , ["./", "target-tests", "TESTS"]
+ , ["./", "user-errors", "TESTS"]
+ ]
+ }
}