xref: /petsc/src/sys/tests/makefile (revision 2ff79c18c26c94ed8cb599682f680f231dca6444)
1-include ../../../petscdir.mk
2
3include ${PETSC_DIR}/lib/petsc/conf/variables
4include ${PETSC_DIR}/lib/petsc/conf/rules
5
6testex55:
7	-@export PYTHONPATH=$${PYTHONPATH:+$$PYTHONPATH:}${PETSCPYTHONPATH};\
8         echo "Using PYTHONPATH=$${PYTHONPATH} to locate mpi4py for test"; \
9         ${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ${PYTHON_EXE} ./ex55.py > ex55_1.tmp  2>&1;\
10         if (test ! -s ex55_1.tmp) then \
11             echo "C/C++ mpi4py python example src/sys/tests/ex55.py run successfully with 2 MPI processes"; \
12         else \
13           echo "Possible error running Python src/sys/tests/ex55.py with 2 MPI processes"; \
14           echo "See https://petsc.org/release/faq/";\
15           cat ex55_1.tmp; \
16           touch ../../../check_error;\
17         fi; \
18         ${RM} -f ex55.tmp
19