summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_idempotency.sh
blob: 7314b8c3fd5311137f7875e0282edfac88075533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# This file is in the public domain.
set -eu
psql talercheck < /dev/null || exit 77
echo "Initializing DB"
taler-exchange-dbinit -r -c test-exchange-db-postgres.conf
echo "Re-initializing DB"
taler-exchange-dbinit -c test-exchange-db-postgres.conf
echo "Re-loading procedures"
psql talercheck < procedures.sql
echo "Test PASSED"
exit 0