diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-08 18:05:48 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-09 13:59:16 +0100 |
commit | 3c2877dd63698f6ef424538ed91ffa66144bf115 (patch) | |
tree | 60b9a40c708ff3e870dc915e01a974d1cbf78b91 /test | |
parent | 16d3b50a4f8d8f3de21297759467f47b6ff374f9 (diff) | |
download | justbuild-3c2877dd63698f6ef424538ed91ffa66144bf115.tar.gz |
just build: add new option -p
... allowing to print the unique artifact built (if any). This
allows convenient inspection of the build result of targets that
define precisely one artifact.
Diffstat (limited to 'test')
-rw-r--r-- | test/end-to-end/cli/build-p.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/end-to-end/cli/build-p.sh b/test/end-to-end/cli/build-p.sh index 9a829fe7..0da9179a 100644 --- a/test/end-to-end/cli/build-p.sh +++ b/test/end-to-end/cli/build-p.sh @@ -44,6 +44,9 @@ cat out.json # Requesting foo/bar gives a human-readable description of the tree "${JUST}" build -L '["env", "PATH='"${PATH}"'"]' --local-build-root "${BUILDROOT}" -P foo/bar | grep baz +# ... and so does asking for the unique artifact +"${JUST}" build -L '["env", "PATH='"${PATH}"'"]' --local-build-root "${BUILDROOT}" -p | grep baz + # going deepter into the tree we stil can get human-readable tree descriptions "${JUST}" build -L '["env", "PATH='"${PATH}"'"]' --local-build-root "${BUILDROOT}" -P foo/bar/baz/greeting | grep hello.txt |