summaryrefslogtreecommitdiff
path: root/test/prove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/prove.sh')
-rwxr-xr-xtest/prove.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/prove.sh b/test/prove.sh
new file mode 100755
index 00000000..5dadca71
--- /dev/null
+++ b/test/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