#!/bin/sh
# Run combined Perl + C (XS) code coverage for Conf::Libconfig.
# Requires: Devel::Cover, gcov2perl, gcov
set -e

echo "==> Running tests with coverage instrumentation"
cover -test

echo "==> Cleaning up gcov artifacts"
rm -f Libconfig.c.gcov Libconfig.gcda Libconfig.gcno Libconfig.xs.gcov *.h.gcov

echo "==> Done. Open cover_db/coverage.html to view the report."