diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-21 09:41:38 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-21 11:06:11 +0100 |
commit | be8a6c25dea7bfa878edd0dd33606ecdcb716ded (patch) | |
tree | c76e3e92d509805a86c0266c15b3098a084c3f8e /test/end-to-end | |
parent | c73a7a66d0d193e621ec9997cf255d5b093d7f60 (diff) | |
download | justbuild-be8a6c25dea7bfa878edd0dd33606ecdcb716ded.tar.gz |
Test: Compute an absent tree structure of an absent root
Diffstat (limited to 'test/end-to-end')
-rw-r--r-- | test/end-to-end/tree-structure/absent_tree_structure.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/end-to-end/tree-structure/absent_tree_structure.sh b/test/end-to-end/tree-structure/absent_tree_structure.sh index a03e214c..c7ab70e9 100644 --- a/test/end-to-end/tree-structure/absent_tree_structure.sh +++ b/test/end-to-end/tree-structure/absent_tree_structure.sh @@ -107,6 +107,30 @@ echo echo mrrc.json: cat "${RCFILE}" +# Test absent tree structure root of an absent root: +# Set foo and structure foo absent: +cat > absent.json <<'EOF' +["foo", "structure_foo"] +EOF + +echo +echo "Absent tree structure root of an absent root. Expected to be computed on serve:" +("${JUST_MR}" --rc "${RCFILE}" \ + --local-build-root "${LBRDIR}/absent_absent" -C repo-config.json \ + -r "${REMOTE_EXECUTION_ADDRESS}" -R "${SERVE}" ${COMPAT} \ + --main result_foo -L '["env", "PATH='"${PATH}"'"]' --log-limit 4 \ + --just "${JUST}" install -o "${OUT}/absent_absent" 2>&1) \ + > "${OUT}/log_absent_absent" + +echo +cat "${OUT}/log_absent_absent" + +grep 'Root \["tree structure", "foo", {"absent": true}\] was computed on serve' \ + "${OUT}/log_absent_absent" + +echo +cat "${OUT}/absent_absent/result.txt" + # Test local tree structure of absent roots: # Set both source repositories foo and bar absent: cat > absent.json <<'EOF' |