Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6270 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
jdavisp3 committed Dec 7, 2001
1 parent ab80a57 commit 363cb21
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 35 deletions.
34 changes: 5 additions & 29 deletions src/README
@@ -1,35 +1,11 @@
This directory contains
This directory contains the source for GnuCash.
See README.modules for the layout of the module subdirectories.
The non-module directories are:

calculation: an implementation of a financial calculator, an
amortization scheduler, and an expression parser.
doc: various notes about design and the design documentation.
engine: a directory containing a gui-independent accounting engine
experimental: for experimental systems.
gnome: most of the code for the gtk/gnome front end.
guile: guile related code including g-wrap bits.
gnome: misc code for the gtk/gnome front end.
optional: bits supported via ./configure --enable-* or --with-* args.
pixmaps: various runtime images.
quotes: code for downloading stock quotes.
register: a directory containg the register object.
scm: all of the scheme code.

This directory contains a smatttering of gui-independent files.

Destroy.[ch] -- functions for destroying GUI windows
EuroUtils.[ch] -- implements euro currency conversions
FileBox.h -- generic interface to a file picker dialog
FileDialog.[ch] -- GUI independent functions for saving and loading
GnuCash files. The name of the file is rather
misleading!
MainWindow.h -- generic interface to main GUI window
MultiLedger.[ch] -- utilities for handling and updating multiple
register windows
Refresh.[ch] -- utilities for refreshing GUI windows
SplitLedger.[ch] -- loads a register window with data from the engine

file-history.h -- interface for saving and restoring file open history
gnc-ui-common.h -- define some GUI abstractions
messages.h
messages_i18n.h -- translatable strings
top-level.h -- generic top-level interfaces
ui-callbacks.h -- an interface that any gnucash gui must support
scm: misc scheme code.
6 changes: 5 additions & 1 deletion src/app-file/test/Makefile.am
Expand Up @@ -10,7 +10,11 @@ GNC_TEST_DEPS := \
--guile-load-dir ${top_srcdir}/lib \
--guile-load-dir ${top_srcdir}/src/scm \
--guile-load-dir ${top_srcdir}/src/gnome \
--library-dir ${top_srcdir}/src/gnome
--guile-load-dir ${top_srcdir}/src/gnome-utils \
--guile-load-dir ${top_srcdir}/src/report/report-gnome \
--library-dir ${top_srcdir}/src/gnome \
--library-dir ${top_srcdir}/src/gnome-utils \
--library-dir ${top_srcdir}/src/report/report-gnome

TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Expand Down
1 change: 1 addition & 0 deletions src/app-utils/test/Makefile.am
Expand Up @@ -9,6 +9,7 @@ GNC_TEST_DEPS := \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/calculation \
--gnc-module-dir ${top_builddir}/src/app-utils \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${G_WRAP_MODULE_DIR} \
--guile-load-dir ${top_srcdir}/lib \
--guile-load-dir ${top_srcdir}/src/scm \
Expand Down
20 changes: 15 additions & 5 deletions src/backend/postgres/test/test-db.c
Expand Up @@ -299,12 +299,12 @@ remove_unneeded_commodities (GNCSession *session)
g_hash_table_destroy (cdi.hash);
}

static void
multi_user_get_everything (GNCSession *session, GNCSession *base)
static Query *
make_get_all_query (GNCSession * session)
{
Query *q;

g_return_if_fail (session);
g_return_val_if_fail (session, NULL);

q = xaccMallocQuery ();

Expand All @@ -318,6 +318,18 @@ multi_user_get_everything (GNCSession *session, GNCSession *base)

xaccQuerySetGroup (q, gnc_book_get_group (gnc_session_get_book (session)));

return q;
}

static void
multi_user_get_everything (GNCSession *session, GNCSession *base)
{
Query *q;

g_return_if_fail (session);

q = make_get_all_query (session);

xaccQueryGetSplits (q);

xaccFreeQuery (q);
Expand All @@ -337,8 +349,6 @@ test_updates (GNCSession *session, const char *db_name, const char *mode,
char *filename;
gboolean ok;

return TRUE;

g_return_val_if_fail (session && db_name && mode, FALSE);

filename = db_file_url (db_name, mode);
Expand Down
1 change: 1 addition & 0 deletions src/gnome-utils/test/Makefile.am
Expand Up @@ -8,6 +8,7 @@ GNC_TEST_DEPS := \
--gnc-module-dir ${top_builddir}/src/calculation \
--gnc-module-dir ${top_builddir}/src/app-utils \
--gnc-module-dir ${top_builddir}/src/gnome-utils \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${G_WRAP_MODULE_DIR} \
--guile-load-dir ${top_srcdir}/lib \
--guile-load-dir ${top_srcdir}/src/scm \
Expand Down
1 change: 1 addition & 0 deletions src/report/locale-specific/us/test/Makefile.am
Expand Up @@ -13,6 +13,7 @@ GNC_TEST_DEPS := \
--guile-load-dir ${top_srcdir}/lib \
--guile-load-dir ${top_srcdir}/src/scm \
--guile-load-dir ${top_srcdir}/src/gnome-utils \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${top_srcdir}/src/gnome \
--library-dir ${top_srcdir}/src/gnome-utils \
--library-dir ${top_srcdir}/src/gnome
Expand Down
1 change: 1 addition & 0 deletions src/report/report-system/test/Makefile.am
Expand Up @@ -8,6 +8,7 @@ GNC_TEST_DEPS := \
--gnc-module-dir ${top_builddir}/src/calculation \
--gnc-module-dir ${top_builddir}/src/app-utils \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${G_WRAP_MODULE_DIR} \
--guile-load-dir ${top_srcdir}/lib \
--guile-load-dir ${top_srcdir}/src/scm \
Expand Down
1 change: 1 addition & 0 deletions src/report/standard-reports/test/Makefile.am
Expand Up @@ -10,6 +10,7 @@ GNC_TEST_DEPS := \
--guile-load-dir ${top_builddir}/src/scm \
--guile-load-dir ${top_builddir}/lib \
--guile-load-dir ${G_WRAP_MODULE_DIR} \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${top_builddir}/src/gnome-utils \
--guile-load-dir ${top_builddir}/src/gnome \
--library-dir ${top_builddir}/src/gnome-utils \
Expand Down
1 change: 1 addition & 0 deletions src/report/stylesheets/test/Makefile.am
Expand Up @@ -12,6 +12,7 @@ GNC_TEST_DEPS := \
--guile-load-dir ${top_builddir}/lib \
--guile-load-dir ${G_WRAP_MODULE_DIR} \
--guile-load-dir ${top_builddir}/src/gnome-utils \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${top_builddir}/src/gnome \
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_builddir}/src/gnome
Expand Down
1 change: 1 addition & 0 deletions src/report/utility-reports/test/Makefile.am
Expand Up @@ -10,6 +10,7 @@ GNC_TEST_DEPS := \
--guile-load-dir ${top_builddir}/src/scm \
--guile-load-dir ${top_builddir}/lib \
--guile-load-dir ${G_WRAP_MODULE_DIR} \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${top_builddir}/src/gnome-utils \
--guile-load-dir ${top_builddir}/src/gnome \
--library-dir ${top_builddir}/src/gnome-utils \
Expand Down
1 change: 1 addition & 0 deletions src/tax/us/test/Makefile.am
Expand Up @@ -7,6 +7,7 @@ GNC_TEST_DEPS := \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/utility-reports \
--gnc-module-dir ${top_builddir}/src/report/stylesheets \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
--gnc-module-dir ${top_builddir}/src/app-utils \
--gnc-module-dir ${top_builddir}/src/calculation \
--gnc-module-dir ${top_builddir}/src/tax/us \
Expand Down

0 comments on commit 363cb21

Please sign in to comment.