r21672 - gnucash/trunk/src - [Testing] More python-bindings test fixes
John Ralls
jralls at code.gnucash.org
Sun Dec 4 19:07:16 EST 2011
Author: jralls
Date: 2011-12-04 19:07:16 -0500 (Sun, 04 Dec 2011)
New Revision: 21672
Trac: http://svn.gnucash.org/trac/changeset/21672
Modified:
gnucash/trunk/src/bin/overrides/gnucash-build-env.in
gnucash/trunk/src/optional/python-bindings/tests/Makefile.am
gnucash/trunk/src/optional/python-bindings/tests/runTests.py
Log:
[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.
Modified: gnucash/trunk/src/bin/overrides/gnucash-build-env.in
===================================================================
--- gnucash/trunk/src/bin/overrides/gnucash-build-env.in 2011-12-05 00:07:05 UTC (rev 21671)
+++ gnucash/trunk/src/bin/overrides/gnucash-build-env.in 2011-12-05 00:07:16 UTC (rev 21672)
@@ -72,9 +72,6 @@
--guile-load-dir ${top_builddir}/src/report/report-gnome \
--guile-load-dir ${top_builddir}/src/report/stylesheets \
--guile-load-dir ${top_builddir}/src/import-export/qif-import \
- --guile-load-dir ${top_builddir}/src/business/business-core \
- --guile-load-dir ${top_builddir}/src/business/business-utils \
- --guile-load-dir ${top_builddir}/src/business/dialog-tax-table \
--guile-load-dir ${top_builddir}/src/business/business-gnome \
--guile-load-dir ${top_builddir}/src/business/business-reports \
--library-dir ${top_builddir}/src/libqof/qof \
@@ -82,9 +79,21 @@
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils \
--library-dir ${top_builddir}/src/gnome-utils \
+ --library-dir ${top_builddir}/src/html \
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/xml \
--library-dir ${top_builddir}/src/backend/sql \
- --library-dir ${top_builddir}/src/gnc-module
+ --library-dir ${top_builddir}/src/gnc-module \
+ --library-dir ${top_builddir}/src/gnome \
+ --library-dir ${top_builddir}/src/gnome-search \
+ --library-dir ${top_builddir}/src/import-export \
+ --library-dir ${top_builddir}/src/register/register-gnome \
+ --library-dir ${top_builddir}/src/register/register-core \
+ --library-dir ${top_builddir}/src/register/ledger-core \
+ --library-dir ${top_builddir}/src/business/business-ledger \
+ --library-dir ${top_builddir}/src/report/report-system \
+ --library-dir ${top_builddir}/src/report/report-gnome
`
+LD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}"
+
exec "$@"
Modified: gnucash/trunk/src/optional/python-bindings/tests/Makefile.am
===================================================================
--- gnucash/trunk/src/optional/python-bindings/tests/Makefile.am 2011-12-05 00:07:05 UTC (rev 21671)
+++ gnucash/trunk/src/optional/python-bindings/tests/Makefile.am 2011-12-05 00:07:16 UTC (rev 21672)
@@ -1,6 +1,6 @@
-
TESTS_ENVIRONMENT = \
+ GNC_BUILDDIR=`\cd ${top_builddir} && pwd` \
PYTHONPATH=$(PYTHONPATH):$(top_builddir)/src/optional/python-bindings \
PYTHONPATH=$$PYTHONPATH:$(top_builddir)/src/optional/python-bindings/.libs \
$(top_builddir)/src/bin/overrides/gnucash-build-env $(PYTHON)
Modified: gnucash/trunk/src/optional/python-bindings/tests/runTests.py
===================================================================
--- gnucash/trunk/src/optional/python-bindings/tests/runTests.py 2011-12-05 00:07:05 UTC (rev 21671)
+++ gnucash/trunk/src/optional/python-bindings/tests/runTests.py 2011-12-05 00:07:16 UTC (rev 21672)
@@ -1,5 +1,8 @@
import unittest
+import os
+os.environ["GNC_UNINSTALLED"] = "1"
+
from test import test_support
from test_book import TestBook
More information about the gnucash-changes
mailing list