1 2header="""#!/usr/bin/env bash 3# This script was created by gmakegentest.py 4 5@COMMENTS@ 6 7# PATH for DLLs on windows 8PATH="$PATH":@PETSC_LIB_DIR@ 9exec='@EXEC@' 10testname='@TESTNAME@' 11label='@LABEL@' 12runfiles='@LOCALRUNFILES@' 13wPETSC_DIR='@WPETSC_DIR@' 14@PKG_NAME@_dir='@PKG_DIR@' 15@PKG_NAME@_arch='@PKG_ARCH@' 16# Must be consistent with gmakefile.test 17testlogtapfile=@TESTROOT@/test_${@PKG_NAME@_arch}_tap.log 18testlogerrfile=@TESTROOT@/test_${@PKG_NAME@_arch}_err.log 19config_dir='@CONFIG_DIR@' 20filter='@FILTER@' 21filter_output='@FILTER_OUTPUT@' 22petsc_bindir='@PETSC_BINDIR@' 23@DATAFILESPATH_LINE@ 24args='@ARGS@' 25timeoutfactor=@TIMEOUTFACTOR@ 26 27mpiexec=${PETSCMPIEXEC:-"@MPIEXEC@"} 28diffexec=${PETSCDIFF:-"${petsc_bindir}/petscdiff"} 29 30. "${config_dir}/petsc_harness.sh" 31 32# The diff flags come from script arguments 33diff_exe="${diffexec} ${diff_flags}" 34mpiexec="${mpiexec} ${mpiexec_flags}" 35""" 36 37footer='petsc_testend "@TESTROOT@" ' 38 39todoline='petsc_report_tapoutput "" "${label}" "TODO @TODOCOMMENT@"' 40skipline='petsc_report_tapoutput "" "${label}" "SKIP @SKIPCOMMENT@"' 41mpitest='petsc_testrun "${mpiexec} -n ${nsize} ${exec} ${args} @SUBARGS@" @REDIRECT_FILE@ ${testname}.err "${label}@LABEL_SUFFIX@" @ERROR@' 42difftest='petsc_testrun "${diff_exe} @OUTPUT_FILE@ @REDIRECT_FILE@" diff-${testname}.out diff-${testname}.out diff-${label}@LABEL_SUFFIX@ ""' 43commandtest='petsc_testrun "@COMMAND@" @REDIRECT_FILE@ ${testname}.err cmd-${label}@LABEL_SUFFIX@ @ERROR@' 44