34 #include "cashobjects.h"
35 #include "test-stuff.h"
39 static gint transaction_num = 320;
40 static gint max_iterate = 10;
52 sess = get_random_session ();
54 do_test ((NULL != book),
"create random data");
56 add_random_transactions_to_book (book, transaction_num);
58 root = gnc_book_get_root_account (book);
59 xaccAccountTreeScrubLots (root);
67 success (
"automatic lot scrubbing lightly tested and seem to work");
73 main (
int argc,
char **argv)
78 if (!cashobjects_register())
83 g_log_set_always_fatal( G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING );
87 for (i = 0; i < max_iterate; i++)
89 fprintf(stdout,
" Lots: %d of %d paired tests . . . \r",
90 (i + 1) * 2, max_iterate * 2);
95 fprintf(stdout,
"Lots: Test series complete. \n");
High-Level API for imposing Lot constraints.
QofBook * qof_session_get_book(const QofSession *session)
Account handling public routines.
void qof_close(void)
Safely close down the Query Object Framework.
void qof_session_end(QofSession *session)
void qof_init(void)
Initialise the Query Object Framework.
API for Transactions and Splits (journal entries)