summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Correct one of the baseline testsJohn Wiegley2014-04-141-1/+1
|
* Apply any outstanding deferred postings at the end of parsingJohn Wiegley2014-04-141-0/+5
|
* Add the concept of "deferred postings"John Wiegley2014-04-131-0/+55
| | | | | This is pretty much exclusively for allowing one to use balance assertions with replicated transactions across multiple files.
* Added support for validation tests to DocTest.py (input:validate andPeter Feigl2014-03-041-11/+37
| | | | | | | | | | | | | | command:validate) It is now possible to use @smallexample @c input:validate (and command:validate) to specify that an example should just be read by ledger (and checked for errors) or that a ledger command should be executed (with default input -f sample.dat, if none is specified). These annotations have been added into ledger3.texi where appropriate. Running the ledger3.texi test now takes a second or two, but a lot of the @smallexamples are now automatically tested.
* Adding option --recursive-aliases, adding documentation to man-page and manualPeter Feigl2014-02-262-26/+20
|
* Adding tests for recursive aliasesPeter Feigl2014-02-262-0/+43
|
* DocTests: Allow inline input to be used with different example commandsAlexis Hildebrandt2014-02-191-26/+47
|
* DocTests: Allow multiple example inputs Alexis Hildebrandt2014-02-191-0/+5
| | | | to be used as single ledger data for an example command
* Fix apply_year_directiveAlexis Hildebrandt2014-02-121-0/+24
| | | | | | Using the Y 2014 syntax works fine, but using apply year 2014 resulted in the following error: Error: Year is out of valid range: 1400..10000 since part of the given year string was chopped off.
* Add proper argument parsing to DocTests.pyAlexis Hildebrandt2014-02-092-21/+37
|
* Print summary list of failed doc tests if anyAlexis Hildebrandt2014-02-091-3/+6
|
* Add support to check documentation examples with inline dataAlexis Hildebrandt2014-02-071-9/+36
|
* Check examples in documentation when running testsAlexis Hildebrandt2014-02-072-0/+151
| | | | | The DocTests.py script will parse a given texinfo file for specially marked examples, run the ledger command from the example, and check the result against the example output from the documentation.
* build shared library/python module, clean up CMakeJohann Klähn2014-02-011-1/+1
| | | | | libledger will now be built as a shared library. You can 'import ledger' from python IFF you copy libledger.so to ledger.so or create a symlink.
* Corrected discrepancies between documentation and drewr3.dat regarding apply ↵Craig Earls2013-09-071-11/+0
| | | | and bucket
* Disable three tests preventing Jenkins from succeedingJohn Wiegley2013-06-193-0/+0
| | | | | | These aren't actually failures, just issues with the way that Jenkins works on my system (mainly because ~/.jenkins is a symlink pointing at another volume).
* Revert "Fix tests when running under Jenkins"John Wiegley2013-06-081-1/+1
| | | | This reverts commit 7183dabc84362a745bf0381cd1cceb303338565f.
* Fix tests when running under JenkinsJohn Wiegley2013-06-081-1/+1
|
* Fix test/input/drewr3.datJohn Wiegley2013-05-231-8/+8
|
* Fix #784John Wiegley2013-05-231-1/+1
|
* Remove some unnecessary and complicated logicJohn Wiegley2013-05-191-0/+10
| | | | Fixes #712
* Add unit test for 686John Wiegley2013-05-191-0/+33
|
* Get the unit tests passing againJohn Wiegley2013-05-192-2/+2
|
* Initial commit of ledger-mode documentation and demo fileCraig Earls2013-02-261-0/+63
|
* Divorces 25A099C9 from the actual amount.h source fileCraig Earls2013-01-302-21/+814
| | | | | | | This test appears to test the garbage input handling on ledger. garbage-input.dat has been added to the test directory for use by this test, allowing development with amount.h to proceed without tripping this particular test inappropriately
* Fixes bug 514. accounts and commodities output now sortsCraig Earls2013-01-293-8/+8
| | | | updated tests included.
* Merge branch 'master' into nextJohann Klähn2013-01-187-1/+32
|\ | | | | | | | | | | Some commits were on the master branch but not yet on the next branch due to a pull request to master after those two branches diverged. This merge ensures that next ⊇ master.
| * ignore extra fields when converting csv filesJohann Klähn2012-10-132-0/+7
| | | | | | | | This fixes bug #736.
| * update baseline test for convert commandJohann Klähn2012-10-131-1/+1
| |
| * ignore (some) empty field when converting csvJohann Klähn2012-10-134-0/+24
| | | | | | | | This fixes bug #733 and bug #734.
* | change handling of standard inputJohann Klähn2013-01-172-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For `-f /dev/stdin`, the `pathname` of the parsing context will be empty as for any other streamed input. `instance_t::include_directive` did not work as expected for `-f /dev/stdin` and relative file names. One would expect them to be relative to the current directory rather than `/dev`. This will lead to `While parsing file ""` messages. This could be adjusted to read `While parsing standard input`, but maybe it's not worth the special cases. This commit also fixes bug 788: behaviour of source_context for '-f -'
* | allow -f /dev/stdin in test runnerJohann Klähn2013-01-171-1/+1
| |
* | fix ctest rulesJohann Klähn2013-01-172-20/+2
| |
* | Revert "fix bug 788: behaviour of source_context for '-f -'"John Wiegley2013-01-161-12/+0
| | | | | | | | This reverts commit 0a1ff035421d5f97675ad769a7fcdbc68399f3dc.
* | fix bug 748: option aliases not recognizedJohann Klähn2013-01-151-1/+1
| |
* | fix bug 788: behaviour of source_context for '-f -'Johann Klähn2013-01-151-0/+12
| | | | | | | | | | | | `session_t::read_data` did not set context.pathname to `/dev/stdin` for the special case `-f -`. I chose to adjust `source_context` too as there is no sensible context if no file name is provided.
* | add unit tests for amount_t→floor/ceilJohann Klähn2013-01-151-0/+54
| |
* | Merge branch 'next' of github.com:ledger/ledger into nextJohn Wiegley2012-11-263-0/+10
|\ \
| * | Fix crash when accessing the transaction code via post.xact.code using pythonAlexis Hildebrandt2012-11-193-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ledger would abort with the following error message: TypeError: No Python class registered for C++ class boost::optional<std::string> The changes pass a CallPolicy to make_getter when adding the transaction code property for python, so that the correct to_python conversion is made. For details see: http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
* | | Fixed a regression testJohn Wiegley2012-11-121-10/+10
|/ /
* | Merge pull request #92 from kljohann/bugs.bucketJohn Wiegley2012-10-251-0/+15
|\ \ | | | | | | fix bucket directive (bug 765)
| * | fix bucket directive (bug 765)Johann Klähn2012-10-231-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | This was caused by both 'A' and 'bucket' using default_account_directive. This function was still stripping the 'A' directive, so the first character of the account name used with 'bucket' was cut off. Maybe the code for the other directives should be changed accordingly for consistency (put line + 1 in call instead of function).
* | | provide immediate feedback in test runnerJohann Klähn2012-10-221-0/+2
|/ /
* | fix test runner if filename is specifiedJohann Klähn2012-10-181-2/+4
| | | | | | | | | | | | | | | | | | 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.
* | fix account mapping in csv conversionJohann Klähn2012-10-182-0/+31
| | | | | | | | | | | | | | By using payees_for_unknown_accounts instead of account_mappings in csv.cc ledger will have the same behaviour as in `ledger -f - print` in that it uses payee fields in account directives to rewrite the account.
* | Rounding is different for balance totals vs. postings when using posting costs.Bradley M. Kuhn2012-09-302-0/+30
| | | | | | | | | | | | | | | | | | | | test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both pass, but test/regress/CAE63F5C-c.test does not, because the total line of $6.46 is rounded wrong; it should be $6.45. There seems to be different rounding occurring for totals vs. postings. This seems to be related to Bug #492.
* | Running totals on a report including automated transactions are computed ↵Paolo Capriotti2012-09-301-0/+17
| | | | | | | | | | | | with extra precision, resulting in balances differing from the sum of their components.
* | Always store absolute paths internallyJohn Wiegley2012-08-023-23/+23
|/
* Enable the baseline and manual testsJohn Wiegley2012-05-203-3/+30
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-203-0/+52
|