1*58e56b5eSCameron Smithmacro(common_parallel_test name procs dir exe) 2*58e56b5eSCameron Smith set(tname common_${name}) 30bfd2916SCameron Smith add_test( 4*58e56b5eSCameron Smith NAME ${tname} 5*58e56b5eSCameron Smith COMMAND ${MPIRUN} ${MPIRUN_PROCFLAG} ${procs} ${exe} ${ARGN} 6*58e56b5eSCameron Smith WORKING_DIRECTORY ${dir} ) 7*58e56b5eSCameron Smith set_tests_properties(${tname} PROPERTIES LABELS "phsolver_common") 8*58e56b5eSCameron Smithendmacro(common_parallel_test) 9*58e56b5eSCameron Smith 10*58e56b5eSCameron Smithcommon_parallel_test(readHeader 4 ${CASES}/incompressible 11*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOreadheader 2) 12*58e56b5eSCameron Smithcommon_parallel_test(readDatablock 4 ${CASES}/incompressible 13*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOreaddatablock 2) 14*58e56b5eSCameron Smithcommon_parallel_test(write 4 ${CASES} 15*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOwrite 2) 16*58e56b5eSCameron Smithcommon_parallel_test(readFtn 4 ${CASES}/incompressible/ 17*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOreadFtn) 18eceb1c0eSCameron Smithif(HAS_VALGRIND) 19*58e56b5eSCameron Smith common_parallel_test(readFtnVG 4 ${CASES}/incompressible/ 20*58e56b5eSCameron Smith valgrind --log-file=vg.%p --leak-check=yes 21*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOreadFtn) 22eceb1c0eSCameron Smithendif(HAS_VALGRIND) 23*58e56b5eSCameron Smithcommon_parallel_test(writeFtn 4 ${CASES} 24*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOwriteFtn) 25eceb1c0eSCameron Smithif(HAS_VALGRIND) 26*58e56b5eSCameron Smith common_parallel_test( 27*58e56b5eSCameron Smith writeFtnVG 4 ${CASES}/incompressible 28*58e56b5eSCameron Smith valgrind --log-file=vg.%p --leak-check=yes 29*58e56b5eSCameron Smith ${PHASTA_BINARY_DIR}/bin/phIOwriteFtn) 30eceb1c0eSCameron Smithendif(HAS_VALGRIND) 31