diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-19 22:23:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-19 22:24:04 +0100 |
commit | e46467510daf1dc55b9d01fcca42eb9912492133 (patch) | |
tree | 34b5a30b977ae003afe5b8f55d2ab58ee9d40ffa /src/exchange/test_taler_exchange_httpd_afl.sh | |
parent | 12468e1fd89748aaa4b1d31052e97e2436b763c4 (diff) | |
download | exchange-e46467510daf1dc55b9d01fcca42eb9912492133.tar.gz exchange-e46467510daf1dc55b9d01fcca42eb9912492133.tar.bz2 exchange-e46467510daf1dc55b9d01fcca42eb9912492133.zip |
leak fixes
Diffstat (limited to 'src/exchange/test_taler_exchange_httpd_afl.sh')
-rw-r--r-- | src/exchange/test_taler_exchange_httpd_afl.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange/test_taler_exchange_httpd_afl.sh b/src/exchange/test_taler_exchange_httpd_afl.sh index 48beda722..6d741acce 100644 --- a/src/exchange/test_taler_exchange_httpd_afl.sh +++ b/src/exchange/test_taler_exchange_httpd_afl.sh @@ -1,7 +1,7 @@ #!/bin/bash # # This file is part of TALER -# Copyright (C) 2015 GNUnet e.V. +# Copyright (C) 2015, 2020 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 @@ -21,21 +21,22 @@ # # We read the JSON snippets from afl-tests/ # +set -eu + PREFIX= # Uncomment this line to run with valgrind... -PREFIX="valgrind --leak-check=yes --log-file=valgrind.%p" +# PREFIX="valgrind --leak-check=yes --log-file=valgrind.%p" # Setup keys. -taler-exchange-keyup -d test-exchange-home -m test-exchange-home/master.priv +taler-exchange-keyup -c test_taler_exchange_httpd.conf # Setup database (just to be sure) -taler-exchange-dbinit -d test-exchange-home &> /dev/null || true +taler-exchange-dbinit -c test_taler_exchange_httpd.conf &> /dev/null # Only log hard errors, we expect lots of warnings... export GNUNET_FORCE_LOG="taler-exchange-httpd;;;;ERROR/libmicrohttpd;;;;ERROR/util;;;;ERROR/" # Run test... for n in afl-tests/* do echo -n "Test $n " - $PREFIX taler-exchange-httpd -d test-exchange-home/ -t 1 -f $n -C > /dev/null || { echo "FAIL!"; } -# $PREFIX taler-exchange-httpd -d test-exchange-home/ -t 1 -f $n -C > /dev/null || { echo "FAIL!"; exit 1; } + $PREFIX taler-exchange-httpd -c test_taler_exchange_httpd.conf -t 1 -f $n -C > /dev/null || { echo "FAIL!"; } echo "OK" done exit 0 |