Commit graph

27 commits

Author SHA1 Message Date
Evan Mallory
0e691e76db Fix test harness to work with msys2
With this change, 97% of the tests pass. See the build on appveyor for more info: https://ci.appveyor.com/project/Evan/ledger/build/build-49

I'll follow up with another PR to fix some of the remaining broken tests
2016-09-23 08:14:30 -04:00
Alexis Hildebrandt
d97b834107 [tests] Fix empty testfile check 2015-10-27 18:16:24 +01:00
Alexis Hildebrandt
01252035cd [doc] Add CheckTests to ctest
to check whether all available ledger options documented
and are being tested.

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 14:53:16 +01:00
Johann Klähn
ea249423d4 allow -f /dev/stdin in test runner 2013-01-17 12:08:20 +01:00
Johann Klähn
08033e6d50 fix test runner if filename is specified
If the command line switch "-f" is used the test runner will
not pass the file name of the test file to ledger.
The line "test -f /dev/null" as used in test/baseline/cmd-convert.test
did not work as intended before this.
Also using "-f - " did not work as "$ledger" was noti
prepended to the command.
2012-10-18 13:45:40 -07:00
John Wiegley
a910549ca9 Fixes so that tests can run under distcheck 2012-04-25 03:09:56 -05:00
John Wiegley
ee641f353c Resolve some issues with proof builds 2012-04-15 01:17:01 -05:00
John Wiegley
1809e63fb0 Added a test harness error diagnostic 2012-03-30 04:49:45 -05:00
John Wiegley
b5664ce2ef Allow use of $FILE in stdout checks 2012-03-23 04:02:01 -05:00
John Wiegley
2df8edc71c Improved the behavior of -X 2012-03-09 20:02:53 -06:00
John Wiegley
c813eafbd8 Display file name when a regression test fails 2012-03-09 03:57:30 -06:00
John Wiegley
f6c087cfe4 Added a new 'python' directive 2012-03-01 17:32:51 -06:00
John Wiegley
9c62463f84 Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
John Wiegley
512542552b When a test fails, show the command that failed 2011-02-12 17:55:56 -05:00
John Wiegley
a69cd37fa2 Corrected regression test output 2011-02-12 17:55:56 -05:00
John Wiegley
a995090b9e 'make check' for gcov shouldn't listen to -j 2010-06-23 17:51:11 -04:00
John Wiegley
7da2701295 Regression and generate tests now fail properly 2010-06-22 03:10:19 -04:00
John Wiegley
b819475a93 Fix to the way simplified regressions tests are read 2010-06-19 16:06:15 -04:00
John Wiegley
fa263e729c Tests run in parallel with using acprep -jX make
This is done using the multiprocessing library in Python 2.6.  If that's
unavailable, this feature does nothing.
2010-06-15 01:49:18 -04:00
John Wiegley
d11ff33074 Made >>>2 and === optional in regression tests 2010-06-14 07:18:49 -04:00
John Wiegley
95e08cc46f Make the source directory available to all tests 2009-11-02 00:48:32 -05:00
John Wiegley
dd6c0ae80d Was missing an argument in RegressTests.py 2009-03-08 04:10:45 -04:00
John Wiegley
d7b9f9e068 Refactored test/RegressTests.py 2009-03-03 03:02:51 -04:00
John Wiegley
1937394db8 Failing RegressTests weren't reporting failure 2009-03-02 04:50:21 -04:00
John Wiegley
4d632903c1 Added LedgerHarness.py, to simplify test creation 2009-02-28 05:37:49 -04:00
John Wiegley
4389edb639 Normalize "dots" output from some of the tests 2009-02-27 02:37:41 -04:00
John Wiegley
d58797e98c 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.
2009-02-26 03:16:39 -04:00
Renamed from test/regress.py (Browse further)