summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-08 18:05:48 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-09 13:59:16 +0100
commit3c2877dd63698f6ef424538ed91ffa66144bf115 (patch)
tree60b9a40c708ff3e870dc915e01a974d1cbf78b91 /test
parent16d3b50a4f8d8f3de21297759467f47b6ff374f9 (diff)
downloadjustbuild-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.sh3
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