PlasCom2  1.0
XPACC Multi-physics simluation application
RunTest.H
Go to the documentation of this file.
1 #ifndef __RUN_TEST_H__
7 #define __RUN_TEST_H__
8 
9 namespace ix
10 {
11 
16  {
17  public:
19  : ix::util::ComLineObject()
20  {};
21  RTSComLine(const char *args[])
22  : ix::util::ComLineObject(args)
23  {};
24  void Initialize(){
25  AddOption('h',"help");
26  AddHelp("help","Print out long version of help and exit.");
27  AddOption('v',"verblevel",1,"level");
28  AddHelp("verblevel","Set the verbosity level. (default = 1)");
29  AddOption('o',"output",2,"filename");
30  AddHelp("output","Set the output file to <filename>. (default = stdout)");
31  AddOption('k',"keep");
32  AddHelp("keep","Keep the temporary files around for debugging.");
33  AddOption('l',"list",2,"filename");
34  AddOption('b',"bindir",2,"path");
35  AddHelp("bindir","Set a binary path to <path>. (no default)");
36  AddOption('s',"srcdir",2,"path");
37  AddHelp("srcdir","Set a source path to <path>. (no default)");
38  std::ostringstream Ostr;
39  Ostr << "Set the list file name to <filename>."
40  << "The list file should be a text file with one test name per line.";
41  AddHelp("list",Ostr.str());
42  AddOption('f',"file",2,"filename");
43  AddHelp("file","Run the particular test specified by <filename>.");
44  AddOption('a',"argument",2,"argument");
45  Ostr.str("");
46  Ostr << "Provide an extra argument in <argument> for runtest to pass"
47  << " to the testing script(s).";
48  AddHelp("argument",Ostr.str());
49  // AddOption('n',"name",2,"TestName");
50  // AddHelp("name","Run test by name. (no default) [disabled!]");
51  AddOption('H',"hostname",2,"HostName");
52  AddHelp("host","Set the host to <HostName>. (no default)");
53  AddOption('p',"platforms",2,"filename");
54  AddHelp("platforms","Set the platforms file to <filename>. (default = ./share/Platforms/platforms)");
55  Ostr.str("");
56  Ostr << "Command-line interface for running tests..";
57  _description.assign(Ostr.str());
58  };
59  };
60 
96  int RunTest(int argc,char *argv[]);
97 
98 };
99 #endif
int RunTest(int argc, char *argv[])
Runs test programs and scripts through a standard interface.
Definition: RunTest.C:17
Defines MPI-specific parallel global and program classes.
ComLine object for test running utility.
Definition: RunTest.H:15
std::string _description
application description.
Definition: ComLine.H:73
void AddOption(char s, const std::string &l, int=0)
User interface to describe simple option.
Definition: ComLine.C:295
RTSComLine(const char *args[])
Definition: RunTest.H:21
void Initialize()
virtual function for program specific Initialization.
Definition: RunTest.H:24
Command line processing.
Definition: ComLine.H:62
ComLineObject()
Default constructor.
Definition: ComLine.H:102
void AddHelp(char s, const std::string &help)
Specify usage for an option.
Definition: ComLine.H:227