commit 2cae4e38c4e6a3b0eff6787da5ae5e0e307563cc
parent 0e03cc076050cf4bbe25f5e516c6989fb89097ee
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Mon, 19 Dec 2016 14:56:18 +0100
- Starting the DB via ARM before compilation.
- Passing --coverage flag to compiling script when needed.
Diffstat:
3 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/bin/taler-deployment-build b/bin/taler-deployment-build
@@ -8,6 +8,23 @@ cd $HOME/deployment
git fetch
git reset --hard FETCH_HEAD
+if ! test $HOME/activate; then
+ echo "$HOME/activate not found. Although the compilation
+ is not affected, testcases will fail because the database
+ cannot be launched"
+ exit
+fi
+
+source $HOME/activate
+
+# Start database
+taler-deployment-arm -s
+taler-deployment-arm -i taler-postgres-standalone
+
cd $HOME/deployment/taler-build
./invalidate.sh
make
+
+# Stop database
+taler-deployment-arm -k taler-postgres-standalone
+taler-deployment-arm -e
diff --git a/taler-build/Makefile b/taler-build/Makefile
@@ -38,4 +38,5 @@ merchant-frontends-stamp: deployment-stamp
lcov: gnunet-stamp deployment-stamp
export PATH=${HOME}/local/bin:${PATH}
- ./coverage.sh
+ ./update_merchant.sh --coverage
+ ./update_exchange.sh --coverage
diff --git a/taler-build/update_merchant.sh b/taler-build/update_merchant.sh
@@ -37,6 +37,8 @@ if test ${1:-notgiven} = "--coverage"; then
TOP=$(pwd)
mkdir -p doc/coverage/
lcov -d $TOP -z
+ # the 'exit 1' seems mandatory for the next commands to work. Where is that
+ # documented?
TALER_MERCHANTDB_POSTGRES_CONFIG=$TALER_CHECKDB TALER_EXCHANGEDB_POSTGRES_CONFIG=$TALER_CHECKDB 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