diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-17 12:43:05 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-17 17:19:55 +0100 |
commit | dd02daeb0ce20780ed96c4ab2738a7f2b8b986e5 (patch) | |
tree | b224cac1e028059cd81e1e05e44e79fc7d7f2362 /test | |
parent | f2813218ea4ae98b6391c8ea4ec40f80586ff31d (diff) | |
download | justbuild-dd02daeb0ce20780ed96c4ab2738a7f2b8b986e5.tar.gz |
just profile: include output artifact hashes
Diffstat (limited to 'test')
-rw-r--r-- | test/end-to-end/profile/basic.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/end-to-end/profile/basic.sh b/test/end-to-end/profile/basic.sh index aeafb9e7..70ba2b5a 100644 --- a/test/end-to-end/profile/basic.sh +++ b/test/end-to-end/profile/basic.sh @@ -22,6 +22,7 @@ readonly LBR="${TEST_TMPDIR}/local-build-root" readonly LOG_DIR="${PWD}/log" readonly ETC_DIR="${PWD}/etc" readonly WRK_DIR="${PWD}/work" +readonly OUT="${TEST_TMPDIR}/out" # Set up an rc file, requesting invocation logging mkdir -p "${ETC_DIR}" @@ -69,6 +70,11 @@ PROFILE="${INVOCATION_DIR}/profile.json" cat "${PROFILE}" [ $(jq '.actions | .[] | .cached' "${PROFILE}") = "false" ] +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" +echo + # Build again, this time the action should be cached; # again abuse the project id to distingush the runs cat > rc.json <<'EOF' |