diff options
Diffstat (limited to 'src/exchange/test_taler_exchange_httpd.sh')
-rwxr-xr-x | src/exchange/test_taler_exchange_httpd.sh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/exchange/test_taler_exchange_httpd.sh b/src/exchange/test_taler_exchange_httpd.sh index dabe79cb7..0fe71f3ad 100755 --- a/src/exchange/test_taler_exchange_httpd.sh +++ b/src/exchange/test_taler_exchange_httpd.sh @@ -1,7 +1,7 @@ #!/bin/bash # # This file is part of TALER -# Copyright (C) 2015-2020 Taler Systems SA +# Copyright (C) 2015-2020, 2023 Taler Systems SA # # TALER is free software; you can redistribute it and/or modify it under the # terms of the GNU Affero General Public License as published by the Free Software @@ -23,18 +23,16 @@ # Clear environment from variables that override config. unset XDG_DATA_HOME unset XDG_CONFIG_HOME + +set -eu # echo -n "Launching exchange ..." PREFIX= # Uncomment this line to run with valgrind... -# PREFIX="valgrind --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p" +#PREFIX="valgrind --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p" # Setup database -taler-exchange-dbinit -c test_taler_exchange_httpd.conf &> /dev/null -# Setup keys. -taler-exchange-keyup -c test_taler_exchange_httpd.conf || exit 1 -# Setup wire accounts. -taler-exchange-wire -c test_taler_exchange_httpd.conf > /dev/null || exit 1 +taler-exchange-dbinit -c test_taler_exchange_httpd.conf &> /dev/null || exit 77 # Run Exchange HTTPD (in background) $PREFIX taler-exchange-httpd -c test_taler_exchange_httpd.conf 2> test-exchange.log & @@ -45,7 +43,7 @@ do echo -n "." sleep 0.1 OK=1 - wget http://localhost:8081/ -o /dev/null -O /dev/null >/dev/null && break + wget http://localhost:8081/seed -o /dev/null -O /dev/null >/dev/null && break OK=0 done if [ 1 != $OK ] |