fix test coverage

- use single tests as workaround for Issue 16397
- fix single tests (broken sed command)
This commit is contained in:
Martin Nowak 2017-07-08 20:09:58 +02:00
parent ecef6f0e3b
commit 1f7e599805

View file

@ -110,12 +110,13 @@ coverage()
# remove all existing coverage files (just in case) # remove all existing coverage files (just in case)
rm -rf $(find -name '*.lst') rm -rf $(find -name '*.lst')
# currently using the test_runner yields wrong code coverage results # Coverage information of the test runner can be missing for some template instatiations.
# see https://github.com/dlang/phobos/pull/4719 for details # https://issues.dlang.org/show_bug.cgi?id=16397
ENABLE_COVERAGE="1" make -f posix.mak MODEL=$MODEL unittest-debug # ENABLE_COVERAGE="1" make -f posix.mak MODEL=$MODEL unittest-debug
# instead we run all tests individually # So instead we run all tests individually (hoping that that doesn't break any tests).
make -f posix.mak $(find std etc -name "*.d" | sed "s/[.]d$/.test") # -cov is enabled by the %.test target itself
make -f posix.mak $(find std etc -name "*.d" | sed "s/[.]d$/.test/")
# Remove coverage information from lines with non-deterministic coverage. # Remove coverage information from lines with non-deterministic coverage.
# These lines are annotated with a comment containing "nocoverage". # These lines are annotated with a comment containing "nocoverage".