XML_FILE="$(call find_coverage_xml,$(1))" PATT="$(2)" FAIL_UNDER="$(3)" python3 tests/coverage_report.py, \
echo "" ; \
echo "Error: No coverage report found for $(2) in $(1)" ; \
- exit 1)
+ false)
.PHONY: test/cov
test/cov: ##H Show coverage gaps
- @err=0; \
$(call CHECK_COVERAGE,$(COV_SYSTEM),git-remote-gcrypt,56) || err=1; \
$(call CHECK_COVERAGE,$(COV_INSTALL),install.sh,84) || err=1; \
exit $$err
ln -s "$REPO_ROOT/install.sh" "$SANDBOX/install.sh"
ln -s "$REPO_ROOT/git-remote-gcrypt" "$SANDBOX/git-remote-gcrypt"
ln -s "$REPO_ROOT/utils" "$SANDBOX/utils"
-ln -s "$REPO_ROOT/completions" "$SANDBOX/completions"
+cp -r "$REPO_ROOT/completions" "$SANDBOX/completions"
+# Mock gen_docs.sh to avoid kcov tracing issues with child process
+echo '#!/bin/sh' > "$SANDBOX/completions/gen_docs.sh"
+echo 'exit 0' >> "$SANDBOX/completions/gen_docs.sh"
+chmod +x "$SANDBOX/completions/gen_docs.sh"
# Copy README as it might be edited/checked
cp "$REPO_ROOT/README.rst" "$SANDBOX/"
cp "$REPO_ROOT/completions/templates/README.rst.in" "$SANDBOX/"