summaryrefslogtreecommitdiff
path: root/test/end-to-end/TARGETS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-05-25 11:51:01 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:01:41 +0200
commitae2e515ab84ea3ab08764685f84441c0741f8039 (patch)
tree5b6df3b0d215ba3b18ad126f43c7cde21eecb8af /test/end-to-end/TARGETS
parentdfb45d4e996da27c28b14e16b5e6f1f7eb973334 (diff)
downloadjustbuild-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/TARGETS40
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":