ElmerFoamFSI  2.0
ElmerFoamFSI is fluid-solid interaction simulation application built up from OpenFOAM CFD and Elmer CSM coupled through the IMPACT multiphysics software integration infrastructure.
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Groups Pages
TestElmerModuleDriver.H
Go to the documentation of this file.
1 #ifndef __TEST_ELMERMODULEDRIVER_H__
7 #define __TEST_ELMERMODULEDRIVER_H__
8 
10 
11 namespace ElmerModuleDriver{
12 
16  class TestComLine : public IRAD::Util::ComLineObject
17  {
18  public:
20  : IRAD::Util::ComLineObject()
21  {};
22  TestComLine(const char *args[])
23  : IRAD::Util::ComLineObject(args)
24  {};
25  void Initialize(){
26  AddOption('h',"help");
27  AddHelp("help","Print out long version of help and exit.");
28  AddOption('v',"verblevel",1,"level");
29  AddHelp("verblevel","Set the verbosity level. (default = 0)");
30  AddOption('o',"output",2,"filename");
31  AddHelp("output","Set the output file to <filename>. (default = stdout)");
32  AddOption('l',"list",2,"filename");
33  std::ostringstream Ostr;
34  Ostr << "Set the list file name to <filename>. (no default). "
35  << "The list file should be a text file with one test name per line.";
36  AddHelp("list",Ostr.str());
37  AddOption('n',"name",2,"TestName");
38  AddHelp("name","Run test by name. (no default)");
39  AddOption('s',"source",2,"path");
40  AddHelp("source","The path to the testing source directory.");
41  Ostr.str("");
42  Ostr << "Command-line interface for the test of the ElmerModuleDriver.";
43  _description.assign(Ostr.str());
44  };
45  };
46 };
47 #endif
Testing object for ElmerModuleDriver.
ComLineObject for ElmerModuleDriver testing command-line interface.