donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

test_idempotency.sh (322B)


      1 #!/bin/sh
      2 # This file is in the public domain.
      3 set -eu
      4 psql donaucheck < /dev/null || exit 77
      5 echo "Initializing DB"
      6 donau-dbinit -r -c test-donau-db-postgres.conf
      7 echo "Re-initializing DB"
      8 donau-dbinit -c test-donau-db-postgres.conf
      9 echo "Re-loading procedures"
     10 psql donaucheck < procedures.sql
     11 echo "Test PASSED"
     12 exit 0