Salome HOME
passage du template c++ a salome9 et c++11
[tools/sat.git] / data / templates / CppSalome8 / adm / unix / make_check.am
diff --git a/data/templates/CppSalome8/adm/unix/make_check.am b/data/templates/CppSalome8/adm/unix/make_check.am
new file mode 100644 (file)
index 0000000..b4c35a0
--- /dev/null
@@ -0,0 +1,15 @@
+
+python_cmd = env \
+       SELF_ROOT_DIR=$(prefix) \
+       REP_TESTS=$(prefix)/tests \
+       REP_MAIL=$(prefix)/tests/maillages \
+       PATH=$(bindir)/$(PACKAGE):$(PATH) \
+       PYTHONPATH=$(bindir)/$(PACKAGE):$(libdir)/$(PACKAGE):$(pythondir)/$(PACKAGE):$(PYTHONPATH) \
+       python
+
+check-local:
+       for f in X $(scripts_SCRIPTS) ; do \
+         if test $f != X ; then \
+           ( cd $(scriptsdir) && $(python_cmd) $f ) || exit 1  ; \
+         fi ; \
+       done