Bug 44155 - [Qt] Add WebKitTestRunner's build files
Summary: [Qt] Add WebKitTestRunner's build files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Enhancement
Assignee: Balazs Kelemen
URL:
Keywords: Qt
Depends on: 45393
Blocks: 47276
  Show dependency treegraph
 
Reported: 2010-08-18 01:01 PDT by Zoltan Horvath
Modified: 2010-10-06 16:55 PDT (History)
7 users (show)

See Also:


Attachments
first patch (13.93 KB, patch)
2010-08-18 01:22 PDT, Zoltan Horvath
no flags Details | Formatted Diff | Diff
second patch (17.75 KB, patch)
2010-08-18 04:00 PDT, Zoltan Horvath
no flags Details | Formatted Diff | Diff
third patch (25.18 KB, patch)
2010-10-01 07:28 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff
Patch (12.29 KB, patch)
2010-10-06 08:00 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff
Patch (19.60 KB, patch)
2010-10-06 08:25 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff
Patch (19.07 KB, patch)
2010-10-06 09:38 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff
Patch (18.81 KB, patch)
2010-10-06 10:08 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff
Patch (18.86 KB, patch)
2010-10-06 14:52 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Horvath 2010-08-18 01:01:49 PDT
Add WebKitTestRunner's files and modify WK2 build files to build WebKitTestRunner.
Comment 1 Zoltan Horvath 2010-08-18 01:22:26 PDT
Created attachment 64675 [details]
first patch

Please comment.
Comment 2 Kenneth Rohde Christiansen 2010-08-18 03:23:58 PDT
Comment on attachment 64675 [details]
first patch

WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:32
 +  static void addQTDirToPATH()
huh? AddQTDirToPATH? QuickTime ?

WebKitTools/WebKitTestRunner/qt/main.cpp:33
 +      }
Why this?

Is this working? Don't you need the InjectBundle to work?
Comment 3 Zoltan Horvath 2010-08-18 04:00:42 PDT
Created attachment 64686 [details]
second patch

(In reply to comment #2)
> (From update of attachment 64675 [details])
> WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:32
>  +  static void addQTDirToPATH()
> huh? AddQTDirToPATH? QuickTime ?

Sry, I've uploaded a wrong patch with some unrelated change like this.
 
> WebKitTools/WebKitTestRunner/qt/main.cpp:33
>  +      }
> Why this?

It is copy pasted code from win implementation. I don't see reason for this, so I removed brackets now.

> Is this working? Don't you need the InjectBundle to work?

It is building and making the binary, but isn't working. 
We need InjectedBundle implementation, yes.
Comment 4 Balazs Kelemen 2010-10-01 07:28:23 PDT
Created attachment 69466 [details]
third patch
Comment 5 WebKit Review Bot 2010-10-01 07:32:43 PDT
Attachment 69466 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKit2/UIProcess/API/C/WebKit2.h:53:  More than one command on the same line in if  [whitespace/parens] [4]
WebKitTools/WebKitTestRunner/qt/main.cpp:27:  Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 4 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Early Warning System Bot 2010-10-01 07:39:44 PDT
Attachment 69466 [details] did not build on qt:
Build output: http://queues.webkit.org/results/4229042
Comment 7 Balazs Kelemen 2010-10-06 08:00:17 PDT
Created attachment 69941 [details]
Patch
Comment 8 WebKit Review Bot 2010-10-06 08:04:17 PDT
Attachment 69941 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKit2/UIProcess/API/C/WebKit2.h:53:  More than one command on the same line in if  [whitespace/parens] [4]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Balazs Kelemen 2010-10-06 08:25:32 PDT
Created attachment 69943 [details]
Patch

Forgot to add the new files in the previous.
Comment 10 WebKit Review Bot 2010-10-06 08:29:22 PDT
Attachment 69943 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKit2/UIProcess/API/C/WebKit2.h:53:  More than one command on the same line in if  [whitespace/parens] [4]
WebKitTools/WebKitTestRunner/qt/main.cpp:27:  Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 4 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Balazs Kelemen 2010-10-06 09:38:12 PDT
Created attachment 69950 [details]
Patch

Removed accidentally added implementation that need to be in a follow up patch.
Comment 12 WebKit Review Bot 2010-10-06 09:44:32 PDT
Attachment 69950 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKit2/UIProcess/API/C/WebKit2.h:53:  More than one command on the same line in if  [whitespace/parens] [4]
WebKitTools/WebKitTestRunner/qt/main.cpp:27:  Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 4 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 Kenneth Rohde Christiansen 2010-10-06 09:53:30 PDT
Comment on attachment 69950 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=69950&action=review

> WebKit2/UIProcess/API/C/WebKit2.h:53
> -#if !__APPLE__ || __OBJC__
> +#if (defined(__APPLE__) && __APPLE__) || (defined(__OBJC__) && __OBJC__)

The first seems to be checking for NOT __APPLE__

> WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:35
> +    // Implement
> +    notImplemented();

This comment seems a bit useless

> WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:41
> +}
> +void TestController::platformInitialize()

needs newline between those two
Comment 14 Balazs Kelemen 2010-10-06 10:08:37 PDT
Created attachment 69954 [details]
Patch

Corrected the issues noticed by Kenneth.
Comment 15 WebKit Review Bot 2010-10-06 10:11:27 PDT
Attachment 69954 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/main.cpp:27:  Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 3 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 16 Early Warning System Bot 2010-10-06 14:25:58 PDT
Attachment 69954 [details] did not build on qt:
Build output: http://queues.webkit.org/results/4255030
Comment 17 Balazs Kelemen 2010-10-06 14:45:13 PDT
Oops. This depends on 45393. Instead of set the dependency I am going to upload the patch without actually switching on the build of WebKitTestRunner. This way we can move forward and switch it on when the build will be stable.
Comment 18 Balazs Kelemen 2010-10-06 14:52:21 PDT
Created attachment 69993 [details]
Patch

Same as the last one without actually turn on the build of WTR.
Comment 19 WebKit Review Bot 2010-10-06 15:00:42 PDT
Attachment 69993 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/main.cpp:27:  Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/qt/TestControllerQt.cpp:27:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 3 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 20 Kenneth Rohde Christiansen 2010-10-06 15:04:51 PDT
Comment on attachment 69993 [details]
Patch

When landing please make sure to stay around to make sure this does break any other port
Comment 21 Andras Becsi 2010-10-06 15:43:20 PDT
Comment on attachment 69993 [details]
Patch

Clearing flags on attachment: 69993

Committed r69244: <http://trac.webkit.org/changeset/69244>
Comment 22 Andras Becsi 2010-10-06 15:43:30 PDT
All reviewed patches have been landed.  Closing bug.
Comment 23 WebKit Review Bot 2010-10-06 16:55:23 PDT
http://trac.webkit.org/changeset/69244 might have broken Chromium Win Release
Comment 24 WebKit Review Bot 2010-10-06 16:55:32 PDT
http://trac.webkit.org/changeset/69245 might have broken Chromium Win Release