diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-17 15:34:05 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-17 17:19:55 +0100 |
commit | c3fdcb7d3b072f6fd62a7b64a18fb55f2e7bcdde (patch) | |
tree | 842d4793894eae9dc130d645dc62860782c553be /test/end-to-end/profile | |
parent | b1ccb71a4bdbacd44843abfa9497576016962ed8 (diff) | |
download | justbuild-c3fdcb7d3b072f6fd62a7b64a18fb55f2e7bcdde.tar.gz |
just profile: include action stdout/stderr if any
Diffstat (limited to 'test/end-to-end/profile')
-rw-r--r-- | test/end-to-end/profile/basic.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/end-to-end/profile/basic.sh b/test/end-to-end/profile/basic.sh index 70ba2b5a..61e0ddf5 100644 --- a/test/end-to-end/profile/basic.sh +++ b/test/end-to-end/profile/basic.sh @@ -53,7 +53,11 @@ cat > TARGETS <<'EOF' { "type": "generic" , "deps": ["data.txt"] , "outs": ["upper.txt"] - , "cmds": ["cat data.txt | tr a-z A-Z > upper.txt"] + , "cmds": + [ "cat data.txt | tr a-z A-Z > upper.txt" + , "echo StdOuT" + , "echo StdErR 1>&2" + ] } } EOF @@ -73,6 +77,13 @@ cat "${PROFILE}" OUT_ARTIFACT=$(jq -r '.actions | .[] | .artifacts."upper.txt"' "${PROFILE}") "${JUST_MR}" --rc "${RC}" install-cas -o "${OUT}/upper.txt" "${OUT_ARTIFACT}" 2>&1 grep BLABLABLA "${OUT}/upper.txt" + +STDOUT=$(jq -r '.actions | .[] | .stdout' "${PROFILE}") +STDERR=$(jq -r '.actions | .[] | .stderr' "${PROFILE}") +"${JUST_MR}" --rc "${RC}" install-cas -o "${OUT}/stdout" "${STDOUT}" 2>&1 +"${JUST_MR}" --rc "${RC}" install-cas -o "${OUT}/stderr" "${STDERR}" 2>&1 +grep StdOuT "${OUT}/stdout" +grep StdErR "${OUT}/stderr" echo # Build again, this time the action should be cached; |