summaryrefslogtreecommitdiff
path: root/tools/regtest
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-24 22:11:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-24 22:11:59 -0400
commita364b1d4acd73f187302d9a1a37432a531ef62c5 (patch)
treecfee76a87f297db2cb43e69cbeaa236688e4b766 /tools/regtest
parent5a194cbdf4533b337776959fb2a2bb5ebccd35db (diff)
downloadfork-ledger-a364b1d4acd73f187302d9a1a37432a531ef62c5.tar.gz
fork-ledger-a364b1d4acd73f187302d9a1a37432a531ef62c5.tar.bz2
fork-ledger-a364b1d4acd73f187302d9a1a37432a531ef62c5.zip
Restored the functionality of tools/regtest
Diffstat (limited to 'tools/regtest')
-rwxr-xr-xtools/regtest29
1 files changed, 12 insertions, 17 deletions
diff --git a/tools/regtest b/tools/regtest
index 6a59c39f..7d28dae7 100755
--- a/tools/regtest
+++ b/tools/regtest
@@ -2,26 +2,21 @@
errors=0
-if [ ! -f tools/standard.dat ]; then
- exit 0
-fi
-
-for test in \
- "-O nrl:checking" \
- "-O ^expenses" \
- "-B 401" \
- "-V 401" \
- "-G 401" \
- "-B ira" \
- "-V ira" \
- "-G ira" \
- "-B retire" \
- "-V retire" \
- "-G retire"
+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 tests/confirm.py $test
+ python tools/confirm.py "ledger -f tools/standard.dat $test"
errors=`expr $errors + $?`
done
+if [ $errors = 0 ]; then
+ echo All tests completed successfully.
+fi
exit $errors