summaryrefslogtreecommitdiff
path: root/tools/prove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/prove.sh')
-rwxr-xr-xtools/prove.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/prove.sh b/tools/prove.sh
new file mode 100755
index 00000000..c62c4988
--- /dev/null
+++ b/tools/prove.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "$1" ]; then
+ ./ledger --seed=$1 --actual --args-only generate > /tmp/cout
+else
+ ./ledger --actual --args-only generate > /tmp/cout
+fi
+
+ledger -f /tmp/cout --actual --args-only print > /tmp/print
+
+diff -w -U3 /tmp/cout /tmp/print