add exchange key during test

This commit is contained in:
Christian Grothoff 2020-01-20 02:43:48 +01:00
parent f4b17c3ada
commit aaa57167db
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 12 additions and 10 deletions

View File

@ -1492,6 +1492,7 @@ check_with_database()
# Setup database-specific globals # Setup database-specific globals
MASTER_PUB=`cat ${BASEDB}.mpub` MASTER_PUB=`cat ${BASEDB}.mpub`
EXCHANGE_BASE_URL=`taler-config -c generate-auditor-basedb.conf -s exchange -o BASE_URL`
# Where to store wire fee details for aggregator # Where to store wire fee details for aggregator
echo "Storing wire fees" echo "Storing wire fees"
@ -1509,6 +1510,7 @@ check_with_database()
# Load database # Load database
full_reload full_reload
taler-auditor-exchange -m $MASTER_PUB -u $EXCHANGE_BASE_URL
# Run test suite # Run test suite
fail=0 fail=0

View File

@ -203,13 +203,14 @@ check_exists_cb (void *cls,
return; return;
} }
GNUNET_break (TALER_CNC_KAPPA - 1 == num_tprivs); GNUNET_break (TALER_CNC_KAPPA - 1 == num_tprivs);
GNUNET_break_op (0 == memcmp (tp, GNUNET_break_op (0 ==
&rctx->gamma_tp, GNUNET_memcmp (tp,
sizeof (struct TALER_TransferPublicKeyP))); &rctx->gamma_tp));
GNUNET_break_op (0 == memcmp (tprivs, GNUNET_break_op (0 ==
&rctx->transfer_privs, memcmp (tprivs,
sizeof (struct TALER_TransferPrivateKeyP) &rctx->transfer_privs,
* num_tprivs)); sizeof (struct TALER_TransferPrivateKeyP)
* num_tprivs));
/* We usually sign early (optimistic!), but in case we change that *and* /* We usually sign early (optimistic!), but in case we change that *and*
we do find the operation in the database, we could use this: */ we do find the operation in the database, we could use this: */
if (NULL == rctx->ev_sigs) if (NULL == rctx->ev_sigs)

View File

@ -34,7 +34,7 @@ set -eu
PREFIX= PREFIX=
# Uncomment this line to run with valgrind... # Uncomment this line to run with valgrind...
PREFIX="valgrind --leak-check=yes --log-file=valgrind.%p" PREFIX="valgrind --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p"
# Setup keys. # Setup keys.
taler-exchange-keyup -c test_taler_exchange_httpd.conf taler-exchange-keyup -c test_taler_exchange_httpd.conf
# Setup database (just to be sure) # Setup database (just to be sure)
@ -45,7 +45,6 @@ export GNUNET_FORCE_LOG=";;;;ERROR"
for n in afl-tests/* for n in afl-tests/*
do do
echo -n "Test $n " echo -n "Test $n "
$PREFIX taler-exchange-httpd -c test_taler_exchange_httpd.conf -t 1 -f $n -C > /dev/null || { echo "FAIL!"; } $PREFIX taler-exchange-httpd -c test_taler_exchange_httpd.conf -t 1 -f $n -C > /dev/null && echo "OK" || echo "FAIL $!!"
echo "OK"
done done
exit 0 exit 0