]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix problem of 'make installcheck' - set proper environment for tests
authorvsr <vsr@opencascade.com>
Tue, 5 Mar 2013 06:07:29 +0000 (06:07 +0000)
committervsr <vsr@opencascade.com>
Tue, 5 Mar 2013 06:07:29 +0000 (06:07 +0000)
doc/salome/examples/Makefile.am

index 6a5904b9155d40ae7726f8ae10e1f5095ef003c6..f756654dd60d0658530a0362185e57a6a4689299 100644 (file)
@@ -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