diff options
Diffstat (limited to 'src/exchangedb/test_idempotency.sh')
-rwxr-xr-x | src/exchangedb/test_idempotency.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchangedb/test_idempotency.sh b/src/exchangedb/test_idempotency.sh new file mode 100755 index 000000000..6ab5d1332 --- /dev/null +++ b/src/exchangedb/test_idempotency.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# This file is in the public domain. +set -eu +echo "Initializing DB" +taler-exchange-dbinit -r test-exchange-db-postgres.conf +echo "Re-initializing DB" +taler-exchange-dbinit test-exchange-db-postgres.conf +echo "Re-loading procedures" +psql talercheck < procedures.sql +echo "Test PASSED" +exit 0 |