Files
libadalang/utils/coverage.sh
Pierre-Marie de Rodat 0497979cce Add a helper script to compute code coverage for LAL
TN: SC19-030
2020-02-13 12:13:42 +01:00

17 lines
524 B
Bash
Executable File

#! /bin/sh
# Build Libadalang for code coverage (requires GNATcoverage) and run the
# testsuite to compute the coverage report. Note that we keep internal
# testcases out of the scope of code coverage, as for this we focus on feature
# tests.
#
# This special build happens in the "build-cov" directory and the coverage
# report is produced in the "cov" directory.
set -e
set -x
ada/manage.py --build-dir=build-cov make -P --coverage
ada/manage.py --build-dir=build-cov test -- \
--coverage cov --skip-internal-tests