forked from qt-creator/qt-creator
AutoTest: Provide DebuggableTestConfiguration
Preparation for easier distinguishing arguments for performing normal run versus debug run. Change-Id: I41cfa7fca5730f721b5b6a980c82c015f9e7f914 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -103,5 +103,25 @@ private:
|
||||
TestRunConfiguration *m_runConfig = 0;
|
||||
};
|
||||
|
||||
class DebuggableTestConfiguration : public TestConfiguration
|
||||
{
|
||||
public:
|
||||
enum RunMode
|
||||
{
|
||||
Run,
|
||||
Debug
|
||||
};
|
||||
|
||||
explicit DebuggableTestConfiguration(RunMode runMode = Run) : m_runMode(runMode) {}
|
||||
~DebuggableTestConfiguration() {}
|
||||
|
||||
void setRunMode(RunMode mode) { m_runMode = mode; }
|
||||
RunMode runMode() const { return m_runMode; }
|
||||
|
||||
|
||||
private:
|
||||
RunMode m_runMode;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user