summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am16
-rw-r--r--test/baseline/opt-abbrev-len.test11
-rwxr-xr-xtools/build3
3 files changed, 26 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index e41d8d3c..0636e2df 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -271,7 +271,7 @@ endif
TESTS =
if HAVE_PYTHON
-TESTS += RegressionTests
+TESTS += RegressionTests BaselineTests
endif
if HAVE_CPPUNIT
@@ -396,6 +396,14 @@ RegressionTests: $(srcdir)/test/regress.py
echo "$(PYTHON) $(srcdir)/test/regress.py $(top_builddir)/ledger$(EXEEXT) $(srcdir)/test/regress" > $@
chmod 755 $@
+BaselineTests_SOURCES = test/regress.py
+
+EXTRA_DIST += test/baseline
+
+BaselineTests: $(srcdir)/test/regress.py
+ echo "$(PYTHON) $(srcdir)/test/regress.py $(top_builddir)/ledger$(EXEEXT) $(srcdir)/test/baseline" > $@
+ chmod 755 $@
+
FULLCHECK=$(srcdir)/tools/fullcheck
if HAVE_CPPUNIT
@@ -486,15 +494,15 @@ copy-sources:
rsync -av --delete --exclude=/.libs/ --exclude=/.deps/ \
--exclude=/plan/ --exclude=/2.6*/ --exclude=/archive/ \
$(srcdir)/ $(STAGING)/
- (cd $(STAGING); git clean -x -d -f)
+ -(cd $(STAGING); git clean -x -d -f)
release: copy-sources
(cd $(STAGING); \
- nice -n 20 ./acprep --release --opt --build -j3)
+ nice -n 20 ./acprep --release --opt --build -j3 clean all)
release-distcheck: copy-sources
(cd $(STAGING); \
- nice -n 20 ./acprep --release --build -j3 distcheck)
+ nice -n 20 ./acprep --release --build -j3 clean distcheck)
benchmark: release
PATH=$(PATH):$(srcdir)/tools \
diff --git a/test/baseline/opt-abbrev-len.test b/test/baseline/opt-abbrev-len.test
new file mode 100644
index 00000000..58023785
--- /dev/null
+++ b/test/baseline/opt-abbrev-len.test
@@ -0,0 +1,11 @@
+reg --columns=80 --abbrev-len=4
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+07-Feb-02 RD VMMXX Asse:Inve:Vang:VMMXX 0.350 VMMXX 0.350 VMMXX
+ Inco:Divi:Vang:VMMXX $-0.35 $-0.35
+ 0.350 VMMXX
+>>>2
+=== 0
diff --git a/tools/build b/tools/build
index c1c0d3eb..6a65ea0e 100755
--- a/tools/build
+++ b/tools/build
@@ -9,6 +9,9 @@ if [ -d ~/Products/ledger ]; then
fi
if [ ! -f Makefile -o \
+ $SRCDIR/Makefile.am -nt Makefile -o \
+ $SRCDIR/configure.ac -nt Makefile -o \
+ $SRCDIR/acprep -nt Makefile -o \
$SRCDIR/acprep -nt Makefile -o \
$SRCDIR/tools/myacprep -nt Makefile ]; then
(cd $SRCDIR && tools/myacprep)