test application: Allow to skip argument parsing
This commit is contained in:
parent
39f69f94d7
commit
cc5d6052f5
|
@ -67,6 +67,8 @@ TestApplication::TestApplication(int argc, char **argv)
|
||||||
readFallbackTestfilePathFromSrcRef();
|
readFallbackTestfilePathFromSrcRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle specified arguments (if present)
|
||||||
|
if (argc && argv) {
|
||||||
// setup argument parser
|
// setup argument parser
|
||||||
for (Argument *arg : initializer_list<Argument *>{ &m_testFilesPathArg, &m_applicationPathArg, &m_workingDirArg }) {
|
for (Argument *arg : initializer_list<Argument *>{ &m_testFilesPathArg, &m_applicationPathArg, &m_workingDirArg }) {
|
||||||
arg->setRequiredValueCount(1);
|
arg->setRequiredValueCount(1);
|
||||||
|
@ -89,9 +91,9 @@ TestApplication::TestApplication(int argc, char **argv)
|
||||||
|
|
||||||
// print help
|
// print help
|
||||||
if (m_helpArg.isPresent()) {
|
if (m_helpArg.isPresent()) {
|
||||||
m_valid = false;
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// handle path for testfiles and working-copy
|
// handle path for testfiles and working-copy
|
||||||
cerr << "Directories used to search for testfiles:" << endl;
|
cerr << "Directories used to search for testfiles:" << endl;
|
||||||
|
|
Loading…
Reference in New Issue