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