From fed7102ad5e24382c1ceed089e92498098084075 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 13 Sep 2022 12:19:02 +0200 Subject: -fix test-auditor.sh --- src/auditor/test-revocation.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/auditor/test-revocation.sh') diff --git a/src/auditor/test-revocation.sh b/src/auditor/test-revocation.sh index f37a88385..2809b8ea1 100755 --- a/src/auditor/test-revocation.sh +++ b/src/auditor/test-revocation.sh @@ -552,10 +552,15 @@ function test_4() { function check_with_database() { BASEDB=$1 + # Configuration file to use + CONF=$1.conf echo "Running test suite with database $BASEDB using configuration $CONF" - # Setup database-specific globals - MASTER_PUB=`cat ${BASEDB}.mpub` + MASTER_PRIV_FILE=${BASEDB}.mpriv + taler-config -f -c ${CONF} -s exchange-offline -o MASTER_PRIV_FILE -V ${MASTER_PRIV_FILE} + MASTER_PUB=`gnunet-ecc -p $MASTER_PRIV_FILE` + + echo "MASTER PUB is ${MASTER_PUB} using file ${MASTER_PRIV_FILE}" # Load database full_reload @@ -582,9 +587,6 @@ function check_with_database() # Postgres database to use (must match revoke-basedb.conf) DB=taler-auditor-test -# Configuration file to use -CONF=revoke-basedb.conf - # test required commands exist echo "Testing for jq" jq -h > /dev/null || exit_skip "jq required" @@ -626,9 +628,9 @@ EXPORT PGHOST="@POSTGRES_SOCKET" MYDIR=`mktemp -d /tmp/taler-auditor-basedbXXXXXX` echo "Generating fresh database at $MYDIR" -if faketime -f '-1 d' ./generate-revoke-basedb.sh $MYDIR/basedb +if faketime -f '-1 d' ./generate-revoke-basedb.sh $MYDIR/revoke-basedb then - check_with_database $MYDIR/basedb + check_with_database $MYDIR/revoke-basedb if test x$fail != x0 then exit $fail -- cgit v1.2.3