Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TestRocstar.H
Go to the documentation of this file.
1 #ifndef __TEST_ROCSTAR_H__
7 #define __TEST_ROCSTAR_H__
8 
9 #include "RocstarTest.H"
10 
11 namespace Rocstar{
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  Ostr.str("");
40  Ostr << "Command-line interface for the test of the Rocstar.";
41  _description.assign(Ostr.str());
42  };
43  };
44 };
45 #endif
TestComLine(const char *args[])
Definition: TestRocstar.H:22
ComLineObject for Rocstar testing command-line interface.
Definition: TestRocstar.H:16
Testing object for Rocstar.