summaryrefslogtreecommitdiff
path: root/test/TARGETS
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-05-29 13:01:01 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-03 16:46:49 +0200
commit2274627436257c28a82cedec28e18398a517b51d (patch)
tree63aa009134abe3bd14818b8650451474ed37c27c /test/TARGETS
parent3aa003de5ae23ce75ba2dcb12ace0f72f715adf5 (diff)
downloadjustbuild-2274627436257c28a82cedec28e18398a517b51d.tar.gz
test: Use own installed just and just-mr targets...
...which do not stage also the debug source and header files (while in debug mode), as this is unnecessary bloat in the tests. As the tool-under-test and mr-tool-under-test targets should be used instead of the regular install targets also in the various extra rules in end-to-end and utils, move their definition in the outmost test TARGETS file.
Diffstat (limited to 'test/TARGETS')
-rw-r--r--test/TARGETS35
1 files changed, 34 insertions, 1 deletions
diff --git a/test/TARGETS b/test/TARGETS
index fb3bf82b..5c529e4c 100644
--- a/test/TARGETS
+++ b/test/TARGETS
@@ -1,4 +1,37 @@
-{ "catch-main":
+{ "tested just":
+ { "type": ["@", "rules", "CC", "install-with-deps"]
+ , "skip-debug-stage": ["yes"]
+ , "targets": [["@", "src", "", "just"]]
+ }
+, "tool-under-test":
+ { "type": "install"
+ , "dirs": [["tested just", "."]]
+ , "files": {"bin/tool-under-test": ["@", "src", "", "just"]}
+ }
+, "tested just-mr":
+ { "type": ["@", "rules", "CC", "install-with-deps"]
+ , "skip-debug-stage": ["yes"]
+ , "targets": [["@", "src", "", "just-mr"]]
+ }
+, "mr-tool-under-test":
+ { "type": "install"
+ , "arguments_config": ["TEST_BOOTSTRAP_JUST_MR"]
+ , "dirs":
+ { "type": "if"
+ , "cond": {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"}
+ , "then": []
+ , "else": [["tested just-mr", "."]]
+ }
+ , "files":
+ { "bin/mr-tool-under-test":
+ { "type": "if"
+ , "cond": {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"}
+ , "then": ["@", "src", "", "bin/just-mr.py"]
+ , "else": ["@", "src", "", "just-mr"]
+ }
+ }
+ }
+, "catch-main":
{ "type": ["@", "rules", "CC", "library"]
, "name": ["catch-main"]
, "srcs": ["main.cpp"]