summaryrefslogtreecommitdiff
path: root/test/end-to-end
diff options
context:
space:
mode:
Diffstat (limited to 'test/end-to-end')
-rw-r--r--test/end-to-end/computed-roots/basic.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/end-to-end/computed-roots/basic.sh b/test/end-to-end/computed-roots/basic.sh
index 70ed2948..20fec921 100644
--- a/test/end-to-end/computed-roots/basic.sh
+++ b/test/end-to-end/computed-roots/basic.sh
@@ -111,10 +111,25 @@ echo Building a different computed root, without reference build
echo
"${JUST}" install -L '["env", "PATH='"${PATH}"'"]' \
--local-build-root "${LBRDIR}" -C repo-config.json \
- --log-limit 4 --main 'other derived' -o "${OUT}/other-derived" 2>&1
+ --log-limit 4 -f "${OUT}/log" \
+ --main 'other derived' -o "${OUT}/other-derived" 2>&1
echo
[ "$(cat "${OUT}/other-derived/out" | wc -l)" -eq 78 ]
+echo
+echo Sanity-check of the log
+echo
+grep '[Rr]oot.*base.*evaluted.*' "${OUT}/log" > "${TMPDIR}/log_line"
+cat "${TMPDIR}/log_line"
+sed -i 's/.*log //' "${TMPDIR}/log_line"
+"${JUST}" install-cas --local-build-root "${LBRDIR}" \
+ -o "${OUT}/log.root" $(cat "${TMPDIR}/log_line")
+echo
+cat "${OUT}/log.root"
+echo
+grep 'COUNT.*12' "${OUT}/log.root"
+grep '[Dd]iscovered.*1 action' "${OUT}/log.root"
+grep '0 cache hit' "${OUT}/log.root"
echo OK