mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 00:27:13 +00:00
[ROSAUTOTEST] Add option to list all testable modules
This commit is contained in:
parent
6859348aea
commit
ff6b138117
4 changed files with 19 additions and 1 deletions
|
@ -21,7 +21,8 @@ CConfiguration::CConfiguration()
|
||||||
m_PrintToConsole(true),
|
m_PrintToConsole(true),
|
||||||
m_RepeatCount(1),
|
m_RepeatCount(1),
|
||||||
m_Shutdown(false),
|
m_Shutdown(false),
|
||||||
m_Submit(false)
|
m_Submit(false),
|
||||||
|
m_ListModules(false)
|
||||||
{
|
{
|
||||||
WCHAR WindowsDirectory[MAX_PATH];
|
WCHAR WindowsDirectory[MAX_PATH];
|
||||||
WCHAR Interactive[32];
|
WCHAR Interactive[32];
|
||||||
|
@ -100,6 +101,10 @@ CConfiguration::ParseParameters(int argc, wchar_t* argv[])
|
||||||
m_RepeatCount = tmp_RepeatCount;
|
m_RepeatCount = tmp_RepeatCount;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'l':
|
||||||
|
m_ListModules = true;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw CInvalidParameterException();
|
throw CInvalidParameterException();
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ private:
|
||||||
unsigned long m_RepeatCount;
|
unsigned long m_RepeatCount;
|
||||||
bool m_Shutdown;
|
bool m_Shutdown;
|
||||||
bool m_Submit;
|
bool m_Submit;
|
||||||
|
bool m_ListModules;
|
||||||
string m_Comment;
|
string m_Comment;
|
||||||
wstring m_Module;
|
wstring m_Module;
|
||||||
string m_Test;
|
string m_Test;
|
||||||
|
@ -35,6 +36,7 @@ public:
|
||||||
bool IsInteractive() const { return m_IsInteractive; }
|
bool IsInteractive() const { return m_IsInteractive; }
|
||||||
bool IsReactOS() const { return m_IsReactOS; }
|
bool IsReactOS() const { return m_IsReactOS; }
|
||||||
unsigned long GetRepeatCount() const { return m_RepeatCount; }
|
unsigned long GetRepeatCount() const { return m_RepeatCount; }
|
||||||
|
bool ListModulesOnly() const { return m_ListModules; }
|
||||||
const string& GetComment() const { return m_Comment; }
|
const string& GetComment() const { return m_Comment; }
|
||||||
const wstring& GetModule() const { return m_Module; }
|
const wstring& GetModule() const { return m_Module; }
|
||||||
const string& GetTest() const { return m_Test; }
|
const string& GetTest() const { return m_Test; }
|
||||||
|
|
|
@ -213,6 +213,16 @@ CWineTest::GetNextTestInfo()
|
||||||
{
|
{
|
||||||
while(!m_CurrentFile.empty() || GetNextFile())
|
while(!m_CurrentFile.empty() || GetNextFile())
|
||||||
{
|
{
|
||||||
|
/* The user asked for a list of all modules */
|
||||||
|
if (Configuration.ListModulesOnly())
|
||||||
|
{
|
||||||
|
std::stringstream ss;
|
||||||
|
ss << "Module: " << UnicodeToAscii(m_CurrentFile) << endl;
|
||||||
|
m_CurrentFile.clear();
|
||||||
|
StringOut(ss.str());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
while(GetNextTest())
|
while(GetNextTest())
|
||||||
|
|
|
@ -32,6 +32,7 @@ IntPrintUsage()
|
||||||
<< " /w - Submit the results to the webservice." << endl
|
<< " /w - Submit the results to the webservice." << endl
|
||||||
<< " Requires a \"rosautotest.ini\" with valid login data." << endl
|
<< " Requires a \"rosautotest.ini\" with valid login data." << endl
|
||||||
<< " Incompatible with the /r option." << endl
|
<< " Incompatible with the /r option." << endl
|
||||||
|
<< " /l - List all modules that would run." << endl
|
||||||
<< endl
|
<< endl
|
||||||
<< " module:" << endl
|
<< " module:" << endl
|
||||||
<< " The module to be tested (i.e. \"advapi32\")" << endl
|
<< " The module to be tested (i.e. \"advapi32\")" << endl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue