Commit graph

559 commits

Author SHA1 Message Date
thdox
befb06f941 Add --generated to untested options list.
--generated will generate each time new entries, this cannot be
reproduced safely.
2015-03-23 23:35:07 +01:00
thdox
2bcfb0df5a Add --verify-memory to untested options.
This --verify-memory option is very system (Linux/Mac) dependent on how
the memory is allocated. This cannot be reproduce with same results.
2015-03-23 23:35:07 +01:00
thdox
57bd08efce Add --revalued-total to "to be tested" options.
I have not yet understood the meaning of --revalued-total, but as it
output something, it should be tested. So add it to "to be tested"
options list.
2015-03-23 23:35:07 +01:00
thdox
6abcf2109d Fix baseline test for --no-pager. 2015-02-25 19:01:30 +01:00
Alexis Hildebrandt
5e6d5e33af Merge pull request #396 from thdox/auto-match
Fix Auto match
2015-02-24 20:27:30 +01:00
Alexis Hildebrandt
7358ced548 Merge pull request #401 from thdox/baseline-tests
Improve baseline tests
2015-02-24 19:54:33 +01:00
thdox
df944929f8 Add baseline test for --price-db option. 2015-02-24 19:27:07 +01:00
thdox
e6a967b860 Add baseline test for --script option. 2015-02-24 19:27:07 +01:00
thdox
72cb48727d Add --no-pager to untested options of CheckBaselineTests.py
As per comment in Pull Request #382
2015-02-24 19:27:07 +01:00
thdox
83bde60ec1 Remove --*help* from untested options in CheckBaselineTests.py
As per commit f59abd4c76
2015-02-24 19:26:50 +01:00
thdox
fce467fba9 Remove --cache from untested options in CheckBaselinetests.py
As per commit d5e1308d07
2015-02-24 19:26:28 +01:00
thdox
ddf17b6246 Add baseline test for --init-file option. 2015-02-24 19:25:18 +01:00
thdox
73e3ecc6b8 Fix alignment of cleared-format with 4 spaces as separator. 2015-02-23 23:31:21 +01:00
thdox
788ffc2a4b Update test for --auto-match option. 2015-02-22 16:51:57 +01:00
thdox
459f587012 Improve documentation about --rich-data.
Conflicts:
	doc/ledger.1
2015-02-21 19:41:17 +01:00
Alexis Hildebrandt
6f6d4ec26c [tests] Minor test/DocTests.py clean up 2015-02-20 23:09:26 +01:00
Alexis Hildebrandt
c1e409e693 [doc] Add support for additional input files
in test/DocTests.py by allowing file: and with_file: options on examples.
2015-02-20 14:07:57 +01:00
Alexis Hildebrandt
34f8c48241 [tests] Improve error reporting for test/DocTests.py 2015-02-20 14:02:16 +01:00
Alexis Hildebrandt
f5b8fe5956 [tests] Add output when skipping incomplete tests
in test/DocTests.py
2015-02-20 14:00:57 +01:00
Alexis Hildebrandt
a48e3014ba [tests] Clean-up test/DocTests.py
* Replace hard-coded strings with token variables
* Use os.path.join to create file paths
2015-02-20 13:59:51 +01:00
Alexis Hildebrandt
fde30f1977 [tests] Allow testing of multi-line examples 2015-02-18 21:33:22 +01:00
Alexis Hildebrandt
11a01f1b5a [doc] Report undocumented value expression functions
in the manpage and texinfo manual.
2015-01-27 22:02:59 +01:00
Alexis Hildebrandt
3d7eb24151 [doc] Improve @smallexample command line parsing
by using Python shlex.
2015-01-27 22:01:09 +01:00
Alexis Hildebrandt
fcb040f643 Merge pull request #383 from thdox/add-to-doc2
Add documentation for option --permissive.

[ci skip]
2015-01-27 21:52:35 +01:00
Alexis Hildebrandt
f6fa4de9c5 [tests] Grep for option alternates during checks 2015-01-25 11:51:50 +01:00
Alexis Hildebrandt
d94d164b65 [tests] Ignore comment lines when checking texinfo
so that "empty" options are also reported as undocumented.
2015-01-23 16:36:07 +01:00
Alexis Hildebrandt
2030240849 [tests] Move untested_options to CheckBaselineTests 2015-01-22 07:25:49 +01:00
thdox
991b3f25b1 Rename file from test/regress/634AA589.test to
test/baseline/opt-permissive.test. Actually 634AA589 is the initial
commit that created permissive option.
2015-01-22 02:00:40 +01:00
Alexis Hildebrandt
47dbddf5af [tests] Capture stderr when running DocTests 2015-01-21 10:32:50 +01:00
Alexis Hildebrandt
ba46240921 [tests] Improve option parsing in CheckTexinfo.py
* Replace @ftable @code argument with @option of @command depending
  on the documented items

* Remove @c option comment from @items documenting options
2015-01-21 08:03:53 +01:00
Alexis Hildebrandt
c7a30bf7d8 [tests] Refactor CheckTests.py into custom scripts 2015-01-21 08:03:53 +01:00
Alexis Hildebrandt
17189b8106 [fix] Make trim function trim trailing whitespace
std::isspace(*e) returns false for the end of c-string null-byte.

Bugzilla: 1106
2015-01-20 22:18:32 +01:00
Alexis Hildebrandt
f7fd65b9aa Fix -i short-option for --init-file
Bugfix for #1102

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-15 23:27:16 +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
Alexis Hildebrandt
ce903c1a5e [tests] Fix compiler warning 2015-01-11 09:38:24 +01:00
John Wiegley
d4346ae6d8 Merge pull request #358 from afh/pull/DocTests
[tests] Add examples parameter to DocTests
2014-12-30 10:37:06 -06:00
Alexis Hildebrandt
abf41d727a [tests] Add examples parameter to DocTests
to test the given examples only instead of every example.
2014-12-30 11:15:23 +01:00
Alexis Hildebrandt
ba35340ca9 Bugfix 1038: empty reg report for this month period
when year was specified with literal Y or year directive, but not
when using apply year.
2014-12-29 11:08:10 +01:00
Alexis Hildebrandt
1dd9dcaab4 Bump copyright notice to 2015
The following script makes it a no-brainer:
% NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \
  | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
2014-12-27 11:24:55 +01:00
John Wiegley
d88cf687d3 Merge pull request #346 from afh/pull/trace_level
Fix crash when using --trace 10 or above
2014-12-24 19:17:33 -06:00
Alexis Hildebrandt
4f1a5b5770 [test] Use --args-only option in DocTests.py
instead of --init-file /dev/null
2014-12-24 10:08:43 +01:00
Alexis Hildebrandt
f1478851ee Fix crash when using --trace 10 or above
uint8_t is typedef'd to char, thus boost::lexical_cast treats it
as such instead of a number.
2014-12-23 23:45:39 +01:00
Alexis Hildebrandt
0a0f2f0d69 Fix crash when using -M with empty result
ledger -f /dev/null reg -M test causes a segmentation fault,
see bug 730 and duplicates 1080 and 1084 for details.

Kudos to Ikke for helping with debugging.
2014-12-16 19:37:37 +01:00
Martin Michlmayr
ad7c5ea764 Add test case for off by one error in textual.cc fixed in a013a73b 2014-12-11 16:41:20 -06:00
Alexis Hildebrandt
936c3f0434 Fix DocTests running in non-standard width terminal
The changes introduced with
  56976a127c make --columns default to
  terminal width, as returned by ioctl()
break the DocTests when run in a terminal with a width different
from the standard of 80 columns.
2014-12-03 22:14:49 +01:00
Alexis Hildebrandt
31ccb6d368 Fix and re-enable DocTests 2014-11-29 09:06:14 +01:00
Martin Michlmayr
96223f9e20 Add ISO 8601 date as recognized date string
Dates specified via --begin and --end are converted to a value expression
using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by
ledger.

Bug fix for #1072
2014-10-02 18:33:26 -04:00
Martin Michlmayr
fbcb5e9093 Fix period expression parsing for month to month without year
Bug fix for #1074, a regression introduced by the fix for bug #375
2014-10-02 17:31:26 -04:00
Johann Klähn
5931a93777 avoid policy warning with recent CMake versions
See `cmake --help-policy CMP0026` with CMake ≥ 3.0.
2014-09-10 00:40:36 +02:00
Johann Klähn
6323fe52b7 fix regression test
see pull request #320 / commit 4c86042665
2014-09-10 00:03:40 +02:00