diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-05-25 11:51:01 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-05-30 15:01:41 +0200 |
commit | ae2e515ab84ea3ab08764685f84441c0741f8039 (patch) | |
tree | 5b6df3b0d215ba3b18ad126f43c7cde21eecb8af /test/end-to-end/TARGETS | |
parent | dfb45d4e996da27c28b14e16b5e6f1f7eb973334 (diff) | |
download | justbuild-ae2e515ab84ea3ab08764685f84441c0741f8039.tar.gz |
tests: Support run deps for tools-under-test
Diffstat (limited to 'test/end-to-end/TARGETS')
-rw-r--r-- | test/end-to-end/TARGETS | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/test/end-to-end/TARGETS b/test/end-to-end/TARGETS index c0c59681..0e81d749 100644 --- a/test/end-to-end/TARGETS +++ b/test/end-to-end/TARGETS @@ -1,17 +1,39 @@ { "tool-under-test": - { "type": "install" - , "files": {"bin/tool-under-test": ["@", "src", "", "just"]} + { "type": "generic" + , "cmds": ["mkdir -p bin lib", "mv bin/just bin/tool-under-test"] + , "outs": ["bin/tool-under-test"] + , "out_dirs": ["lib"] + , "deps": [["@", "src", "", "installed just"]] } , "mr-tool-under-test": - { "type": "install" + { "type": "generic" , "arguments_config": ["TEST_BOOTSTRAP_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"] + , "cmds": + [ "mkdir -p bin lib" + , { "type": "join_cmd" + , "$1": + [ "mv" + , { "type": "if" + , "cond": {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"} + , "then": "bin/just-mr.py" + , "else": "bin/just-mr" + } + , "bin/mr-tool-under-test" + ] } + ] + , "outs": ["bin/mr-tool-under-test"] + , "out_dirs": + { "type": "if" + , "cond": {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"} + , "then": [] + , "else": ["lib"] + } + , "deps": + { "type": "if" + , "cond": {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"} + , "then": [["@", "src", "", "bin/just-mr.py"]] + , "else": [["@", "src", "", "installed just-mr"]] } } , "git-import-under-test": |