forked from qt-creator/qt-creator
PluginManager: add -test all capability for internal testing.
This commit is contained in:
@@ -107,6 +107,12 @@ bool OptionsParser::checkForTestOption()
|
||||
if (m_currentArg != QLatin1String(TEST_OPTION))
|
||||
return false;
|
||||
if (nextToken(RequiredToken)) {
|
||||
if(m_currentArg == "all") {
|
||||
foreach(PluginSpec *spec, m_pmPrivate->pluginSpecs) {
|
||||
if (spec)
|
||||
m_pmPrivate->testSpecs.append(spec);
|
||||
}
|
||||
} else {
|
||||
PluginSpec *spec = m_pmPrivate->pluginByName(m_currentArg);
|
||||
if (!spec) {
|
||||
if (m_errorString)
|
||||
@@ -117,6 +123,7 @@ bool OptionsParser::checkForTestOption()
|
||||
m_pmPrivate->testSpecs.append(spec);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user