forked from qt-creator/qt-creator
AutoTest: Introduce TestToolConfiguration
Preparation for having code based and build system based test items. Task-number: QTCREATORBUG-23332 Change-Id: I4d21142d74b40b988d82c69d02f5c6633c8cebe4 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
|
||||
virtual TestOutputReader *outputReader(const QFutureInterface<TestResultPtr> &fi,
|
||||
QProcess *app) const = 0;
|
||||
virtual Utils::Environment filteredEnvironment(const Utils::Environment &original) const = 0;
|
||||
virtual Utils::Environment filteredEnvironment(const Utils::Environment &original) const;
|
||||
|
||||
ITestBase *testBase() const { return m_testBase; }
|
||||
void setProject(ProjectExplorer::Project *project) { m_project = project; }
|
||||
@@ -145,4 +145,15 @@ private:
|
||||
bool m_mixedDebugging = false;
|
||||
};
|
||||
|
||||
class TestToolConfiguration : public ITestConfiguration
|
||||
{
|
||||
public:
|
||||
explicit TestToolConfiguration(ITestBase *testBase) : ITestConfiguration(testBase) {}
|
||||
Utils::CommandLine commandLine() const { return m_commandLine; }
|
||||
void setCommandLine(const Utils::CommandLine &cmdline) { m_commandLine = cmdline; }
|
||||
|
||||
private:
|
||||
Utils::CommandLine m_commandLine;
|
||||
};
|
||||
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user