summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-07 04:52:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-07 05:08:24 -0400
commit89f0cbc7e0aba2cf15b3d7f9b444e00509e85dd4 (patch)
treee76459e4fe76f77a6a9b4b6e494a6cfeb6640cd1 /tools
parente8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f (diff)
downloadfork-ledger-89f0cbc7e0aba2cf15b3d7f9b444e00509e85dd4.tar.gz
fork-ledger-89f0cbc7e0aba2cf15b3d7f9b444e00509e85dd4.tar.bz2
fork-ledger-89f0cbc7e0aba2cf15b3d7f9b444e00509e85dd4.zip
Added a 'speedtest' Makefile target
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index b08d489d..42e6a1af 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -529,4 +529,13 @@ report: all
genhtml -o doc/report doc/report/ledger_cov.info
@echo Coverage reported generated\; now open doc/report/index.html
+LEDGER_BINARY = $(top_builddir)/ledger$(EXEEXT)
+SPEEDTEST_DAT = $(srcdir)/test/input/speed-test.dat
+SPEEDTEST_ARGS = -v --decimal-comma -o /dev/null reg 2eb75f84 1eede0cb
+
+speedtest:
+ @$(LEDGER_BINARY) -f $(SPEEDTEST_DAT) $(SPEEDTEST_ARGS)
+ @$(LEDGER_BINARY) -f $(SPEEDTEST_DAT) $(SPEEDTEST_ARGS) -V
+ @$(LEDGER_BINARY) -f $(SPEEDTEST_DAT) $(SPEEDTEST_ARGS) -X €
+
# Makefile.am ends here