test application: Allow to skip argument parsing

This commit is contained in:
Martchus 2017-11-12 16:17:08 +01:00
parent 39f69f94d7
commit cc5d6052f5
1 changed files with 24 additions and 22 deletions

View File

@ -67,6 +67,8 @@ TestApplication::TestApplication(int argc, char **argv)
readFallbackTestfilePathFromSrcRef();
}
// handle specified arguments (if present)
if (argc && argv) {
// setup argument parser
for (Argument *arg : initializer_list<Argument *>{ &m_testFilesPathArg, &m_applicationPathArg, &m_workingDirArg }) {
arg->setRequiredValueCount(1);
@ -89,9 +91,9 @@ TestApplication::TestApplication(int argc, char **argv)
// print help
if (m_helpArg.isPresent()) {
m_valid = false;
exit(0);
}
}
// handle path for testfiles and working-copy
cerr << "Directories used to search for testfiles:" << endl;