Commit graph

219 commits

Author SHA1 Message Date
John Wiegley
57491091b0 Added a new entry to the drewr.dat file 2009-06-02 19:30:59 +01:00
John Wiegley
d2062bb54c Temporarily disable the opt-forecast-while test 2009-05-26 23:43:47 -05:00
John Wiegley
dda7c3a58a Rewrote the date interval parser/stepper
The new implementation uses boost::gregorian::date_duration objects,
rather than manually stepping.
2009-03-23 01:22:26 -04:00
John Wiegley
63080a7275 Added two new regression tests
These prove Simon's recent balance report bugs.
2009-03-15 22:35:06 -04:00
John Wiegley
16c77af9c9 If 2+ child accounts are shown, show the parent
Also, also show a final balance if there are multiple accounts
displayed, even if that final balance is zero.
2009-03-15 21:31:06 -04:00
John Wiegley
d0963ece02 If a balance report is multi-lined, print a total 2009-03-15 04:14:03 -04:00
John Wiegley
1b4ce1b0b9 Added make rule to build mondo.dat 2009-03-10 19:30:13 -04:00
John Wiegley
110f0b8023 Enabled use of pre-compiled headers by default 2009-03-10 17:02:03 -04:00
John Wiegley
6154b9e794 Avoid a race condition when making directories
This can happen when doing a concurrent build with -jX.
2009-03-08 18:46:25 -04:00
John Wiegley
77faaa926f Rewrote the balance report again, to fix --depth 2009-03-08 04:15:48 -04:00
John Wiegley
dd6c0ae80d Was missing an argument in RegressTests.py 2009-03-08 04:10:45 -04:00
John Wiegley
1ee237d1a1 Disabled some tests, which were running too slowly 2009-03-08 00:48:56 -04:00
John Wiegley
c11d325712 Reduced the #include dependency tree to a minimum 2009-03-04 23:53:43 -04:00
John Wiegley
d7b9f9e068 Refactored test/RegressTests.py 2009-03-03 03:02:51 -04:00
John Wiegley
31d6430c78 Fixed another time-sensitive unit test 2009-03-02 21:38:13 -04:00
John Wiegley
1c7de0f9e4 Added "fixated commodity pricing"
If you put '=' before an annotated commodity's price, it will cause any
future market valuation of that commodity to use that price, and ignore
whatever changes may have happened since in the market price.  This can
be useful if you are tracking gas expenses based on a standard rate
which, although it changes over time, should not adjust the historical
valuation of how much the gas cost at the time it was purchased:

    2009/01/01 Payee
        Expenses:Gas                100 GAL {=$2}
        Liabilities:MasterCard        $-200
2009-03-02 16:39:26 -04:00
John Wiegley
8e43a27211 The optimized build could not run 'make fullcheck' 2009-03-02 04:51:55 -04:00
John Wiegley
1937394db8 Failing RegressTests weren't reporting failure 2009-03-02 04:50:21 -04:00
John Wiegley
a2ed6bc95d Patched some date-sensitive tests 2009-03-02 04:49:03 -04:00
John Wiegley
41092ee072 Created test/input/wow.dat 2009-02-28 06:18:48 -04:00
John Wiegley
5afc4c3770 Reorganized some files in tools/ and test/ 2009-02-28 06:18:21 -04:00
John Wiegley
4d632903c1 Added LedgerHarness.py, to simplify test creation 2009-02-28 05:37:49 -04:00
John Wiegley
38122c2224 Corrected warnings g++-4.3.3 was complaining about 2009-02-28 04:54:54 -04:00
John Wiegley
56693fab9b Separator in "balance" now part of format string 2009-02-27 16:23:36 -04:00
John Wiegley
f881bf1319 Fix to amount unreduction (aka, 120m -> 2h) 2009-02-27 15:23:38 -04:00
John Wiegley
f7f07310f4 Be smarter about trimming off trailing zeroes 2009-02-27 13:58:30 -04:00
John Wiegley
6b62be59fb Added generate command, --seed, and GenerateTests 2009-02-27 03:58:43 -04:00
John Wiegley
4389edb639 Normalize "dots" output from some of the tests 2009-02-27 02:37:41 -04:00
John Wiegley
b1adca6c80 Run the confirm tests using --verify 2009-02-27 01:52:54 -04:00
John Wiegley
316b854676 Fixed a buffer overrun 2009-02-27 01:46:16 -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
John Wiegley
55a6d588ff Allow uncommoditized amounts to +/- with an amount
Thus, you can say "$100 + 10" to increase it by $10.
2009-02-25 23:40:15 -04:00
John Wiegley
20077db3c8 Fixed the pager test to be more portable 2009-02-24 21:43:04 -04:00
John Wiegley
e012917ceb Created some new Python scripts under python/ 2009-02-24 19:33:03 -04:00
John Wiegley
1799ed3a2a Moved python/*.cc files into src/
This is because soon, I intend to have real Python source files in
python/.
2009-02-24 16:08:49 -04:00
John Wiegley
f13709f71a Be smarter about printing uncommoditized amounts 2009-02-24 15:13:21 -04:00
John Wiegley
b72568270b Added a new regression test for 13965214 2009-02-24 14:34:22 -04:00
John Wiegley
38dd1b8655 Fixed an issue involving costs and reduced values 2009-02-24 13:29:08 -04:00
John Wiegley
d525db35d8 Restored the use of Python unit tests 2009-02-24 13:16:28 -04:00
John Wiegley
07fcc3a08a Build Python module using automake, not setup.py 2009-02-24 12:48:11 -04:00
John Wiegley
ba1f1fe70e Renamed a regression test, for consistency's sake 2009-02-24 12:29:11 -04:00
John Wiegley
48a8bbc0ee Added several baseline tests regarding lot details 2009-02-24 03:42:25 -04:00
John Wiegley
cb751913ef Fixed a minor bug in handling of automated xacts
There was a if statement with an inverse boolean meaning, which caused
some automated transaction postings to have a null amount.
2009-02-23 19:20:57 -04:00
John Wiegley
944c63e6f2 The Great Renaming, Part II
The last commit did not contain the majority of changes because of a
slight mishap.  This contains the real changeset.
2009-02-23 19:07:30 -04:00
John Wiegley
310e339464 Added several more option baseline tests 2009-02-23 17:40:40 -04:00
John Wiegley
a0a014b334 Allow $FILE in regression test error output match 2009-02-23 17:39:52 -04:00
John Wiegley
4a43c22172 Restore the --gain option, for showing gain/loss 2009-02-23 15:47:09 -04:00
John Wiegley
a61901a092 Added baseline test for --revalued-only 2009-02-23 02:28:26 -04:00
John Wiegley
9f53efbf5f Many fixes to both --market and --exchange 2009-02-23 01:51:23 -04:00
John Wiegley
de6de07bac Many fixes to --market and --exchange
Also, --exchange now accepted multiple, comma-separated commodities.
2009-02-22 22:23:02 -04:00