From 2274627436257c28a82cedec28e18398a517b51d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 29 May 2024 13:01:01 +0200 Subject: 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. --- test/TARGETS | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'test/TARGETS') 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"] -- cgit v1.2.3