gnucash/libgnucash/backend/xml/test
John Ralls 74d0630867 Bug 798237 - Logging during XML file loading degrades performance...
significantly

Modify the DEBUG and PINFO macros to return unless qof_log_check is
true. Replace almost all direct calls to g_debug and g_message with
DEBUG and PINFO respectively.

Track the highest logging level sent to qof_log_set_level to provide a
short-circuit return in qof_log_check. Remove setting GNC_MOD_TESTS to
QOF_LOG_DEBUG so that the short-circuit threshold isn't defeated by
always being DEBUG.

Net result: 33% improvement in xml load times.
2021-09-14 15:15:11 -07:00
..
test-files Fix typos in libgnucash/ 2021-03-02 01:15:32 +01:00
CMakeLists.txt [QofLog] Replace hashtable with tree of vectors. 2020-05-09 14:39:08 -07:00
grab-types.pl Restructure the src directory 2017-08-10 18:45:00 +02:00
README Restructure the src directory 2017-08-10 18:45:00 +02:00
test-dom-converters1.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-dom-parser1-1.xml Restructure the src directory 2017-08-10 18:45:00 +02:00
test-dom-parser1.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-file-stuff.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-file-stuff.h Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-kvp-frames.cpp Kvp no longer parses entries looking for delimiters 2017-12-21 07:39:32 -05:00
test-load-backend.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-load-example-account.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-load-xml2.cpp Merge Simon Arlott's 'commit-root-on-load' into maint. 2021-08-04 15:52:51 -07:00
test-real-data.sh Remove the .in extension from test-real-data.sh and stop configuring it for autotools 2018-01-26 18:26:06 +01:00
test-save-in-lang.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-string-converters.cpp kvp frame to template and correcting failure macro 2017-12-21 07:39:32 -05:00
test-xml2-is-file.cpp Finish the glib 2.67 fixes for CI tests. 2021-03-22 14:02:37 -07:00
test-xml-account.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-xml-commodity.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00
test-xml-pricedb.cpp Bug 798237 - Logging during XML file loading degrades performance... 2021-09-14 15:15:11 -07:00
test-xml-transaction.cpp Move glib and gtk includes out of extern C for tests. 2021-02-16 13:23:48 -08:00

These are tests of the file backend.

TESTS:
------

test-dom-converters1.c: test each simple dom converter
test-dom-parser1.c: unused now
test-kvp-frames.c: test the kvp frame dom generators and parsers
test-load-xml2.c: test the larger xml loading
test-save-in-lang.c: incomplete test to test saving in different LANGs
test-string-converters.c: test some string converters
test-xml-account.c: test xml v2 converters and parsers for Account's
test-xml-commodity.c: ditto gnc_commodity's
test-xml-transaction.c: ditto Transaction's
test-xml2-is-file.c: test the is_file function
test-real-data.sh: run the test-xml-{account,commodity,transaction} programs
                   on real data rather than random data