File: run-coverage

package info (click to toggle)
haskell-system-fileio 0.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 156 kB
  • ctags: 15
  • sloc: haskell: 1,285; ansic: 147; sh: 51; makefile: 2
file content (28 lines) | stat: -rwxr-xr-x 730 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
if [ ! -f 'system-fileio.cabal' ]; then
	echo -n "Can't find system-fileio.cabal; please run this script as"
	echo -n " ./scripts/run-coverage from within the system-fileio source"
	echo " directory"
	exit 1
fi

. scripts/common.bash

require_cabal_dev

pushd tests
$CABAL_DEV -s ../cabal-dev install --flags="coverage" || exit 1
popd

rm -f system-fileio_tests.tix
cabal-dev/bin/system-fileio_tests $@

EXCLUDES="\
--exclude=Main \
--exclude=FilesystemTests.Posix \
--exclude=FilesystemTests.Util \
--exclude=FilesystemTests.Windows
"

hpc markup --srcdir=src --srcdir=tests/ system-fileio_tests.tix --destdir=hpc-markup $EXCLUDES > /dev/null
hpc report --srcdir=src --srcdir=tests/ system-fileio_tests.tix $EXCLUDES