Jim,

I commented out all references to the pio module and compiled with the following steps (using ifort):

% $PFUNIT/bin/pFUnitParser.py test_pio.pf test_pio.F90
% mpif90 -DUSE_MPI $PFUNIT/include/driver.F90 -I$PFUNIT/mod -L$PFUNIT/lib -lpfunit test_pio.F90

% mpirun -np 8 ./a.out

.
Time:         0.004 seconds
  
 OK
 (1 test)

-------------------

I suspect you may not have used the -DUSE_MPI flag for the driver, in which case MPI was not initialized.  With my environment I get "(0 test)" once for each process, but your mpirun may have a different behavior.

Essentially you end up running the tests in a "serial" context, which will not launch an MPI test.   But it would be better if it raised an exception.   Not entirely certain if that would actually help anyone diagnose what went wrong though.

Cheers,

- Tom





On Nov 22, 2013, at 2:01 PM, Jim Edwards <jedwards@ucar.edu> wrote:

Tar file attached,  I do have the testSuites.inc




On Fri, Nov 22, 2013 at 11:53 AM, Tom Clune <Thomas.L.Clune@nasa.gov> wrote:
Hi Jim,

If your example is simple enough, perhaps you could send it as a tarball so that I can take a closer look?

The most obvious guess I have at this point is that you do not have a testSuites.inc file that the main driver uses to pull in all of your test suite objects from the various files.   The 1.0 release of pfunit had automated this step to reduce human error, but there were a number of downsides including perversely complicated Makefiles and reduced user control for running subsets.

Cheers,

- Tom


On Nov 22, 2013, at 1:49 PM, Jim Edwards <jedwards@ucar.edu> wrote:

I've written my first simple pfunit test which very much follows the pattern of the
beforeAfter.pf test in Examples/MPI_Halo/Semi-Automatic/tests  I've tried that test and it appears to work correctly.  

But when I try to run my test it never seems to invoke my before,after or mpiTest routines -
it outputs:

 Time:         0.008 seconds
 OK
 (0 test)

from all of the mpi ranks and that's all I can get it to do.

It all appears to compile and link correctly - where am I going wrong?
-
Jim Edwards

CESM Software Engineering Group
National Center for Atmospheric Research
Boulder, CO
303-497-1842
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk_______________________________________________
Pfunit-support mailing list
Pfunit-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pfunit-support

Thomas Clune, Ph. D.  <Thomas.L.Clune@nasa.gov>
Chief, Software Systems Support Office Code 610.3
NASA GSFC 301-286-4635
MS 610.8 B33-C128 <http://ssso.gsfc.nasa.gov>
Greenbelt, MD 20771








--
Jim Edwards

CESM Software Engineering Group
National Center for Atmospheric Research
Boulder, CO
303-497-1842
<mypfunittest.tgz>

Thomas Clune, Ph. D.  <Thomas.L.Clune@nasa.gov>
Chief, Software Systems Support Office Code 610.3
NASA GSFC 301-286-4635
MS 610.8 B33-C128 <http://ssso.gsfc.nasa.gov>
Greenbelt, MD 20771