aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/test-auditor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/test-auditor.sh')
-rwxr-xr-xsrc/auditor/test-auditor.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 8bf54e5df..260124fab 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -32,6 +32,10 @@ taler-bank-manage -c test-auditor.conf serve-http 2>/dev/null >/dev/null &
32# Run the auditor! 32# Run the auditor!
33echo "Running audit(s)" 33echo "Running audit(s)"
34taler-auditor -c test-auditor.conf -m $MASTER_PUB > test-audit.json 34taler-auditor -c test-auditor.conf -m $MASTER_PUB > test-audit.json
35
36# TODO:
37# - need to configure exchange's bank accounts in test-auditor.conf,
38# otherwise the auditor cannot find them!
35taler-wire-auditor -c test-auditor.conf -m $MASTER_PUB > test-wire-audit.json 39taler-wire-auditor -c test-auditor.conf -m $MASTER_PUB > test-wire-audit.json
36 40
37echo "Shutting down services" 41echo "Shutting down services"
@@ -51,6 +55,7 @@ echo -n "Test for emergencies... "
51jq -e .emergencies[0] < test-audit.json > /dev/null && (echo Failed; fail=1) || echo OK 55jq -e .emergencies[0] < test-audit.json > /dev/null && (echo Failed; fail=1) || echo OK
52 56
53# TODO: Add more checks to ensure test-audit.json matches expectations 57# TODO: Add more checks to ensure test-audit.json matches expectations
58echo "UPDATE reserves_in SET credit_val=5 WHERE reserve_in_serial_id=1" | psql $DB
54 59
55 60
56echo "Cleanup" 61echo "Cleanup"