diff --git a/testing/Makefile b/testing/Makefile index 4b4e87d82f..9a9a02fe47 100644 --- a/testing/Makefile +++ b/testing/Makefile @@ -6,7 +6,7 @@ all: @cp btest/coverage.log `mktemp brocov.tmp.XXX` @for f in external/*/coverage.log; do cp $$f `mktemp brocov.tmp.XXX`; done @echo "Complete test suite code coverage:" - @./scripts/coverage-calc "brocov.tmp.*" coverage.log `pwd` + @./scripts/coverage-calc "brocov.tmp.*" coverage.log `pwd`/../scripts @rm -f brocov.tmp.* brief: diff --git a/testing/btest/Makefile b/testing/btest/Makefile index 2ebd66edd2..e764dd2b15 100644 --- a/testing/btest/Makefile +++ b/testing/btest/Makefile @@ -7,7 +7,7 @@ all: @rm -f $(DIAG) @rm -f .tmp/script-coverage* @$(BTEST) -f $(DIAG) - @../scripts/coverage-calc ".tmp/script-coverage*" coverage.log `pwd` + @../scripts/coverage-calc ".tmp/script-coverage*" coverage.log `pwd`/../../scripts brief: # Brief output showing only failed tests. diff --git a/testing/scripts/coverage-calc b/testing/scripts/coverage-calc index a146667595..53e818fc32 100755 --- a/testing/scripts/coverage-calc +++ b/testing/scripts/coverage-calc @@ -3,10 +3,12 @@ # This script aggregates many files containing Bro script coverage information # into a single file and reports the overall coverage information. Usage: # -# coverage-calc +# coverage-calc