mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
Travis - fix failure to load some libraries while running scm tests
In the travis environment (guile 1.8 in combination with other unidentified, particular package versions) the scm based tests are looking for backend modules (xml and dbi) in the installation prefix instead of in the build directory. Explicitly setting the environment variables GNC_BUILDDIR and GNC_UNINSTALLED fix this. I haven't figured out why this is not needed on all platforms/tool version combinations. But the fix works in all (autotools based) cases. CMake builds may need a similar fix, but I don't know that environment sufficiently to implement it.
This commit is contained in:
parent
c87fa9eac1
commit
0a782dd0c0
@ -80,7 +80,9 @@ GNC_TEST_DEPS = \
|
|||||||
--library-dir ${top_builddir}/src/engine/test
|
--library-dir ${top_builddir}/src/engine/test
|
||||||
|
|
||||||
$(SCM_TESTS): %: $(srcdir)/%.scm Makefile .scm-links
|
$(SCM_TESTS): %: $(srcdir)/%.scm Makefile .scm-links
|
||||||
echo '${GUILE} --debug -l $(srcdir)/$*.scm -c "(exit (run-test))"' > $@
|
echo 'export GNC_BUILDDIR="${abs_top_builddir}";' > $@
|
||||||
|
echo 'export GNC_UNINSTALLED=yes;' >> $@
|
||||||
|
echo '${GUILE} --debug -l $(srcdir)/$*.scm -c "(exit (run-test))"' >> $@
|
||||||
chmod a+x $@
|
chmod a+x $@
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = \
|
TESTS_ENVIRONMENT = \
|
||||||
|
@ -58,7 +58,9 @@ GNC_TEST_DEPS = --gnc-module-dir ${top_builddir}/src/engine \
|
|||||||
--library-dir ${top_builddir}/src/gnc-module
|
--library-dir ${top_builddir}/src/gnc-module
|
||||||
|
|
||||||
$(SCM_TESTS): %: $(srcdir)/%.scm Makefile .scm-links
|
$(SCM_TESTS): %: $(srcdir)/%.scm Makefile .scm-links
|
||||||
echo '${GUILE} --debug -l $(srcdir)/$*.scm -c "(exit (run-test))"' > $@
|
echo 'export GNC_BUILDDIR="${abs_top_builddir}";' > $@
|
||||||
|
echo 'export GNC_UNINSTALLED=yes;' >> $@
|
||||||
|
echo '${GUILE} --debug -l $(srcdir)/$*.scm -c "(exit (run-test))"' >> $@
|
||||||
chmod a+x $@
|
chmod a+x $@
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = \
|
TESTS_ENVIRONMENT = \
|
||||||
|
@ -46,7 +46,9 @@ GNC_TEST_DEPS = \
|
|||||||
--library-dir ${top_builddir}/src/gnc-module
|
--library-dir ${top_builddir}/src/gnc-module
|
||||||
|
|
||||||
$(SCM_TESTS): %: $(srcdir)/%.scm Makefile .scm-links
|
$(SCM_TESTS): %: $(srcdir)/%.scm Makefile .scm-links
|
||||||
echo '${GUILE} --debug -l $(srcdir)/$*.scm -c "(exit (run-test))"' > $@
|
echo 'export GNC_BUILDDIR="${abs_top_builddir}";' > $@
|
||||||
|
echo 'export GNC_UNINSTALLED=yes;' >> $@
|
||||||
|
echo '${GUILE} --debug -l $(srcdir)/$*.scm -c "(exit (run-test))"' >> $@
|
||||||
chmod a+x $@
|
chmod a+x $@
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = \
|
TESTS_ENVIRONMENT = \
|
||||||
|
Loading…
Reference in New Issue
Block a user