The engine used to have functions that made it possible to orphan a Split.
As this is no longer possible, we can't test anymore.
Incidental:
Fix three or four small leaks in the test functions.
Allow test-period to be randomized based on optional command-line arg.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13458 57a11ea4-9604-0410-9ed3-97b8803252fd
from add_random_splits() to get_random_split().
Avoid numeric overflow when creating split values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13345 57a11ea4-9604-0410-9ed3-97b8803252fd
- Prefer QUERY_AND and QUERY_OR over NAND, NOR, XOR
- Don't randomly generate a gnc_numeric with a 0 denominator.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13300 57a11ea4-9604-0410-9ed3-97b8803252fd
- make sure a random group always has at least two accounts
- fix "make random transaction" to tell us when we don't
have at least two accounts.
- free the results of xaccGroupGetSubAccounts().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13124 57a11ea4-9604-0410-9ed3-97b8803252fd
* add some arrays of realistic string values for various
Account and Transaction fields
* use the arrays to generate slightly more human-readable
random books
* pull some hardcoded constants out into static knobs
* wrap Transaction creation in begin/commit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12202 57a11ea4-9604-0410-9ed3-97b8803252fd
likely become a warning in future version of glib, which translates to
an error for gnucash since it compiles with the -Werror flag.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12093 57a11ea4-9604-0410-9ed3-97b8803252fd
Make sure that accounts are properly anchored in a book.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10181 57a11ea4-9604-0410-9ed3-97b8803252fd
I make these changes with some trepidation, since this puts
a whole lot less stress on the 'scrub' infrastructure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10167 57a11ea4-9604-0410-9ed3-97b8803252fd
KVPs, on the theory that they will soon be deprecated.
Fixes#127315
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9750 57a11ea4-9604-0410-9ed3-97b8803252fd
get up to 3 terms, not 4
* src/app-utils/test/test-scm-query-string.c: loop the test 1000
times, now that the queries are smaller.
Fixes#127492
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9749 57a11ea4-9604-0410-9ed3-97b8803252fd
with tv_sec == 0. Fixes some tests on the alpha platform.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9685 57a11ea4-9604-0410-9ed3-97b8803252fd
The net total of this work is (i beleive) fewer lines of code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9530 57a11ea4-9604-0410-9ed3-97b8803252fd
during query->scm and scm->query conversion. It shaves about 50%
off the test-scm-query-string tests.
* src/engine/test-core/test-engine-stuff.c: add some code to help
track down what the get_random_query() is doing. Turned off by
default.
* src/app-utils/test/test-scm-query-string.c: make the test
deterministic by seeding the RNG with a known value. There is a
known "delay" at #245 with a seed of 1 on Linux systems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9273 57a11ea4-9604-0410-9ed3-97b8803252fd
infrastructure. This also replaces the old "Find Transaction"
dialog with the new gnome-search dialog. Registers, Reports, SXs,
etc. all test out fine. Integration with SQL has been "done"
(i.e. it compiles cleanly) but not "tested." Lots of the old code
is still there, but #ifdef'ed out. That code will go away
shortly.
There is only one known loss-of-functionality: the query->xml-v1
converter was not re-implemented. The current intention is, if
this functionality is required, to use the query->scm converter
and then convert the scm->string and insert that into an XML
document.
Fix a Transaction Void bug.
Fix a few bugs in test code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6951 57a11ea4-9604-0410-9ed3-97b8803252fd