diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-09-15 15:40:36 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-09-15 16:39:35 +0200 |
commit | c71bfe939b8eee864f45004e9daad19d01b3f38e (patch) | |
tree | b39235cbecc5e122995313f8185210ef5d17a4de /test | |
parent | a3824693e15fd7076f27ee17bf7fda2313d9d7ae (diff) | |
download | justbuild-c71bfe939b8eee864f45004e9daad19d01b3f38e.tar.gz |
just-mr: ensure that after --fetch-absent a local build is possible
... by also keeping the map of commit to tree locally.
Diffstat (limited to 'test')
-rw-r--r-- | test/end-to-end/just-mr/fetch-absent.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/end-to-end/just-mr/fetch-absent.sh b/test/end-to-end/just-mr/fetch-absent.sh index 39b89c4a..2a753bc5 100644 --- a/test/end-to-end/just-mr/fetch-absent.sh +++ b/test/end-to-end/just-mr/fetch-absent.sh @@ -21,6 +21,8 @@ env readonly JUST="${PWD}/bin/tool-under-test" readonly JUST_MR="${PWD}/bin/mr-tool-under-test" readonly LBR="${TEST_TMPDIR}/local-build-root" +readonly OUT="${TEST_TMPDIR}/out" +readonly OUT2="${TEST_TMPDIR}/out2" mkdir work cd work @@ -62,7 +64,15 @@ CONF=$("${JUST_MR}" --norc --local-build-root "${LBR}" \ --fetch-absent setup) cat $CONF echo -"${JUST}" install --local-build-root "${LBR}" -C "${CONF}" -o . 2>&1 -grep 42 out.txt +"${JUST}" install --local-build-root "${LBR}" -C "${CONF}" \ + -r "${REMOTE_EXECUTION_ADDRESS}" -o "${OUT}" 2>&1 +grep 42 "${OUT}/out.txt" + +# As the last call of just-mr had --fetch-absent, all relevent information +# about the root should now be available locally, so we can build without +# a serve or remote endpoint with still (logically) fetching absent roots. +"${JUST_MR}" --norc --just "${JUST}" --local-build-root "${LBR}" \ + --fetch-absent install -o "${OUT2}" 2>&1 +grep 42 "${OUT2}/out.txt" echo DONE |