Reactos

[ROSAUTOTEST] Add option to list all testable modules

+19 -1
+6 -1
modules/rostests/rosautotest/CConfiguration.cpp
··· 21 21 m_PrintToConsole(true), 22 22 m_RepeatCount(1), 23 23 m_Shutdown(false), 24 - m_Submit(false) 24 + m_Submit(false), 25 + m_ListModules(false) 25 26 { 26 27 WCHAR WindowsDirectory[MAX_PATH]; 27 28 WCHAR Interactive[32]; ··· 98 99 } 99 100 100 101 m_RepeatCount = tmp_RepeatCount; 102 + break; 103 + 104 + case 'l': 105 + m_ListModules = true; 101 106 break; 102 107 103 108 default:
+2
modules/rostests/rosautotest/CConfiguration.h
··· 15 15 unsigned long m_RepeatCount; 16 16 bool m_Shutdown; 17 17 bool m_Submit; 18 + bool m_ListModules; 18 19 string m_Comment; 19 20 wstring m_Module; 20 21 string m_Test; ··· 35 36 bool IsInteractive() const { return m_IsInteractive; } 36 37 bool IsReactOS() const { return m_IsReactOS; } 37 38 unsigned long GetRepeatCount() const { return m_RepeatCount; } 39 + bool ListModulesOnly() const { return m_ListModules; } 38 40 const string& GetComment() const { return m_Comment; } 39 41 const wstring& GetModule() const { return m_Module; } 40 42 const string& GetTest() const { return m_Test; }
+10
modules/rostests/rosautotest/CWineTest.cpp
··· 213 213 { 214 214 while(!m_CurrentFile.empty() || GetNextFile()) 215 215 { 216 + /* The user asked for a list of all modules */ 217 + if (Configuration.ListModulesOnly()) 218 + { 219 + std::stringstream ss; 220 + ss << "Module: " << UnicodeToAscii(m_CurrentFile) << endl; 221 + m_CurrentFile.clear(); 222 + StringOut(ss.str()); 223 + continue; 224 + } 225 + 216 226 try 217 227 { 218 228 while(GetNextTest())
+1
modules/rostests/rosautotest/main.cpp
··· 32 32 << " /w - Submit the results to the webservice." << endl 33 33 << " Requires a \"rosautotest.ini\" with valid login data." << endl 34 34 << " Incompatible with the /r option." << endl 35 + << " /l - List all modules that would run." << endl 35 36 << endl 36 37 << " module:" << endl 37 38 << " The module to be tested (i.e. \"advapi32\")" << endl