From aa9728450cc515c66545323646c66d826a1af50a Mon Sep 17 00:00:00 2001 From: aavit Date: Mon, 13 Aug 2012 14:13:40 +0200 Subject: Misc. updates to the lancelot autotest framework Moving more logic into the protocol and framework, easening the burden on the autotest implementation. Implementing several new features in the server and report, like fuzzy matching and static baselines. Change-Id: Iaf070918195ae05767808a548f019d09d9d5f8c0 Reviewed-by: Paul Olav Tvete --- tests/baselineserver/shared/baselineprotocol.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'tests/baselineserver/shared/baselineprotocol.h') diff --git a/tests/baselineserver/shared/baselineprotocol.h b/tests/baselineserver/shared/baselineprotocol.h index 61feaa34a9..a5f873e3d5 100644 --- a/tests/baselineserver/shared/baselineprotocol.h +++ b/tests/baselineserver/shared/baselineprotocol.h @@ -55,6 +55,7 @@ #define FileFormat "png" +extern const QString PI_Project; extern const QString PI_TestCase; extern const QString PI_HostName; extern const QString PI_HostAddress; @@ -111,7 +112,9 @@ public: Ok = 0, BaselineNotFound = 1, IgnoreItem = 2, - Mismatch = 3 + Mismatch = 3, + FuzzyMatch = 4, + Error = 5 }; QString testFunction; @@ -155,21 +158,25 @@ public: // Queries AcceptPlatformInfo = 1, RequestBaselineChecksums = 2, + AcceptMatch = 3, AcceptNewBaseline = 4, AcceptMismatch = 5, // Responses Ack = 128, Abort = 129, - DoDryRun = 130 + DoDryRun = 130, + FuzzyMatch = 131 }; // For client: // For advanced client: bool connect(const QString &testCase, bool *dryrun = 0, const PlatformInfo& clientInfo = PlatformInfo()); + bool disconnect(); bool requestBaselineChecksums(const QString &testFunction, ImageItemList *itemList); + bool submitMatch(const ImageItem &item, QByteArray *serverMsg); bool submitNewBaseline(const ImageItem &item, QByteArray *serverMsg); - bool submitMismatch(const ImageItem &item, QByteArray *serverMsg); + bool submitMismatch(const ImageItem &item, QByteArray *serverMsg, bool *fuzzyMatch = 0); // For server: bool acceptConnection(PlatformInfo *pi); -- cgit v1.2.3