aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzzy-test/fuzzytester.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-02-28 11:27:57 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2014-02-28 12:02:28 +0100
commit303abdb779b0f803f59b0b8428f5feb0a5d576b0 (patch)
treef77027b87102c46a4ad402d8273e31a5d3d65aab /tests/fuzzy-test/fuzzytester.h
parent6836c3ff836bd07739c72eab778e988303a8832f (diff)
Make fuzzy test more thorough.
"Successful" incremental builds can also be an error, if a clean build fails for the same project. Change-Id: I9f52d840fbda53a906c039e1ee0db2c656db6f8e Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/fuzzy-test/fuzzytester.h')
-rw-r--r--tests/fuzzy-test/fuzzytester.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fuzzy-test/fuzzytester.h b/tests/fuzzy-test/fuzzytester.h
index 2f002cd0a..9934aa679 100644
--- a/tests/fuzzy-test/fuzzytester.h
+++ b/tests/fuzzy-test/fuzzytester.h
@@ -33,6 +33,10 @@
#include <exception>
+QT_BEGIN_NAMESPACE
+class QStringList;
+QT_END_NAMESPACE
+
class TestError {
public:
TestError(const QString &errorMessage) : errorMessage(errorMessage) {}
@@ -59,6 +63,8 @@ private:
void runGit(const QStringList &arguments, QString *output = 0);
bool runQbs(const QString &buildDir, const QString &command, QString *errorOutput = 0);
void removeDir(const QString &dir);
+ bool doCleanBuild();
+ void throwIncrementalBuildError(const QString &message, const QStringList &commitSequence);
static QString defaultBuildDir();