CHECK_COVERAGE = $(if $(call find_coverage_xml,$(1)), \
echo "" ; \
+ echo "Debug: WILDCARD=$(wildcard $(1)/*/*/cobertura.xml)" ; \
+ echo "Debug: MERGED_FILTER=$(filter %/merged/kcov-merged/cobertura.xml, $(wildcard $(1)/*/*/cobertura.xml))" ; \
echo "Report for: file://$(abspath $(dir $(call find_coverage_xml,$(1))))/index.html" ; \
XML_FILE="$(call find_coverage_xml,$(1))" PATT="$(2)" FAIL_UNDER="$(3)" python3 tests/coverage_report.py, \
echo "" ; \
ln -s "$REPO_ROOT/utils" "$SANDBOX/utils"
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"
+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/"
# Function to check if version strictly less than
version_lt() {
- [ "$1" = "$2" ] && return 1 || :
+ if [ "$1" = "$2" ]; then
+ return 1
+ fi
[ "$1" = "$(echo -e "$1\n$2" | sort -V | head -n1)" ]
}