commit 02424b14109ff52eb970351c810910809ba4d914
parent cda0d427faa084d6ebb0f82584769584aad01e26
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Fri, 13 Sep 2019 11:13:44 +0200
Lcov bootstrap
Diffstat:
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/bootstrap-taler b/bootstrap-taler
@@ -41,6 +41,9 @@ case $ENVNAME in
demo)
CURRENCY=KUDOS
;;
+ lcov)
+ CURRENCY=UNUSED
+
*)
echo Invalid envname, please use 'test' or 'int' or 'demo'.
exit 1
@@ -116,11 +119,6 @@ ln -sf ../deployment/taler-build/Makefile stamps/
ln -sf ../deployment/taler-build/invalidate.sh stamps/
if test "test" = $ENVNAME; then
- if ! test "taler-test" = $(whoami); then
- echo Please run as the 'taler-test' user.
- exit 1
- fi
-
if ! test -d $HOME/test_worker; then
echo Creating test_worker..
buildbot-worker create-worker $HOME/test_worker localhost:9989 test-worker test-pass
@@ -134,9 +132,13 @@ if test "test" = $ENVNAME; then
else
echo auditor_worker already in place.
fi
+
+ if ! test -f $HOME/activate; then
+ echo FATAL: activate file was not created.
+ exit 1
+ fi
fi
-if ! test -f $HOME/activate; then
- echo FATAL: activate file was not created.
- exit 1
+if test "lcov" = $ENVNAME -a [[ ! -d worker ]]; then
+ buildbot-worker create-worker --umask=0o22 ~/worker localhost:9989 lcov-worker lcov-pass
fi