Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8ef42cce
Commit
8ef42cce
authored
Feb 16, 2011
by
Bill King
Browse files
PluginManager: add -test all capability for internal testing.
parent
884a6222
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/extensionsystem/optionsparser.cpp
View file @
8ef42cce
...
...
@@ -107,14 +107,21 @@ bool OptionsParser::checkForTestOption()
if
(
m_currentArg
!=
QLatin1String
(
TEST_OPTION
))
return
false
;
if
(
nextToken
(
RequiredToken
))
{
PluginSpec
*
spec
=
m_pmPrivate
->
pluginByName
(
m_currentArg
);
if
(
!
spec
)
{
if
(
m_errorString
)
*
m_errorString
=
QCoreApplication
::
translate
(
"PluginManager"
,
"The plugin '%1' does not exist."
).
arg
(
m_currentArg
);
m_hasError
=
true
;
if
(
m_currentArg
==
"all"
)
{
foreach
(
PluginSpec
*
spec
,
m_pmPrivate
->
pluginSpecs
)
{
if
(
spec
)
m_pmPrivate
->
testSpecs
.
append
(
spec
);
}
}
else
{
m_pmPrivate
->
testSpecs
.
append
(
spec
);
PluginSpec
*
spec
=
m_pmPrivate
->
pluginByName
(
m_currentArg
);
if
(
!
spec
)
{
if
(
m_errorString
)
*
m_errorString
=
QCoreApplication
::
translate
(
"PluginManager"
,
"The plugin '%1' does not exist."
).
arg
(
m_currentArg
);
m_hasError
=
true
;
}
else
{
m_pmPrivate
->
testSpecs
.
append
(
spec
);
}
}
}
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment