build-aux/coverage.sh
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | mkdir -p "${BUILDDIR}/coverage" |
| 4 | ninja -C "${BUILDDIR}" |
| 5 | lcov --config-file "${SRCDIR}/build-aux/.lcovrc" --directory "${BUILDDIR}" --capture --initial --output-file "${BUILDDIR}/coverage/dex.lcov" |
| 6 | ninja -C "${BUILDDIR}" test |
| 7 | lcov --config-file "${SRCDIR}/build-aux/.lcovrc" --directory "${BUILDDIR}" --capture --output-file "${BUILDDIR}/coverage/dex.lcov" |
| 8 | genhtml -o "${BUILDDIR}/coverage" "${BUILDDIR}/coverage/dex.lcov" |