Commit Graph
100 Commits
Author SHA1 Message Date
John Ralls dac48014e4 Fix python tests for out-of-source builds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22512 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-02 22:21:31 +00:00
John Ralls 380c4cba25 Fix backend-dbi tests to run from a separate build directory
Include asserts to fail immediately if either the dbi or xml backends
fail to load.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22511 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-02 22:21:23 +00:00
John Ralls d9fb4d3511 Allow SchedXaction to safely handle having g_object_property_set called on
end_date and last_date with invalid GDates.


This happens routinely when those values are empty and are restored from
SQL. Thanks to all warnings being fatal when testing, this caused the dbi
tests to fail.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22465 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:56 +00:00
John Ralls ab0d45a034 Enable and correct all store-and-reload basic tests
Replacing printed errors and "do_test" with proper asserts.

There's a fake do_test to let it compile with the still unfixed but also
unused safe save and version check tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22464 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:40 +00:00
John Ralls 2bca864ddf Replace in-test setup and teardown with a fixture.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22463 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:31 +00:00
John Ralls 6f66fa8993 Remove local log handler and use checked handler from utest-support.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22462 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:22 +00:00
John Ralls f86d4e8a96 Fix dbi-test linking error
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22461 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:12 +00:00
John Ralls 07dcde5f50 Load gncmod-backend-xml so that the tests actually run
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22460 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:51 +00:00
John Ralls a1ae191fe2 Try to load libgncmod_foo.dylib if libgncmod_foo.so doesn't exist
Workaround for Darwin similar to what's already in gnc_module_refresh().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22459 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:42 +00:00
John Ralls a57f38a0d8 [Bug 686830] Non-portable equality test in configure.ac
[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22458 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:32 +00:00
John Ralls 88b325dbfd Fix typo from r22448
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22457 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:22 +00:00
John Ralls 5243631e64 Add Mozilla::CA as CPAN dependency for new F::Q TIAA-CREF module
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22429 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-01 00:58:25 +00:00
John Ralls 7d0f95c214 Update to gtkosxapplication version 2
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22427 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-29 18:29:21 +00:00
John Ralls 283e3e1af6 Fix compiler warning about 'static' not being first in a declaration
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22307 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-12 23:21:00 +00:00
John Ralls ac09df5fc0 [Bug 680402] Tests fail due to unused translations
Add all scheme files to POTFILES.skip so that intltool-update > 0.50
will ignore them. Scheme file translation strings are handled by intl-scm/.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22298 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-09 22:45:04 +00:00
John Ralls e925c5c310 Configure won't accept python on Debian Wheezy
Debian Wheezy uses python2.pc instead of python.pc. Check both.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22297 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-09 22:44:53 +00:00
John Ralls bf2b8b2ccc Fix a compile error in test-gnc-date.c on 32-bit builds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22294 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-08 05:38:44 +00:00
John Ralls 66cc460d46 [Bug 680613] Date format setting seems to be ignored since version 2.4.9
Work around strange side-effect of r21665 which caused LC_TIME to be
changed after it had been set by setlocale(LC_ALL) in set_mac_locale().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22293 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-08 05:38:34 +00:00
John Ralls 36b58bc44c Fix make-testfile to count references in UI files
Some functions may be called only by callback reference in a GtkBuilder
XML file (*.glade, *.xml, or *.ui). Indicate that usage in the test-file
function summary.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22259 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-02 21:24:07 +00:00
John Ralls c976bfe1e8 Fix "discarded return value warning" from r22203
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22254 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-01 20:20:28 +00:00
John Ralls 784d846884 Disable test-gnc-date until it can be thoroughly tested on a wider variety of compilers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22214 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-10 22:14:35 +00:00
John Ralls 9ba8d832ff Adjust test_gnc_sql_convert_timespec_to_string() for 64-bit time_t
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22209 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:23:31 +00:00
John Ralls c58e86eff7 64-bit adjustments to test-gnc-date
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22208 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:23:13 +00:00
John Ralls 0cd7032a59 Consolidate some little-used convenience functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22207 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:22:51 +00:00
John Ralls c3d85783f0 Test gnc_sql_convert_timespec_to_string()
Note overridden failures on the second 3 values.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22206 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:22:33 +00:00
John Ralls 3c58ada1f1 Test of all major gnc-date functions, highlighting 2038 bug failures from using time_t on a 32-bit system.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22205 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:22:15 +00:00
John Ralls b391754ff6 Correct -Wunused warnings
The actual change to configure.ac (at line 1106) to enable -Wunused -- or rather to un-disable it -- is not included in order to not break the build for folks with buggy versions of swig.
(For example, https://sourceforge.net/tracker/?func=detail&aid=3530021&group_id=1645&atid=101645)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22203 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-26 23:47:34 +00:00
John Ralls 894f0ed126 Set PYTHON_LINK_FILES to useful values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22202 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-26 23:46:58 +00:00
John Ralls fff094f98a Delete remaining swig-foo.c files with maintainer-clean
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22201 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-22 17:57:37 +00:00
John Ralls 8ff333ccaa Fix compilation on OSX
One can't link a library created with -module on OSX, but one can dload
a library compiled with -shared on both OSX and Linux.

Also cleaned out the old "make check" files from test/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22200 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-22 17:57:22 +00:00
John Ralls 7423741ea3 Add EXTRA_CFLAGS for compiling on Win7
Configure gets confused by some gcc builtins on Win7: Disable them so that configure finds the right settings.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22197 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 22:10:00 +00:00
John Ralls 43e1a7df34 [Bug #674862] Gnucash crashes after creating a new SX using the Mortgage Wizard and SQL Backend
Special-cases dbi_result_get_datetime returning -1 to work around a bug in MinGW's implementation of gmtime().

[BP]


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22188 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:48:41 +00:00
John Ralls aa905346cb Revert gnc-backend-dbi.c from 22186, should be a separate commit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22187 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:43:52 +00:00
John Ralls 5b602c3a93 Fix double definition of DEBUG_MEMORY
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22186 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:32:52 +00:00
John Ralls da6980afc2 [Bug 674862] Gnucash crashes after creating a new SX using the Mortgage
Wizard and SQL Backend

This addresses the crash reported on Ubuntu with Postgres by Krzysiek.
The stack trace he posted showed the crash was the result of
dereferencing a NULL GDate*, and this change protects against that. It
still doesn't address the more basic problem of why on Win32 and with
mysql and pgsql (but not SQLite3) the mortgage wizard is writing corrupt
dates.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22171 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-07 22:54:56 +00:00
John Ralls 9c0e71c2e2 [Bug 674283] With mysql crash after deleting accounts included into a
budget

Never assume a pointer is NULL unless you set it to NULL!

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22154 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-21 17:38:40 +00:00
John Ralls 3b058e0dcb [Testing] Fix potential leaks in Split teardown.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22153 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-19 20:11:53 +00:00
John Ralls ae15ff46df Fix some scheme test program linkage failures on Wheezy.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22152 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-19 20:00:33 +00:00
John Ralls 3929c80288 Remove test obsoleted by r22001
Which rearranged the ApplyPayments code so that it's done from the
GncInvoice object instead of explicitly by the owner (or in this case,
GncCustomer).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22151 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-19 20:00:18 +00:00
John Ralls 88c384b7c3 Testing: Make libutest-Split.la "noinst-LTLIBRARY" instead of
test-engine-LTLIBRARY

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22149 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-17 00:45:58 +00:00
John Ralls 96b9031d6b [Testing] Fix up utest-Account to use checked error messages in all tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22137 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:36:07 +00:00
John Ralls 57b82171dc [Testing] Fix a missed execution path detected with error message counting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22136 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:58 +00:00
John Ralls 12387c1c02 [Testing] Add hits field to TestErrorStruct
Allows asserting on the number of times error messages are encountered.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22135 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:47 +00:00
John Ralls ebee14d833 Add test files to .gitignore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22134 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:38 +00:00
John Ralls 4e4f857376 [Translation] Update POTFILES.in with some new filenames
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22133 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:29 +00:00
John Ralls 6d32b6f693 [Testing] Separate unit test functions from make check functions.
I'd originally put the functions supporting log detection, qof event handling, and mock-counting in test-stuff along with the functions that support the older "make check" integration tests. There are now more unit test support functions than there are of the older functions, so it's time for them to move out on their own.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22132 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:19 +00:00
John Ralls dd5e532cdf Testing: Some very minor formatting changes in utest-Split.c comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22130 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-01 22:07:10 +00:00
John Ralls ec7b02ab5b Fix error discovered in testing: xaccSplitCompareAccountCodes actually compared the account names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22128 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-31 22:12:47 +00:00
John Ralls 0fe6e907de Testing: Unit tests for Split.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22127 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-31 22:12:36 +00:00
John Ralls 663c9f9d5b Testing: fix search_local() for detecting callbacks and references.mv
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22121 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 16:52:31 +00:00
John Ralls 2066c1d991 Fix omitted "setup" argument to GNC_TEST_ADD insertion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22120 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 16:52:22 +00:00
John Ralls 0ecb61dd13 Testing: Provide a test_destroy function/macro combination.
Works on GObjects. Asserts if the object isn't a GObject (which may be the case if it has already been finalized) or if the object's finalize method isn't called (indicating a leak).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22114 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:20:19 +00:00
John Ralls 777074f482 Testing: Rewrite test_signal_assert_hits as a function/macro combination
Now the assert reports the location in the test program where it fails instead of inside test-stuff.c.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22113 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:20:08 +00:00
John Ralls b5c62a1385 Testing: Add a basic print-to-stdout log handler as a test debugging aid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22112 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:19:58 +00:00
John Ralls 62cca60116 New Perl program to create a skeleton test file from a C source file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22073 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-09 00:07:13 +00:00
John Ralls 53c7d0c8d1 [r21886][Bug #667900] No clipboard copy and paste
Forward-port of r21886, done in the 2.4 branch to quickly resolve bug
#667900 and to give windows users a nightly build to test with.

Extends that change by also converting the GDK_SELECTION_PRIMARY
operations to use GtkClipboard instead of GtkSelection.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21918 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-30 01:54:01 +00:00
John Ralls 4376c08601 Fix compile error
td isn't declared unless  HAVE_KTOBLZCHECK_H is true, so we can't use it
outside of the #if block.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21917 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-30 00:28:06 +00:00
John Ralls 2a50ac6461 Reverse the test for HAVE_DBI
ac_cv_header_dbi_dbi_h is set only if want_dbi is true, so testing for != no succeeds if dbi isn't enabled -- which is not what we want.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21867 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-20 21:06:29 +00:00
John Ralls f32bccfbaa Fix missing-prototype warnings from r21829
Thanks, Alex.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21837 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-10 05:06:05 +00:00
John Ralls 23384a13d2 Fix Read-only Action Sensitivity
So that FileSaveAction isn't made sensitive when the session isn't dirty.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21833 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-09 23:10:29 +00:00
John Ralls 55b1a8a5f7 [Bug 666329] - Empty database after a little while
Separate the two uses of QofBook::dirty -- indicating that the book object
itself has been edited and indicating that some object in the dataset has
been changed -- into two separate variables with separate getters & setters.

The latter purpose, indicating that some object has been changed, is moved
to a new member variable of QofBook, session_dirty. Its new setter
qof_book_mark_session_dirty() and canceler qof_book_mark_session_saved()
are called only from the xml backend or gnc-autosave(). Its tester,
qof_book_session_not_saved() is used to check for the need to autosave
and to activate FileSaveAction.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21832 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-09 23:10:20 +00:00
John Ralls 2317920635 [Bug 666329] Empty database after a little while
Use gnc_dbi_safe_sync_all (which doesn't lose data if the save partion
errors out) for all be->sync.

This is a bit of a half-way solution; we really shouldn't ever have to do
this except when creating a new database, but fixing that will take major
surgery.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21831 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-09 23:10:06 +00:00
John Ralls 614052092e [GSOC][Testing] Unit tests for qofsession
Author: Muslim Chochlov

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21830 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-09 23:09:57 +00:00
John Ralls 5ed0fbb480 [GSOC][Testing] Modifications to qofsession for testability
Author: Muslim Chochlov

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21829 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-09 23:09:47 +00:00
John Ralls d861f81c26 [Bug 666329] Empty database after a little while
Reverse qof_book_mark_saved and qof_instance_mark_clean so that the book
is dirty for qof_book_mark_saved when it's the instance.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21825 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-07 00:53:54 +00:00
John Ralls e8a9591eec [Bug 666329] Empty database after a little while
Create failing test for gnc_sql_commit_edit() showing that it doesn't call book->dirty_cb when the instance gnc_sql_commit_edit() is called on the book itself.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21824 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-07 00:53:43 +00:00
John Ralls dda1b7283e Remove invalid dependencies on LibGnome CFLAGS
Much work has been done to change LibGnome Druids to GtkAssistants. The
Makefiles in the containing directories no longer need to use $GNOME_CFLAGS
or $GNOME_LDFLAGS. In a few cases where there still is a dependency,
there's also a dependency on GCONF, so this change also adds $GCONF_CFLAGS
and $GCONF_LDFLAGS to those Makefiles to clarify the dependency.

There were also a few cases where the dependency consisted of a no-longer-
needed include, or where an include was more general than appropriate. 
This change cleans up those cases as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21796 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-29 23:28:23 +00:00
John Ralls 9e08108091 Update ActivePerl URL
Old one no longer available.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21772 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-22 20:36:10 +00:00
John Ralls dbd7744602 [Testing] Complete repositioning of test-core to build after libqof
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21759 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-20 04:02:26 +00:00
John Ralls eabb8af132 Clean up some more cases where KVP was set without committing an edit.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21743 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 00:47:20 +00:00
John Ralls 0c5a2cbc90 [Bug #642276] Bayesian association with Sqlite
Wraps the kvp_frame_set_slot_path with xaccAccountBeginEdit()/xaccAccountCommitEdit().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21742 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 00:47:11 +00:00
John Ralls fb9c826b7b Remove deleted file from POTFILES.in
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21737 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-17 19:32:37 +00:00
John Ralls 47edcb2090 Fix circular dependency between test-core and qof-test.
Compile test-core/test-stuff.c into test-qof, then recompile test-core as a module for dealing with noise from Guile and Python tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21736 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-17 19:32:27 +00:00
John Ralls 40c93f990c [Testing] Oops, had added this only to gnucash-build-env
So it didn't get picked up as a change in SVN.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21731 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-16 00:13:02 +00:00
John Ralls 8fbc986cbe [Decruftification] Remove gnc-associate-account
Carried over from somewhere in 2000, only maintained as part of global changes since. Not used anywhere.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21730 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-16 00:12:52 +00:00
John Ralls 4585ef0bc9 Fix "imported from both (sw_engine) and (gnucash engine)" errors from Guile
The GncNumericErrorCode enums are re-defined in src/engine/gnc-numeric.scm -- the SWIG way of representing them produces type errors in the report code. This may well be a problem with the calling code, but it's easier at this point to just not import the symbols into sw_engine.

gnc_commodity_table_get_quotable_commodities is explicitly wrapped in app-utils.i, so we need to not have the default wrapper in sw_engine.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21727 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:42:14 +00:00
John Ralls a196a9953b [Testing] Suppress expected messages from guile tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21726 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:42:02 +00:00
John Ralls 1619cb7f0a [Testing] Suppress expected messages in optional/python-bindings tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21725 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:41:51 +00:00
John Ralls 5c52e5eb57 [Testing] Export test-core log suppression functions to python and guile
Enables silencing expected error output. Finally found the secret code
to get libtool to build a "noinst" dynamic library: pass -rpath as an
ldflag.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21724 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:41:41 +00:00
John Ralls f69313f874 [Testing] Adjust links for src/optional/python-bindings module
I was too clever by half, I guess.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21710 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:40 +00:00
John Ralls 52018902af Adjust POTFILES.in for r21684
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21709 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:28 +00:00
John Ralls 38653188d3 [Testing] Re-order subdirectories so that test-core is available to libqof.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21708 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:19 +00:00
John Ralls 42428bb0c0 [Testing] Fix duplicate LDADD in report/report-gnome/test/Makefile.am
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21707 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:09 +00:00
John Ralls 3df0b35b4f [Testing] Stifle error messages from QOF testing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21702 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 23:50:03 +00:00
John Ralls c0a831f9be [Testing] Suppress verbose messages, expected warnings in backend/dbi checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21701 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 23:49:50 +00:00
John Ralls 6a6d3049dc [Testing] Stifle the spew in app-utils checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21700 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 23:49:41 +00:00
John Ralls 1234240e62 Revert "[Testing] Make engine/test-scm-query work."
This reverts commit 13fd037ef5120784791b25d4ebc12ad9bc6275b2.
It's unnecessary and doesn't compile.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21679 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:42:51 +00:00
John Ralls a9e98bcde7 [Testing] Fix Transposed words in test-modsysver.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21678 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:42:40 +00:00
John Ralls 629e375784 [Testing] Gnc-module: Provide checked error messages to replace noted warnings (c-files only)
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

Don't have the test utilities in Scheme yet.

Set the phony modules in misc-modules to be libtool modules instead of shared libraries. Aside from being more correct, this ensures that they'll have the same name on Linux and OSX.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21677 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:08:10 +00:00
John Ralls 02071518ee [Testing] Engine: Provide checked error messages to replace noted warnings
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21676 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:08:01 +00:00
John Ralls 5e355a56c4 [Testing] Backend/XML: Provide checked error messages to replace noted warnings
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21675 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:48 +00:00
John Ralls d6e4eea168 [Testing] Fill in some missing libraries for gnc-module check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21674 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:39 +00:00
John Ralls 6f9fb847bc [Testing] Make engine/test-scm-query work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21673 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:29 +00:00
John Ralls 00833146d2 [Testing] More python-bindings test fixes
Ensure that libgncmod-engine can load its backends, and that all module dependencies can be found on OSX when gnucash isn't installed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21672 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:16 +00:00
John Ralls a2b258302d [Testing] Suppress the useless Guile deprecated warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21671 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:05 +00:00
John Ralls 90c24bd238 [Testing] Ensure that qof_log_init() has been called for all tests
Prevents error messages about g_hash being NULL.

Invokes qof_log_init_file_special ("stderr") in gnc_module_system_init(), so gnc_log_init() had to be moved to after that call in main() so that the command-line log setting doesn't get replaced with the default setting in module_system_init.

Note that gnc_module_load_common() has one of the offending "ENTER" macros that cause the error, and it's before the safety call of module_system_init, so test programs need to explicitly call module_system_init before loading any modules.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21670 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:52 +00:00
John Ralls 6bb175db1e [Engine Testing] Rework utest-Account.c to use the new error-message handlers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21669 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:37 +00:00
John Ralls f7604f117f [Testing] Provide list error handler, rename some functions
Add an GTestFatalFunc which can examine a list of error conditions and suppress those messages and prevent their exiting while passing through any unexpected errors.

Rename test_silent_logger to test_null_handler and change it to a GTestFatalFunc (it can still be used as a GLogFunc).

Rename test_handle_faults to test_checked_handler and improve its flow and message display. It no longer asserts on a bad match.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21668 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:28 +00:00
John Ralls 609a23e431 [Testing] Get the python tests working when uninstalled
Also fix a couple of failing tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21667 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:18 +00:00
John Ralls 2dc8e5e80b [Testing] Brain failure in gnc-engine.c, sorry.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21659 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:36:12 +00:00