3 # To use hpc (Haskell Program Coverage) with darcs you need at least
6 # You can build darcs with hpc support using --enable-hpc
8 # Then create a directory and set it as HPCTIXDIR.
9 # Note that simply building darcs will begin populating
10 # this directory before you ever run any tests.
11 # Therefore, clean the directory after building.
14 export HPCTIXDIR
=${PWD}/hpctixdir
19 .
/configure
--enable-hpc &&
22 rm -f hpctixdir
/*.tix ||
exit 1
24 echo "hpc.README: running tests."
27 make test_shell_hashed
29 make test_shell_format2
32 make test_perl_format2
33 make bugs_shell_hashed
35 make bugs_shell_format2
38 make bugs_perl_format2
40 echo "hpc.README: summing results."
41 hpc
sum --union --exclude=Main
--exclude=Context
--exclude=Autoconf
--exclude=Workaround hpctixdir
/*.tix
> darcs-hpc-summed.tix
&&
45 echo "hpc.README: generating report." &&
46 hpc markup darcs-hpc-summed.tix
--destdir=darcs-hpc