You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnucash/libgnucash/engine/test
Christopher Lam db77fb81a5
[test-job] plug leaks
3 years ago
..
CMakeLists.txt Restore test-gnc-option 3 years ago
README
gtest-gnc-datetime.cpp Use gnc_time() instead of time() 3 years ago
gtest-gnc-euro.cpp Use internal extern "C" { ... } for C++ 3 years ago
gtest-gnc-int128.cpp Remove some unused variables - and the initialization 3 years ago
gtest-gnc-numeric.cpp [gnc-numeric.cpp] parse integer + fraction; e.g."10 1/4" == 10.25 3 years ago
gtest-gnc-option.cpp Fix GncOptionMultichoiceValue list tests 3 years ago
gtest-gnc-optiondb.cpp Restore test-gnc-option 3 years ago
gtest-gnc-rational.cpp
gtest-gnc-timezone.cpp Bug 798150 - Error on report over time 5 years ago
gtest-import-map.cpp Remove some unused variables - and the initialization 3 years ago
gtest-qofevent.cpp Remove some unused variables - and the initialization 3 years ago
gtest-qofquerycore.cpp Valgrind: fix "definitely lost" memory in test - test-qofquerycore 3 years ago
test-account-object.cpp [test] Properly destroy resources on end of tests 3 years ago
test-address.c Valgrind: fix "definitely lost" memory from get_random_string() - test-address 3 years ago
test-business.c Drop all gnc-module dependencies and includes from compilation units that no longer use it 6 years ago
test-commodities.cpp Valgrind: fix "definitely lost" memory from get_random_string() - test-commodities 3 years ago
test-customer.c Valgrind: fix "definitely lost" memory from get_random_string() - test-customer 3 years ago
test-employee.c Valgrind: fix "definitely lost" memory from get_random_string() - test-employee 3 years ago
test-engine-kvp-properties.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-engine.c Enable gnc-uri test suite 7 years ago
test-gnc-date.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-gnc-guid-old.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
test-gnc-guid.cpp Remove references to old boost versions 3 years ago
test-gnc-uri-utils.c gnc-uri - refer to 'scheme' instead of 'protocol' as that's the more formal term used in uris 7 years ago
test-group-vs-book.cpp Use internal extern "C" { ... } for C++ 3 years ago
test-guid.cpp Store allocated temporaries in a variable so they can be freed 3 years ago
test-job.c [test-job] plug leaks 3 years ago
test-kvp-frame.cpp Housekeeping - replace plenty of http links with https 7 years ago
test-kvp-value.cpp Valgrind: fix "Invalid read" - test-kvp-value 3 years ago
test-load-engine.c
test-lots.cpp [test] Properly destroy resources on end of tests 3 years ago
test-numeric.cpp Make the GncNumeric string constructtor work for long decimal numbers. 3 years ago
test-object.c Fix typos in libgnucash/ 5 years ago
test-qof-string-cache.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-qof.c Bug 796989 - some date/time does not honor user locale (bis). 7 years ago
test-qofbackend.c
test-qofbook.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-qofinstance.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
test-qofobject.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-qofsession-old.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
test-qofsession.cpp [-Wunused-function] - remove 3 years ago
test-query.cpp [test] Properly destroy resources on end of tests 3 years ago
test-querynew.c
test-recurrence.c Bug 797666 - libgnucash/engine/test/test-recurrence.c: In function 'check_valid': 'result' may be used uninitialized 6 years ago
test-split-vs-account.cpp Use internal extern "C" { ... } for C++ 3 years ago
test-transaction-reversal.cpp Use internal extern "C" { ... } for C++ 3 years ago
test-transaction-voiding.cpp Use internal extern "C" { ... } for C++ 3 years ago
test-vendor.c Valgrind: fix "definitely lost" memory from get_random_string() - test-vendor 3 years ago
utest-Account.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Budget.c Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Entry.c Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Invoice.c Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Split.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Transaction.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
utest-gnc-pricedb.c [utest-gnc-pricedb] test gnc_pricedb_foreach_price both stable and unstable 3 years ago

README


This directory contains unit test cases to exercise basic
GnuCash engine functions.

To run the tests, just do 'make check'


Notes on test of dirty/clean flag:
---------------------------------
This test is currently performed in part in
test-customer
test-employee
test-job
test-vendor

The test cases will check if the dirty flag is unset on creation
of an object and if the dirty flag is set when the object
is modified.

There used to be a test also to check if the dirty flag is
cleared again upon committing the change.
This test has been removed, because it can only be successful
if a backend is set up. That's because the 'dirty' flag is
supposed to be cleared by the backend only.

We are in the engine test code however. In here it's not possible
to load a backend without creating some circular dependencies
between gnucash modules.

Just for completeness, this was said on the dirty flag tests before
these test cases got moved to the engine:
"An object cannot be marked 'clean' unless it has actually
been saved to a file or sql db. (Or, in the case of the file
backend, the 'dirtiness' of the data has been duly noted, and
will be taken care of for the next file save.
Until its saved, it lives in perpetual dirtiness. Thus, the
test cases need to specify a backend, then do the commit,
then test the dirty flag.

Actually, the use of the dirty flag in gnucash is, at this time,
mildly ambiguous, and its semantics are not clearly defined."