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:
Geert Janssens 2017-01-28 15:01:38 +01:00
parent c87fa9eac1
commit 0a782dd0c0
3 changed files with 9 additions and 3 deletions

View File

@ -80,7 +80,9 @@ GNC_TEST_DEPS = \
--library-dir ${top_builddir}/src/engine/test
$(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 $@
TESTS_ENVIRONMENT = \

View File

@ -58,7 +58,9 @@ GNC_TEST_DEPS = --gnc-module-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/gnc-module
$(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 $@
TESTS_ENVIRONMENT = \

View File

@ -46,7 +46,9 @@ GNC_TEST_DEPS = \
--library-dir ${top_builddir}/src/gnc-module
$(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 $@
TESTS_ENVIRONMENT = \