blob: 33bca81fd5ecbacc0ad6b97521f2fdd057e3c26c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# Run from 'exchange/' top-level directory to generate code coverage data.
export CFLAGS="-g -O0"
export PATH=$HOME/local/bin:$PATH
CONFIGURE="./configure --prefix=$HOME/local --with-gnunet=$HOME/local --with-microhttpd=$HOME/local --enable-coverage"
for comp in exchange merchant; do
cd $HOME/$comp
git pull
./bootstrap
if test $comp = 'merchant'; then
$CONFIGURE "--with-exchange=$HOME/local"
else
$CONFIGURE
fi
make clean install
TOP=$(pwd)
mkdir -p doc/coverage/
lcov -d $TOP -z
make check || exit 1
lcov -d $TOP -c --no-external -o doc/coverage/coverage.info
lcov -r doc/coverage/coverage.info **/test_* -o doc/coverage/rcoverage.info
genhtml -o doc/coverage doc/coverage/rcoverage.info
done
|