diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-20 13:31:01 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-20 13:31:01 -0400 |
commit | 740cd8e8f13a52084b7812246221b2d658bcfc84 (patch) | |
tree | 4ce46137d85db37698745c7b8ea8605b5caedf6f | |
parent | 748a6008b3ea7ac0c2ddf69bbcbea20d9d04ffec (diff) | |
download | fork-ledger-740cd8e8f13a52084b7812246221b2d658bcfc84.tar.gz fork-ledger-740cd8e8f13a52084b7812246221b2d658bcfc84.tar.bz2 fork-ledger-740cd8e8f13a52084b7812246221b2d658bcfc84.zip |
Added feature baseline tests
These are like regression tests to confirm the basic functionality of
every Ledger feature. Also, made the release-distcheck target less
sensitive.
-rw-r--r-- | Makefile.am | 16 | ||||
-rw-r--r-- | test/baseline/opt-abbrev-len.test | 11 | ||||
-rwxr-xr-x | tools/build | 3 |
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) |