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
9 top_srcdir=/home/degomme/Downloads/mpich-test
10 srcdir=/home/degomme/Downloads/mpich-test/profile
12 STOPFILE=${MPITEST_STOPTEST:-"$HOME/.stopmpichtests"}
14 MAKE="make --no-print-directory"
17 # Load basic procedures
18 . ${top_srcdir}/runbase
20 # Set mpirun to the name/path of the mpirun program
22 #if [ -z "$mpirun" ] ; then
23 # echo "No mpirun in path. Testing cannot proceed."
27 # If the programs are not available, run make.
34 MAKE="make --no-print-directory"
38 basedir=`echo $arg | sed 's/-basedir=//'`
41 srcdir=`echo $arg | sed 's/-srcdir=//'`
44 have_fortran=`echo $arg | sed 's/-fort=//'`
50 margs=`echo $arg | sed 's/-margs=//'`
55 summaryfile=`echo A$arg | sed 's/A-summaryfile=//'`
71 echo "runtests [-checkonly] [-margs='...'] [-atend]"
72 echo "run tests in this directory. If -checkonly set, just run"
73 echo "the differences check (do NO rerun the test programs)."
74 echo "If -margs is used, these options are passed to mpirun."
75 echo "If -small is used, the examples are built, run, and deleted."
76 echo "If -atend is used, the success of the tests is checked only"
77 echo "at the end of the test rather than also after each test."
81 if test -n "$arg" ; then
82 echo "Passing remaining arguments to programs ($*)"
88 mpirun=" ${basedir}/bin/smpirun -platform ${srcdir}/../../../../examples/msg/small_platform_with_routers.xml -hostfile ${srcdir}/../../hostfile --log=root.thres:critical"
89 # If the programs are not available, run make.
90 if [ ! -x sendrecv -a $makeeach = 0 -a $runtests = 1 ] ; then
95 if [ $runtests = 1 ] ; then
96 echo '**** Testing MPI Profiling routines ****'
97 #just a test for MPI_Pcontrol, which is not implemented
98 RunTest ptest 1 "**** Testing MPI_Pcontrol ****"
100 RunTest colluses 4 "**** Testing for PMPI in Allreduce ****"
104 testfiles=`echo *.out`
105 if test "$testfiles" = "*.out" ; then
106 echo "No output files remain from previous test!"
111 echo '*** Checking for differences from expected output ***'
112 CheckAllOutput profile.diff