Source

petsc / conf / test

Full commit
# -*- mode: makefile -*-
#
#  testexamples_X - Runs various PETSc test suites

#    6 - C examples that don't work with complex numbers, require PETSc matrices
#    8 - Fortran .F examples that don't work with complex numbers
#   13 - Examples that should only be compiled.
#   17 - requires PYTHON or wget and Unix (uses urlget) and popen()

testexamples_C: ${TESTEXAMPLES_C}
testexamples_Cxx: ${TESTEXAMPLES_CXX}
testexamples_C_X: ${TESTEXAMPLES_C_X}
testexamples_Fortran: ${TESTEXAMPLES_FORTRAN}
testexamples_C_X_MPIUni: ${TESTEXAMPLES_C_X_MPIUNI}
testexamples_C_Complex: ${TESTEXAMPLES_C_COMPLEX}
testexamples_C_NoComplex: ${TESTEXAMPLES_C_NOCOMPLEX}
testexamples_DATAFILESPATH: ${TESTEXAMPLES_DATAFILESPATH}
testexamples_Cxx_DATAFILESPATH: ${TESTEXAMPLES_CXX_DATAFILESPATH}

testexamples_F90_DataTypes: ${TESTEXAMPLES_F90_DATATYPES}
testexamples_Fortran_NoComplex: ${TESTEXAMPLES_FORTRAN_NOCOMPLEX}
testexamples_Fortran_MPIUni: ${TESTEXAMPLES_FORTRAN_MPIUNI}
testexamples_Fortran_Complex: ${TESTEXAMPLES_FORTRAN_COMPLEX}
testexamples_C_Complex_MPIUni: ${TESTEXAMPLES_C_CCOMPLEX_MPIUNI}
testexamples_F90: ${TESTEXAMPLES_F90}
testexamples_F90_Complex: ${TESTEXAMPLES_F90_COMPLEX}
testexamples_F90_NoComplex: ${TESTEXAMPLES_F90_NOCOMPLEX}
testexamples_F2003: ${TESTEXAMPLES_F2003}
testexamples_13: ${TESTEXAMPLES_13}
testexamples_17: ${TESTEXAMPLES_17}
testexamples_18: ${TESTEXAMPLES_18}
testexamples_PARMETIS: ${TESTEXAMPLES_PARMETIS}
testexamples_METIS: ${TESTEXAMPLES_METIS}
testexamples_SPAI: ${TESTEXAMPLES_SPAI}
testexamples_ADIFOR: ${TESTEXAMPLES_ADIFOR}
testexamples_FFTW: ${TESTEXAMPLES_FFTW}
testexamples_SAWS: ${TESTEXAMPLES_SAWS}
testexamples_VALGRIND: ${TESTEXAMPLES_VALGRIND}
testexamples_MATLAB: ${TESTEXAMPLES_MATLAB}
testexamples_MATLAB_ENGINE: ${TESTEXAMPLES_MATLAB_ENGINE}
testexamples_MUMPS: ${TESTEXAMPLES_MUMPS}
testexamples_SUPERLU: ${TESTEXAMPLES_SUPERLU}
testexamples_ELEMENTAL: ${TESTEXAMPLES_ELEMENTAL}
testexamples_SUNDIALS: ${TESTEXAMPLES_SUNDIALS}
testexamples_SUITESPARSE: ${TESTEXAMPLES_SUITESPARSE}
testexamples_SUPERLU_DIST: ${TESTEXAMPLES_SUPERLU_DIST}
testexamples_HYPRE: ${TESTEXAMPLES_HYPRE}
testexamples_HDF5: ${TESTEXAMPLES_HDF5}
testexamples_CHACO: ${TESTEXAMPLES_CHACO}
testexamples_TRIANGLE: ${TESTEXAMPLES_TRIANGLE}
testexamples_SSL: ${TESTEXAMPLES_SSL}
testexamples_PARMS: ${TESTEXAMPLES_PARMS}

testexamples_BOOST: ${TESTEXAMPLES_BOOST}
testexamples_TETGEN: ${TESTEXAMPLES_TETGEN}
testexamples_PTSCOTCH: ${TESTEXAMPLES_PTSCOTCH}
testexamples_PASTIX: ${TESTEXAMPLES_PASTIX}
testexamples_ML: ${TESTEXAMPLES_ML}
testexamples_CUSP: ${TESTEXAMPLES_CUSP}
testexamples_CUDA: ${TESTEXAMPLES_CUDA}
testexamples_YAML: ${TESTEXAMPLES_YAML}
testexamples_THREADCOMM: ${TESTEXAMPLES_THREADCOMM}
testexamples_MOAB: ${TESTEXAMPLES_MOAB}
testexamples_MOAB_HDF5: ${TESTEXAMPLES_MOAB_HDF5}
testexamples_X:
testexamples_OPENGL:
testexamples_MPE:
testexamples_ESSL:
testexamples_MPI:
testexamples_BLASLAPACK:
testexamples_SOWING:
testexamples_C2HTML:
testexamples_BLACS:
testexamples_SCALAPACK:
testexamples_CMAKE:
testexamples_AFTERIMAGE:
testexamples_PTHREADCLASSES:
testexamples_OPENMP:
testexamples_NETCDF:
testexamples_EXODUSII:
testexamples_PCBDDC: ${TESTEXAMPLES_PCBDDC}

buildexamples_C:
	-@${OMAKE} testexamples_C TESTEXAMPLES_C=`echo ${TESTEXAMPLES_C} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_Cxx:
	-@${OMAKE} testexamples_Cxx TESTEXAMPLES_CXX=`echo ${TESTEXAMPLES_CXX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_C_X:
	-@${OMAKE} testexamples_C_X TESTEXAMPLES_C_X=`echo ${TESTEXAMPLES_C_X} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_Fortran:
	-@${OMAKE} testexamples_Fortran TESTEXAMPLES_FORTRAN=`echo ${TESTEXAMPLES_FORTRAN} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_C_X_MPIUni:
	-@${OMAKE} testexamples_C_X_MPIUni TESTEXAMPLES_C_X_MPIUNI=`echo ${TESTEXAMPLES_C_X_MPIUNI} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_C_Complex:
	-@${OMAKE} testexamples_C_Complex TESTEXAMPLES_C_COMPLEX=`echo ${TESTEXAMPLES_C_COMPLEX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_C_NoComplex:
	-@${OMAKE} testexamples_C_NoComplex TESTEXAMPLES_C_NOCOMPLEX=`echo ${TESTEXAMPLES_C_NOCOMPLEX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_DATAFILESPATH:
	-@${OMAKE} testexamples_DATAFILESPATH TESTEXAMPLES_DATAFILESPATH=`echo ${TESTEXAMPLES_DATAFILESPATH} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_Cxx_DATAFILESPATH:
	-@${OMAKE} testexamples_Cxx_DATAFILESPATH TESTEXAMPLES_CXX_DATAFILESPATH=`echo ${TESTEXAMPLES_CXX_DATAFILESPATH} | sed s/runex[0-9]*[a-z0-9_]*//g`

buildexamples_F90_DataTypes:
	-@${OMAKE} testexamples_F90_DataTypes TESTEXAMPLES_F90_DATATYPES=`echo ${TESTEXAMPLES_F90_DATATYPES} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_Fortran_NoComplex:
	-@${OMAKE} testexamples_Fortran_NoComplex TESTEXAMPLES_FORTRAN_NOCOMPLEX=`echo ${TESTEXAMPLES_FORTRAN_NOCOMPLEX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_Fortran_MPIUni:
	-@${OMAKE} testexamples_Fortran_MPIUni TESTEXAMPLES_FORTRAN_MPIUNI=`echo ${TESTEXAMPLES_FORTRAN_MPIUNI} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_Fortran_Complex:
	-@${OMAKE} testexamples_Fortran_Complex TESTEXAMPLES_FORTRAN_COMPLEX=`echo ${TESTEXAMPLES_FORTRAN_COMPLEX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_C_Complex_MPIUni:
	-@${OMAKE} testexamples_C_Complex_MPIUni TESTEXAMPLES_C_COMPLEX_MPIUNI=`echo ${TESTEXAMPLES_C_COMPLEX_MPIUNI} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_F90:
	-@${OMAKE} testexamples_F90 TESTEXAMPLES_F90=`echo ${TESTEXAMPLES_F90} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_F90_Complex:
	-@${OMAKE} testexamples_F90_Complex TESTEXAMPLES_F90_COMPLEX=`echo ${TESTEXAMPLES_F90_COMPLEX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_F90_NoComplex:
	-@${OMAKE} testexamples_F90_NoComplex TESTEXAMPLES_F90_NOCOMPLEX=`echo ${TESTEXAMPLES_F90_NOCOMPLEX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_F2003:
	-@${OMAKE} testexamples_F2003 TESTEXAMPLES_2003=`echo ${TESTEXAMPLES_F2003} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_13:
	-@${OMAKE} testexamples_13 TESTEXAMPLES_13=`echo ${TESTEXAMPLES_13} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_17:
	-@${OMAKE} testexamples_17 TESTEXAMPLES_17=`echo ${TESTEXAMPLES_17} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_18:
	-@${OMAKE} testexamples_18 TESTEXAMPLES_18=`echo ${TESTEXAMPLES_18} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_PARMETIS:
	-@${OMAKE} testexamples_PARMETIS TESTEXAMPLES_PARMETIS=`echo ${TESTEXAMPLES_PARMETIS} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_METIS:
	-@${OMAKE} testexamples_METIS TESTEXAMPLES_METIS=`echo ${TESTEXAMPLES_METIS} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_SPAI:
	-@${OMAKE} testexamples_SPAI TESTEXAMPLES_SPAI=`echo ${TESTEXAMPLES_SPAI} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_ADIFOR:
	-@${OMAKE} testexamples_ADIFOR TESTEXAMPLES_ADIFOR=`echo ${TESTEXAMPLES_ADIFOR} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_FFTW:
	-@${OMAKE} testexamples_FFTW TESTEXAMPLES_FFTW=`echo ${TESTEXAMPLES_FFTW} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_SAWS:
	-@${OMAKE} testexamples_SAWS TESTEXAMPLES_SAWS=`echo ${TESTEXAMPLES_SAWS} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_VALGRIND:
	-@${OMAKE} testexamples_VALGRIND TESTEXAMPLES_VALGRIND=`echo ${TESTEXAMPLES_VALGRIND} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_MATLAB:
	-@${OMAKE} testexamples_MATLAB TESTEXAMPLES_MATLAB=`echo ${TESTEXAMPLES_MATLAB} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_MATLAB_ENGINE:
	-@${OMAKE} testexamples_MATLAB_ENGINE TESTEXAMPLES_MATLAB_ENGINE=`echo ${TESTEXAMPLES_MATLAB_ENGINE} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_MUMPS:
	-@${OMAKE} testexamples_MUMPS TESTEXAMPLES_MUMPS=`echo ${TESTEXAMPLES_MUMPS} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_SUPERLU:
	-@${OMAKE} testexamples_SUPERLU TESTEXAMPLES_SUPERLU=`echo ${TESTEXAMPLES_SUPERLU} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_SUNDIALS:
	-@${OMAKE} testexamples_SUNDIALS TESTEXAMPLES_SUNDIALS=`echo ${TESTEXAMPLES_SUNDIALS} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_SUITESPARSE:
	-@${OMAKE} testexamples_SUITESPARSE TESTEXAMPLES_SUITESPARSE=`echo ${TESTEXAMPLES_SUITESPARSE} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_SUPERLU_DIST:
	-@${OMAKE} testexamples_SUPERLU_DIST TESTEXAMPLES_SUPERLU_DIST=`echo ${TESTEXAMPLES_SUPERLU_DIST} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_HYPRE:
	-@${OMAKE} testexamples_HYPRE TESTEXAMPLES_HYPRE=`echo ${TESTEXAMPLES_HYPRE} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_HDF5:
	-@${OMAKE} testexamples_HDF5 TESTEXAMPLES_HDF5=`echo ${TESTEXAMPLES_HDF5} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_CHACO:
	-@${OMAKE} testexamples_CHACO TESTEXAMPLES_CHACO=`echo ${TESTEXAMPLES_CHACO} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_TRIANGLE:
	-@${OMAKE} testexamples_TRIANGLE TESTEXAMPLES_TRIANGLE=`echo ${TESTEXAMPLES_TRIANGLE} | sed s/runex[0-9]*[a-z0-9_]*//g`

buildexamples_BOOST:
	-@${OMAKE} testexamples_BOOST TESTEXAMPLES_BOOST=`echo ${TESTEXAMPLES_BOOST} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_TETGEN:
	-@${OMAKE} testexamples_TETGEN TESTEXAMPLES_TETGEN=`echo ${TESTEXAMPLES_TETGEN} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_PTSCOTCH:
	-@${OMAKE} testexamples_PTSCOTCH TESTEXAMPLES_PTSCOTCH=`echo ${TESTEXAMPLES_PTSCOTCH} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_PASTIX:
	-@${OMAKE} testexamples_PASTIX TESTEXAMPLES_PASTIX=`echo ${TESTEXAMPLES_PASTIX} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_ML:
	-@${OMAKE} testexamples_ML TESTEXAMPLES_ML=`echo ${TESTEXAMPLES_ML} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_CUSP:
	-@${OMAKE} testexamples_CUSP TESTEXAMPLES_CUSP=`echo ${TESTEXAMPLES_CUSP} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_CUDA:
	-@${OMAKE} testexamples_CUDA TESTEXAMPLES_CUDA=`echo ${TESTEXAMPLES_CUDA} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_YAML:
	-@${OMAKE} testexamples_YAML TESTEXAMPLES_YAML=`echo ${TESTEXAMPLES_YAML} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_THREADCOMM:
	-@${OMAKE} testexamples_THREADCOMM TESTEXAMPLES_THREADCOMM=`echo ${TESTEXAMPLES_THREADCOMM} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_MOAB:
	-@${OMAKE} testexamples_MOAB TESTEXAMPLES_MOAB=`echo ${TESTEXAMPLES_MOAB} | sed s/runex[0-9]*[a-z0-9_]*//g`
buildexamples_X:
buildexamples_OPENGL:
buildexamples_MPE:
buildexamples_ESSL:
buildexamples_MPI:
buildexamples_BLASLAPACK:
buildexamples_SOWING:
buildexamples_C2HTML:
buildexamples_BLACS:
buildexamples_SCALAPACK:
buildexamples_CMAKE:
buildexamples_AFTERIMAGE:
buildexamples_PTHREADCLASSES:
buildexamples_OPENMP:
buildexamples_PCBDDC:
	-@${OMAKE} testexamples_PCBDDC TESTEXAMPLES_PCBDDC=`echo ${TESTEXAMPLES_PCBDDC} | sed s/runex[0-9]*[a-z0-9_]*//g`

TESTMODE = testexamples

alltests:
	-@${RM} ${PETSC_ARCH}/conf/alltests.log alltests.log
	-@ln -s ${PETSC_ARCH}/conf/alltests.log alltests.log
	-@if [ "${PETSC_WITH_BATCH}" == "" ]; then make PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} stream NPMAX=4 | tee ${PETSC_ARCH}/conf/alltests.log ;fi
	-@${OMAKE} tree_gmake_test  PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} MPIEXEC="${MPIEXEC}" DATAFILESPATH=${DATAFILESPATH} 2>&1 | tee ${PETSC_ARCH}/conf/alltests.log
	-@${OMAKE} alltest PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} MPIEXEC="${MPIEXEC}" DATAFILESPATH=${DATAFILESPATH} 2>&1 | tee ${PETSC_ARCH}/conf/alltests.log

alltest:
	-@for i in ${TEST_RUNS} ; do \
          echo "******* Testing: ${TESTMODE}_$$i *******"; \
	  ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=${TESTMODE}_$$i MPIEXEC="${MPIEXEC}" NO_PRINT_DIR=yes tree ; \
	done

#
#  will run the gmake tests in each directory that has a gmakefile
#
tree_gmake_test:
	-@for dir in ${DIRS} ; do if [ -d $$dir ]; then \
	(cd $$dir ; \
        if [ -f gmakefile ]; then \
	  ${OMAKE}  -f gmakefile runex19 PETSC_ARCH=${PETSC_ARCH} MPIEXEC="${MPIEXEC}" DATAFILESPATH=${DATAFILESPATH}; \
        fi; \
	${OMAKE}  tree_gmake_test ACTION=${ACTION} PETSC_ARCH=${PETSC_ARCH}  MPIEXEC="${MPIEXEC}" DATAFILESPATH=${DATAFILESPATH}) ;fi; \
	done

tests_DATAFILESPATH:
	make ACTION=testexamples_DATAFILESPATH tree DATAFILESPATH=${DATAFILESPATH}