summaryrefslogtreecommitdiff
path: root/src/auditor/test-auditor.sh
blob: a493683ea7c04a34bc1f24380645dadb5505a8c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -eu
DB=taler-auditor-test
dropdb $DB || true
createdb -T template0 $DB || exit 77
psql $DB < ../benchmark/auditor-basedb.sql
MASTER_PUB=`cat ../benchmark/auditor-basedb.mpub`

taler-auditor -c test-auditor.conf -m $MASTER_PUB > test-audit.json

# TODO: check test-audit.json matches expectations

dropdb $DB