📄 runtests.in
字号:
#! /bin/sh## Run some of the tests. If any arguments are provided, pass them to the# test programs.## -mvhome is needed for the ANL SP, and is ignored by othersargs=@MPIRUNARGS@device=@DEVICE@top_srcdir=@top_srcdir@srcdir=@srcdir@MPICH_VERSION=@MPICH_VERSION@STOPFILE=$HOME/.stopmpichtestsmpirun=${MPIRUN:-"@MPIRUN@"}MAKE="@MAKE@"MPIRUNMVBACK="@MPIRUNMVBACK@"## Load basic procedures. ${top_srcdir}/runbase## Set mpirun to the name/path of the mpirun programFindMPIRUNif [ -z "$mpirun" ] ; then echo "No mpirun in path. Testing cannot proceed." exit 1fi## If the programs are not available, run make.runtests=1makeeach=0writesummaryfile=noquiet=0check_at_once=1MAKE="@MAKE@"for arg in "$@" ; do case $arg in -checkonly) runtests=0 ;; -margs=*) margs=`echo $arg | sed 's/-margs=//'` args="$args $margs" ;; -summaryfile=*) writesummaryfile=yes summaryfile=`echo A$arg | sed 's/A-summaryfile=//'` ;; -echo) set -x ;; -small) makeeach=1 ;; -quiet) shift quiet=1 ;; -atend) check_at_once=0 ;; -help|-u) echo "runtests [-checkonly] [-margs='...'] [-atend]" echo "run tests in this directory. If -checkonly set, just run" echo "the differences check (do NO rerun the test programs)." echo "If -margs is used, these options are passed to mpirun." echo "If -small is used, the examples are built, run, and deleted." echo "If -atend is used, the success of the tests is checked only" echo "at the end of the test rather than also after each test." exit 1 ;; *) if test -n "$arg" ; then echo "Passing remaining arguments to programs ($*)" break fi ;; esacdone# If the programs are not available, run make.if [ ! -x sendrecv -a $makeeach = 0 -a $runtests = 1 ] ; then $MAKE defaultfitestfiles=""if [ $runtests = 1 ] ; thenecho '**** Testing MPI Profiling routines ****'RunTest ptest 1 "**** Testing MPI_Pcontrol ****"RunTest colluses 4 "**** Testing for PMPI in Allreduce ****"else # Just run checks testfiles=`echo *.out` if test "$testfiles" = "*.out" ; then echo "No output files remain from previous test!" exit 1 fifi#echo '*** Checking for differences from expected output ***'CheckAllOutput profile.diffexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -