Natools

coverage.sh at [b14a72b9cb]
Login

File coverage.sh artifact e3519e56b4 part of check-in b14a72b9cb


#!/bin/sh

: ${GNATPATH:=/usr/local/gcc-aux/bin}

${GNATPATH}/gnatmake -p -Ptests -XMODE=Coverage || exit $?
lcov --directory coverage/obj --zerocounters
coverage/bin/test_all >coverage.log
tail -n 4 coverage.log
lcov --gcov-tool ${GNATPATH}/gcov --directory coverage/obj --output coverage/test-info.dat --capture || exit $?
genhtml --output-dir coverage coverage/test-info.dat