Commit 8ef42cce authored by Bill King's avatar Bill King
Browse files

PluginManager: add -test all capability for internal testing.

parent 884a6222
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment