From be8a6c25dea7bfa878edd0dd33606ecdcb716ded Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 21 Jan 2025 09:41:38 +0100 Subject: Test: Compute an absent tree structure of an absent root --- .../tree-structure/absent_tree_structure.sh | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/end-to-end/tree-structure') 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' -- cgit v1.2.3