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"}
13 mpirun="smpirun -hostfile /home/degomme/Documents/hostfile_griffon -platform /home/degomme/Documents/griffon.xml --log=root.thres:critical"
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.
33 MAKE="make --no-print-directory"
40 margs=`echo $arg | sed 's/-margs=//'`
45 summaryfile=`echo A$arg | sed 's/A-summaryfile=//'`
61 echo "runtests [-checkonly] [-margs='...'] [-atend]"
62 echo "run tests in this directory. If -checkonly set, just run"
63 echo "the differences check (do NO rerun the test programs)."
64 echo "If -margs is used, these options are passed to mpirun."
65 echo "If -small is used, the examples are built, run, and deleted."
66 echo "If -atend is used, the success of the tests is checked only"
67 echo "at the end of the test rather than also after each test."
71 if test -n "$arg" ; then
72 echo "Passing remaining arguments to programs ($*)"
79 # If the programs are not available, run make.
80 if [ ! -x sendrecv -a $makeeach = 0 -a $runtests = 1 ] ; then
85 if [ $runtests = 1 ] ; then
86 echo '**** Testing MPI Profiling routines ****'
87 #just a test for MPI_Pcontrol, which is not implemented
88 RunTest ptest 1 "**** Testing MPI_Pcontrol ****"
90 RunTest colluses 4 "**** Testing for PMPI in Allreduce ****"
94 testfiles=`echo *.out`
95 if test "$testfiles" = "*.out" ; then
96 echo "No output files remain from previous test!"
101 echo '*** Checking for differences from expected output ***'
102 CheckAllOutput profile.diff