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