Merge branch 'darcs' into master
[git-darcs-import.git] / hpc.README
blobbff3a65fb625b6cabc124c5cbadb6a963e342854
1 #!/bin/bash
3 # To use hpc (Haskell Program Coverage) with darcs you need at least
4 # ghc 6.8.3.
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.
13 mkdir -p hpctixdir
14 export HPCTIXDIR=${PWD}/hpctixdir
16 rm -rf ./.hpc
18 make clean &&
19 ./configure --enable-hpc &&
20 make darcs &&
21 #make unit &&
22 rm -f hpctixdir/*.tix || exit 1
24 echo "hpc.README: running tests."
25 make test_network
26 #make test_unit
27 make test_shell_hashed
28 make test_shell
29 make test_shell_format2
30 make test_perl
31 make test_perl_hashed
32 make test_perl_format2
33 make bugs_shell_hashed
34 make bugs_shell
35 make bugs_shell_format2
36 make bugs_perl
37 make bugs_perl_hashed
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 &&
43 mkdir -p darcs-hpc &&
45 echo "hpc.README: generating report." &&
46 hpc markup darcs-hpc-summed.tix --destdir=darcs-hpc