aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzzy-test/commandlineparser.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-17 11:14:10 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-17 10:27:03 +0000
commit3ff29a66b153c1a76d476ff91a26db931df5de89 (patch)
tree05bf2055128d5be42e2be70095e82fb3314e41d3 /tests/fuzzy-test/commandlineparser.h
parent78516687e1bd7aef305e31f4596750f081bbe641 (diff)
fuzzy tester: Allow to run for a given time span.
This is helpful e.g. for letting the tool run overnight. Change-Id: I03fc9942dff35b6f9c4f966ab6795fede49f0ee6 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/fuzzy-test/commandlineparser.h')
-rw-r--r--tests/fuzzy-test/commandlineparser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fuzzy-test/commandlineparser.h b/tests/fuzzy-test/commandlineparser.h
index 32f0d9cc6..31ea474e0 100644
--- a/tests/fuzzy-test/commandlineparser.h
+++ b/tests/fuzzy-test/commandlineparser.h
@@ -55,16 +55,19 @@ public:
QString profile() const { return m_profile; }
QString startCommit() const { return m_startCommit; }
+ int maxDurationInMinutes() const { return m_maxDuration; }
QString usageString() const;
private:
void assignOptionArgument(const QString &option, QString &argument);
+ void parseDuration();
QStringList m_commandLine;
QString m_command;
QString m_profile;
QString m_startCommit;
+ int m_maxDuration;
};
#endif // Include guard.