27typedef boost::program_options::options_description
Syntax;
28typedef boost::program_options::variables_map
VarMap;
30namespace op = boost::program_options;
47 : syntax(
"Run a collection of test cases. Supported parameters"),
51 (
"help,h",
"produce help message")
53 "the group (selection) of testcases to execute")
54 (
"describe", op::bool_switch(),
55 "enumerate all testcases in this Suite in a format usable with ./test.sh.")
56 (
"seed", op::value<uint64_t>(),
57 "the group (selection) of testcases to execute")
58 (
"id", op::value<VectS>(),
59 "an individual testcase to be called.\nIf not specified, run all.")
63 op::positional_options_description posopt;
66 op::parsed_options parsed =
67 op::command_line_parser (cmdline)
77 cmdline = op::collect_unrecognized(parsed.options, op::include_positional);
Abstraction of the usual int argc, int** argv-Commandline, to be able to treat it as a vector of stri...
static const string ALLGROUP
"magic" groupID containing all registered testcases
Support for selecting and configuring testcases via commandline arguments.
const string getTestgroup()
std::optional< uint64_t > optSeed()
bool handleHelpRequest()
handles the –help switch by printing a syntax description
boost::program_options::variables_map parameters
boost::program_options::options_description syntax
TestOption(lib::Cmdline &cmdline)
set up an options parser to use the current commandline.
Lumiera error handling (C++ interface).
Test runner and basic definitions for tests.
ostream & operator<<(ostream &os, const TestOption &to)
for outputting the help messages.
Building and running a suite of tests, implemented as test classes.
boost::program_options::variables_map VarMap
boost::program_options::options_description Syntax
Commandline options for our unittest test-suite executable.