From: vsr Date: Tue, 5 Mar 2013 06:07:29 +0000 (+0000) Subject: Fix problem of 'make installcheck' - set proper environment for tests X-Git-Tag: pluginMGCleaner~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39980f8b0b9497911c7a663de5c86bc0230e9034;p=modules%2Fsmesh.git Fix problem of 'make installcheck' - set proper environment for tests --- diff --git a/doc/salome/examples/Makefile.am b/doc/salome/examples/Makefile.am index 6a5904b91..f756654dd 100644 --- a/doc/salome/examples/Makefile.am +++ b/doc/salome/examples/Makefile.am @@ -174,7 +174,10 @@ pyexamples_SCRIPTS = $(BAD_TESTS) $(GOOD_TESTS) EXTRA_DIST += $(pyexamples_SCRIPTS) testme.py +THIS_PYTHONPATH = $(KERNEL_ROOT_DIR)/bin/salome:$(KERNEL_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/lib64/python$(PYTHON_VERSION)/site-packages/salome +THIS_LD_LIBRARY_PATH = $(KERNEL_ROOT_DIR)/lib/salome + installcheck-local: @for f in $(GOOD_TESTS) ; do \ - env SMESH_ROOT_DIR=$(prefix) python -B $(top_srcdir)/doc/salome/examples/testme.py $(top_srcdir)/doc/salome/examples/$$f || exit 1; \ + SMESH_ROOT_DIR=$(prefix) PYTHONPATH=$(THIS_PYTHONPATH):${PYTHONPATH} LD_LIBRARY_PATH=$(THIS_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} python -B $(top_srcdir)/doc/salome/examples/testme.py $(top_srcdir)/doc/salome/examples/$$f || exit 1; \ done