summaryrefslogtreecommitdiff
path: root/taler-build
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-17 13:44:45 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-17 13:44:45 +0200
commitb8bdcc78122ed39846fda788119d879ff6b9b0ae (patch)
tree6040b08ff05450296420f5f611711bcbe9558d07 /taler-build
parent1aed6343b88bd476af4344e5cbdf368b5bd3ba20 (diff)
downloaddeployment-b8bdcc78122ed39846fda788119d879ff6b9b0ae.tar.gz
deployment-b8bdcc78122ed39846fda788119d879ff6b9b0ae.tar.bz2
deployment-b8bdcc78122ed39846fda788119d879ff6b9b0ae.zip
lcov for merchant
Diffstat (limited to 'taler-build')
-rwxr-xr-xtaler-build/coverage.sh32
1 files changed, 20 insertions, 12 deletions
diff --git a/taler-build/coverage.sh b/taler-build/coverage.sh
index 2ed3df8..d1f8c6a 100755
--- a/taler-build/coverage.sh
+++ b/taler-build/coverage.sh
@@ -2,15 +2,23 @@
# Run from 'exchange/' top-level directory to generate code coverage data.
export CFLAGS="-g -O0"
export PATH=$HOME/local/bin:$PATH
-cd $HOME/exchange/
-git pull
-./bootstrap
-./configure --prefix=$HOME/local --with-gnunet=$HOME/local --with-microhttpd=$HOME/local --enable-coverage
-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_* **/perf_* -o doc/coverage/rcoverage.info
-genhtml -o doc/coverage doc/coverage/rcoverage.info
+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