Bruno,
> I am re-implementing some tests on our solvers (following > https://www.dealii.org/developer/developers/testsuite.html#layoutaddtests) > Right now, it is really easy to test individual applications with a > combination of executable + output + prm file. > We also test with various number of processors. > > However, I was wondering if there was way to test a single executable > with more than one .prm file and corresponding output files > Ex: test.1.prm test.1.output, test.2.prm, test.2.output where test would > be the executable in question. > > Is that something that is feasible in the current framework? > If not, what would be your advice on the way to proceed? I could make > identical executables that instantiate the same class, but that > increases linking time for no reasons. We've generally put the test in a function in the .cc file where that function takes a filename as argument. The main() function then just calls the function with each of the .prm files we have, and the output file will simply contain all of the output of all .prm files concatenated. If you add a .prm file, you'd have to adjust the main() function and the .output file. This might not be the very most elegant solution, but it's worked reasonably well so far. The idea of the same executable (several .cc files all #includeing the same .h file that contains the test code) of course also works -- in the big picture, compile time and link time for tests are not negligible, but also not a terrible burden. Best W. -- ------------------------------------------------------------------------ Wolfgang Bangerth email: bange...@colostate.edu www: http://www.math.colostate.edu/~bangerth/ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/6960291a-3d92-612b-8080-49531370a09f%40colostate.edu.