3 # Run some of the tests. If any arguments are provided, pass them to the
6 # -mvhome is needed for the ANL SP, and is ignored by others
10 STOPFILE=${MPITEST_STOPTEST:-"$HOME/.stopmpichtests"}
12 MAKE="make --no-print-directory"
17 # Set mpirun to the name/path of the mpirun program
19 #if [ -z "$mpirun" ] ; then
20 # echo "No mpirun in path. Testing cannot proceed."
24 # If the programs are not available, run make.
31 MAKE="make --no-print-directory"
35 basedir=`echo $arg | sed 's/-basedir=//'`
38 srcdir=`echo $arg | sed 's/-srcdir=//'`
41 have_fortran=`echo $arg | sed 's/-fort=//'`
47 margs=`echo $arg | sed 's/-margs=//'`
52 summaryfile=`echo A$arg | sed 's/A-summaryfile=//'`
68 echo "runtests [-checkonly] [-margs='...'] [-atend]"
69 echo "run tests in this directory. If -checkonly set, just run"
70 echo "the differences check (do NO rerun the test programs)."
71 echo "If -margs is used, these options are passed to mpirun."
72 echo "If -small is used, the examples are built, run, and deleted."
73 echo "If -atend is used, the success of the tests is checked only"
74 echo "at the end of the test rather than also after each test."
78 if test -n "$arg" ; then
79 echo "Passing remaining arguments to programs ($*)"
87 # Load basic procedures
88 . ${srcdir}/../runbase
90 mpirun=" ${basedir}/bin/smpirun -platform ${srcdir}/../../../../examples/msg/small_platform_with_routers.xml -hostfile ${srcdir}/../../hostfile --log=root.thres:critical"
91 # If the programs are not available, run make.
92 #if [ ! -x sendrecv -a $makeeach = 0 -a $runtests = 1 ] ; then
97 if [ $runtests = 1 ] ; then
98 echo '**** Testing MPI Profiling routines ****'
99 #just a test for MPI_Pcontrol, which is not implemented
100 RunTest ptest 1 "**** Testing MPI_Pcontrol ****"
102 RunTest colluses 4 "**** Testing for PMPI in Allreduce ****"
106 testfiles=`echo *.out`
107 if test "$testfiles" = "*.out" ; then
108 echo "No output files remain from previous test!"
113 echo '*** Checking for differences from expected output ***'
114 CheckAllOutput profile.diff