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
John Ralls 5520fae838
Bug 793941 - 2.7.4: test failure on i686: 59 - test-gnc-timezone
8 years ago
..
CMakeLists.txt Move direct check dependencies to the originating CMakeLists.txt. 8 years ago
README
dummy.cpp
gtest-gnc-datetime.cpp Save Changes Bug 792106 - Wrong dates displayed 8 years ago
gtest-gnc-int128.cpp
gtest-gnc-numeric.cpp Use a more appropriate comparison for doubles. 8 years ago
gtest-gnc-rational.cpp
gtest-gnc-timezone.cpp Bug 793941 - 2.7.4: test failure on i686: 59 - test-gnc-timezone 8 years ago
gtest-import-map.cpp Changed bayes import map design 8 years ago
test-account-object.cpp kvp frame to template and correcting failure macro 8 years ago
test-account.scm
test-address.c
test-business.c
test-commodities.cpp
test-create-account.scm
test-customer.c
test-date.cpp Removing timspec from some xml parsing 8 years ago
test-employee.c
test-engine-kvp-properties.c
test-engine.c
test-extras.scm test-TR: unit tests 8 years ago
test-gnc-date.c Removing timspec from some xml parsing 8 years ago
test-gnc-guid-old.cpp
test-gnc-guid.cpp Fix travis test failure: It seems the boost bug is fixed. 8 years ago
test-gnc-uri-utils.c
test-group-vs-book.cpp
test-guid.cpp
test-job.c
test-kvp-frame.cpp Fix -Wsign-compare error. 8 years ago
test-kvp-value.cpp
test-link.c
test-load-engine.c
test-lots.cpp
test-numeric.cpp
test-object.c
test-qof-string-cache.c
test-qof.c
test-qofbackend.c
test-qofbook.c
test-qofinstance.cpp Remove tests checking members of deleted objects. 8 years ago
test-qofobject.c
test-qofsession-old.cpp
test-qofsession.cpp Enforce -Werror on C++ files and fix resulting errors. 8 years ago
test-query.cpp
test-querynew.c
test-recurrence.c
test-scm-query-import.scm
test-scm-query.cpp
test-split-vs-account.cpp
test-split.scm TP->T64: libgnucash/engine/test/test-split.scm 8 years ago
test-test-extras.scm
test-transaction-reversal.cpp
test-transaction-voiding.cpp Transaction getVoidTime uses time64. 8 years ago
test-vendor.c
utest-Account.cpp kvp frame to template and correcting failure macro 8 years ago
utest-Budget.c timespec->time64 for gnc_budget_get_period... 8 years ago
utest-Entry.c gncEntry members timespec->time64 8 years ago
utest-Invoice.c gncInvoice uses time64 8 years ago
utest-Split.cpp Transaction members Timespec->time64 8 years ago
utest-Transaction.cpp Merge Chris Lam's and Aaron Laws's branch 'time64-ftw' into unstable. 8 years ago
utest-gnc-pricedb.c Change gnc_pricedb_convert_balance_nearest_price from timespec to time64. 8 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."