Summary: minor, also massage sxemacs calls in tests/ with batch env
authorSebastian Freundt <freundt@ga-group.nl>
Tue, 3 Jan 2012 10:52:29 +0000 (10:52 +0000)
committerSebastian Freundt <freundt@ga-group.nl>
Tue, 3 Jan 2012 10:52:29 +0000 (10:52 +0000)
Keywords: bldchn

Again, due to a libtool inconsistency, this changeset adds the location
of the newly built lwlib libary to the environment before calling
sxemacs, this time in tests/ so make check will work.

* tests/Makefile.am: add batch environment to sxemacs binary calls

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
tests/Makefile.am

index 58a2a37..ee2a3eb 100644 (file)
@@ -37,6 +37,8 @@ LC_ALL=C
 
 sxesrcdir = $(top_srcdir)/src
 bldsrcdir = $(top_builddir)/src
+sxelwlibdir = $(top_srcdir)/src/ui/lwlib
+bldlwlibdir = $(top_builddir)/src/ui/lwlib
 
 misc_tests = frame.el glyph-test.el gutter-test.el                     \
        redisplay-tests.el reproduce-bugs.el
@@ -72,32 +74,37 @@ EXTRA_DIST = $(misc_tests) $(gtk_tests) $(mule_tests)               \
 CLEANFILES = stage1 stage2
 
 
+SXE_DYLD_PATH = $(bldsrcdir):$(bldsrcdir)/$(LT_OBJDIR):$(bldlwlibdir):$(bldlwlibdir)/$(LT_OBJDIR):$(DESTDIR)$(libdir)
+BATCHENV = DYLD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$DYLD_LIBRARY_PATH:$(DYLD_LIBRARY_PATH) \
+       LD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$LD_LIBRARY_PATH:$(LD_LIBRARY_PATH) \
+       SHLIB_PATH=$(SXE_DYLD_PATH):$$SHLIB_PATH:$(SHLIB_PATH)
 ### Produces strange banner
 SXEMACS = $(bldsrcdir)/sxemacs
 SXEDMP = $(SXEMACS).dmp
 testdir = $(srcdir)
 testautomdir = $(testdir)/automated
-tests_environment = $(SXEMACS) -batch -l ${testautomdir}/test-harness.el \
-       -f batch-test-emacs $(testautomdir)
+tests_environment = $(BATCHENV) \
+       $(SXEMACS) -batch -l ${testautomdir}/test-harness.el \
+               -f batch-test-emacs $(testautomdir)
 
 ## Use our former check target
 check-am: $(SXEMACS) $(SXEDMP)
        $(tests_environment)
 
 check-formats: $(SXEMACS) $(SXEDMP)
-       $(SXEMACS) -l ${testautomdir}/test-harness.el \
+       $(BATCHENV) $(SXEMACS) -l ${testautomdir}/test-harness.el \
        -f batch-test-emacs $(testautomdir)/format-tests.el
 
 check-map: $(SXEMACS) $(SXEDMP)
-       $(SXEMACS) -l ${testautomdir}/test-harness.el \
+       $(BATCHENV) $(SXEMACS) -l ${testautomdir}/test-harness.el \
        -f batch-test-emacs $(testautomdir)/map-tests.el
 
 check-skiplists: $(SXEMACS) $(SXEDMP)
-       $(SXEMACS) -l ${testautomdir}/test-harness.el \
+       $(BATCHENV) $(SXEMACS) -l ${testautomdir}/test-harness.el \
        -f batch-test-emacs $(testautomdir)/skiplist-tests.el
 
 check-%: $(SXEMACS) $(SXEDMP)
-       $(SXEMACS) -l ${testautomdir}/test-harness.el \
+       $(BATCHENV) $(SXEMACS) -l ${testautomdir}/test-harness.el \
        -f batch-test-emacs $(testautomdir)/$*-tests.el