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))
|
if (m_currentArg != QLatin1String(TEST_OPTION))
|
||||||
return false;
|
return false;
|
||||||
if (nextToken(RequiredToken)) {
|
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);
|
PluginSpec *spec = m_pmPrivate->pluginByName(m_currentArg);
|
||||||
if (!spec) {
|
if (!spec) {
|
||||||
if (m_errorString)
|
if (m_errorString)
|
||||||
@@ -117,6 +123,7 @@ bool OptionsParser::checkForTestOption()
|
|||||||
m_pmPrivate->testSpecs.append(spec);
|
m_pmPrivate->testSpecs.append(spec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user