summaryrefslogtreecommitdiff
path: root/tools/regtest
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-26 00:56:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-26 03:16:39 -0400
commitd58797e98c82ced16fbc0a213fd104fb72a9de08 (patch)
treececde49eece8edc80e334f74895e0861a56c0fdb /tools/regtest
parent74e569e220bee08d6c9eda59b5e4021748344994 (diff)
downloadledger-d58797e98c82ced16fbc0a213fd104fb72a9de08.tar.gz
ledger-d58797e98c82ced16fbc0a213fd104fb72a9de08.tar.bz2
ledger-d58797e98c82ced16fbc0a213fd104fb72a9de08.zip
The -B, -G, -V reports now show rounding amounts
This way, if the running total is off by a penny or two due to rounding of one or more commodities in the account, the user will see it. This commit also reorganizes the testing code a bit, which I did after adding the ninth test series (ConfirmTests), to validate the new rounding code.
Diffstat (limited to 'tools/regtest')
-rwxr-xr-xtools/regtest22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/regtest b/tools/regtest
deleted file mode 100755
index b42b4981..00000000
--- a/tools/regtest
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-errors=0
-
-for test in \
- "-O \$cmd 0ecbb1b15e2cf3e515cc0f8533e5bb0fb2326728" \
- "-B \$cmd c56a21d23a6535184e7152ee138c28974f14280c" \
- "-V \$cmd c56a21d23a6535184e7152ee138c28974f14280c" \
- "-G \$cmd c56a21d23a6535184e7152ee138c28974f14280c" \
- "-B \$cmd c0226fafdf9e6711ac9121cf263e2d50791859cb" \
- "-V \$cmd c0226fafdf9e6711ac9121cf263e2d50791859cb" \
- "-G \$cmd c0226fafdf9e6711ac9121cf263e2d50791859cb"
-do
- echo testing: $test
- python tools/confirm.py "ledger -f tools/standard.dat --args-only --columns=80 $test"
- errors=`expr $errors + $?`
-done
-
-if [ $errors = 0 ]; then
- echo All tests completed successfully.
-fi
-exit $errors