[qmtest] Fortran unit tests with QMTest, anyone doing them?

Stefan Seefeld stefan at codesourcery.com
Tue Apr 5 12:58:44 UTC 2005


Neilen Marais wrote:
> Hi!
> 
> I'm interested in using QMTest to do Fortran 90 unit tests. I am
> thinking of writing a QMTest class to do this. That would be nice, since
> then the f90 code could be evaluated directly, instead of having to do
> an exec test to call a driver etc.

I'm not sure I understand what you mean by 'directly'. Are you saying you
intend to load your compiled fortran code as a python extension module and
run it in-process ? Why would you do that ?

Typically QMTest would execute a compiler to generate the binary and then
execute it with an 'exec'-like call, allowing the user to validate return
value, as well as output on stdout/stderr.
One of the advantages of such an 'indirect' test is robustness, as the
qmtest process itself would not be compromized by crashes in any of the
test binaries it executes.

We have been thinking about making the compilation more convenient, for
example by letting users specify variables such as CC/CFLAGS/CLIBS/... or,
in your case, F90/F90FlAGS/F90LIBS/.... Would that be helpful ?

Regards,
		Stefan



More information about the qmtest mailing list