Changeset View
Changeset View
Standalone View
Standalone View
src/test/main.cpp
Show All 20 Lines | CustomArgumentsFixture() { | ||||
const std::string testsuitename = "-testsuitename"; | const std::string testsuitename = "-testsuitename"; | ||||
const std::set<std::string> testArgs = { | const std::set<std::string> testArgs = { | ||||
testsuitename, | testsuitename, | ||||
"-phononactivationtime", | "-phononactivationtime", | ||||
}; | }; | ||||
for (const auto &arg : testArgs) { | for (const auto &arg : testArgs) { | ||||
gArgs.AddArg(arg, "", ArgsManager::ALLOW_ANY, false, | gArgs.AddArg(arg, "", ArgsManager::ALLOW_ANY, | ||||
OptionsCategory::HIDDEN); | OptionsCategory::HIDDEN); | ||||
} | } | ||||
auto &master_test_suite = utf::master_test_suite(); | auto &master_test_suite = utf::master_test_suite(); | ||||
if (!gArgs.ParseParameters(master_test_suite.argc, | if (!gArgs.ParseParameters(master_test_suite.argc, | ||||
master_test_suite.argv, error)) { | master_test_suite.argv, error)) { | ||||
throw utf::setup_error(error); | throw utf::setup_error(error); | ||||
} | } | ||||
Show All 9 Lines |