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

Mark Mitchell mark at codesourcery.com
Tue Apr 5 18:08:47 UTC 2005


Neilen Marais wrote:
> Hi Stefan
> 
> On Tue, 2005-04-05 at 08:58 -0400, Stefan Seefeld wrote: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 ?
> 
> 
> Yes, that is what I have in mind. What I'd like is something that has a
> similar interface to the curent python tests. IOW, the f90 code is
> included in the test, and then QMTest automatically compiles/links it as
> neccesary. 

Some of the DejaGNU emulation code in QMTest might be useful in this 
respect.  That would allow you to actually store your tests as 
individual Fortran files; QMTest then will automatically 
compile/link/run each test.  Adding a new test is then as simple as 
dropping in a new source file.

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304



More information about the qmtest mailing list