[qmtest] Using qmtest with loadleveler/pbs etc.
Stefan Seefeld
stefan at codesourcery.com
Fri Nov 25 14:11:15 UTC 2005
Viral Shah wrote:
> What I need to do is run parallel programs that students write for
> assignments
> and provide them a qmtest harness for testing. However, these are
> parallel programs,
> which will quite likely be run using PBS or loadleveler (depending on
> the machine
> being used).
Fine.
> So, the standard output gets written to a file when the job gets
> completed.
> Can qmtest integrate with these batch schedulers now ? If not, how
> would I go about
> integrating them into qmtest ?
I can't see any reason this should not work. You will need to write
your own 'test class', though:
http://www.codesourcery.com/public/qmtest/qm-2.3/manual.html/sec-writing-test-classes.html
The 'Run' method would execute whatever mechanism you use to run your
applications, and then read and validate the output from the generated
output file.
Further, if there are any preparatory steps to be performed once for
multiple steps (such as setting up MPI demons etc.) you may consider
doing this in a 'Resource' class:
http://www.codesourcery.com/public/qmtest/qm-2.3/manual.html/sec-qmtest-concepts.html#sec-resources
and then make your tests use that. Let me know if you need more help !
Regards,
Stefan
More information about the qmtest
mailing list