60 Commits

Author SHA1 Message Date
Maksymilian Osowski
5846d4561d Fixed the run_apache2.py script to use the correct mime.types file.
Change-Id: I0bd5870259b3f7de92d4996d1ebb83fdff126210
2010-09-03 17:03:33 +01:00
Maksymilian Osowski
fddedbf999 Merge "Updated Summarizer to parse CRASH instead of SKIP." 2010-09-02 09:33:08 -07:00
Maksymilian Osowski
2ca8acdb56 Adds webkit revision to the summary and details.
The revision number is taken from external/webkit/WEBKIT_MERGE_REVISION and is served to the java code by apache server. To be able to do that, the new alias directive had to be
added to the run_apache2.py script.

Bug: 2889572
Change-Id: Ie3d147e4d8ea9edd0144b819152121563b8bd759
2010-09-02 17:27:35 +01:00
Maksymilian Osowski
01c1f9d9e9 The results now show which expected result was used.
Bug: 2889857
Change-Id: If2b7e6e6a22ddb5db6c6a50a358e8f263914e6c0
2010-09-02 17:18:48 +01:00
Maksymilian Osowski
5f21f5a4a9 Updated Summarizer to parse CRASH instead of SKIP.
Bug: 2970575
Change-Id: Idc8b514f4878bcd62729a47d7fe681ade114497a
2010-09-02 17:17:06 +01:00
Maksymilian Osowski
cbba4ae260 Merge "Shows the details when all the tests finish and fixes the orientation issue." 2010-09-02 06:57:50 -07:00
Maksymilian Osowski
84daaf8b41 Merge "Fixed and slightly improved crash detection mechanism." 2010-09-02 06:55:13 -07:00
Maksymilian Osowski
1b034781f4 Shows the details when all the tests finish and fixes the orientation issue.
The tests no longer restart when orientation changes.

Bug: 2904456
Change-Id: Ie1ee463dbd63fb1a2ad2e9c28bf5989002f22215
2010-09-02 14:49:04 +01:00
Maksymilian Osowski
bcf114c2bb Fixed and slightly improved crash detection mechanism.
Before, if a crash was detected, but the "Force quit" dialog remained on the screen, sending the intent to restart the executor would do nothing. It's fixed now with default
uncaught exception handler. Also, when we catch the uncaught exception, we can restart the executor straight away, without waiting for the time-out.

Change-Id: I2f0b4b5f2abd180ff518f1a40ad1294bed2f7f67
2010-09-02 13:39:11 +01:00
Maksymilian Osowski
f072bced91 Merge "Updated Summarizer to report tests under all 4 possible categories now." 2010-09-02 04:55:24 -07:00
Maksymilian Osowski
6ae5ce4b40 Updated Summarizer to report tests under all 4 possible categories now.
Categories: ((un)expected passes/failures).
Also, FileFilter uses FAIL instead of IGNORE_RESULTS now.

Bug: 2899965
Change-Id: I06835b3d5cea84cbc92225a940bf7361cf832f59
2010-09-02 12:53:26 +01:00
Maksymilian Osowski
15116bcc76 Merge "Fixed a bug when there are too many open sockets." 2010-09-02 03:36:57 -07:00
Maksymilian Osowski
5926723f82 Fixed a bug when there are too many open sockets.
Also, some minor corrections to shutdown() in ConnectionHandler.

Change-Id: I937f200c14c185b0867f997645d8b288a19b9889
2010-09-02 11:34:03 +01:00
Maksymilian Osowski
ff314d7094 Added "run all tests in the current directory" menu option.
Bug: 2906954
Change-Id: Ib68219dc4d4d517ad859679bc8d52a02b0b631f4
2010-09-02 10:25:45 +01:00
Maksymilian Osowski
9c12bd3932 Merge "Updated the Summarizer to link to the source of the tests." 2010-09-01 04:34:46 -07:00
Maksymilian Osowski
603b70dd8b Updated the Summarizer to link to the source of the tests.
Change-Id: I90018898c627b99f5a49c301e87593b52cd18ce4
Bug-Id: 2889573
2010-09-01 12:31:33 +01:00
Maksymilian Osowski
ef9a2175ee Fixed a bug in forwarder where calling the stop method on ForwarderManager would deadlock. Also some style fixes.
The call would deadlock because lines 62-67 in ConnectionHandler were in the synchronized block. The is.read() would block and therefore call to shutdown() would block too.
is.read()
would never unblock because the stream was ready to be closed, and it needs to be done so from shutdown(). Removing the synchronized block fixes it and is save, as it was not
needed here.

Change-Id: I3326098c47ee18c4eabaa8510b27ca82debce360
2010-09-01 12:18:13 +01:00
Maksymilian Osowski
c6a341d34c Changed the code to use forwarding service.
Change-Id: I2504ef01270f9c8e82acbe6a4069d2b4b77b35f2
2010-09-01 11:59:16 +01:00
Maksymilian Osowski
6db53149ca Merge "Tweaked the logging + some minor style fixes." 2010-08-26 09:12:09 -07:00
Steve Block
9d660cb5f3 Update run_apach2.py to serve HTTP tests at server root
The complete set of layout tests is still available at /LayoutTests
and scripts at /WebKitTools/DumpRenderTree/android.

Note that this requires a corresponding change to
external/webkit/WebKitTools/DumpRenderTree/android/get_layout_tests_dir_contents.php

Bug: 2951727
Change-Id: Idf366942ffd5786759c989e992359b7e7dbb182c
2010-08-26 16:57:17 +01:00
Steve Block
ee273fac7f Use locals to make run_apache2.py more readable
Also fixes style

Change-Id: I8045b7deb5badfed7758be459d05c58d0ff2e390
2010-08-26 16:56:44 +01:00
Maksymilian Osowski
2e5982a55a Tweaked the logging + some minor style fixes.
Change-Id: If89fe8ab1845780ecf23c5fd339a4932ebec9c0c
2010-08-26 16:48:41 +01:00
Maksymilian Osowski
da9f91a107 Merge "Updated the script to include access log." 2010-08-26 08:01:58 -07:00
Maksymilian Osowski
fe33f987cb Updated the script to include access log.
Change-Id: I3c97d60580040fa8e4bf63660091edb9c7a871fb
2010-08-26 15:25:02 +01:00
Maksymilian Osowski
56d7e400ec Added forwarding service.
It creates the sockets on the device that allow DumpRenderTree2 to get tests from the server running on the remote machine. Communication happens through the adb.

Change-Id: I7f26ffc78195b6c5f4d423a57d5ee5f0f4a9c615
2010-08-26 13:38:54 +01:00
Steve Block
f0f30c677a Implement logic for new Geolocation delayed permission LayoutTests
Bug: 2914450
Change-Id: Ic0be3120e88efe9199f7719b9ccb1090baaabed6
2010-08-18 15:50:48 +01:00
Steve Block
0e4d86fddf Fix naming and executable bits on DumpRenderTree2 scripts
Change-Id: Id1415e2a166289c8c585e132e842f5ca6ad35426
2010-08-18 15:50:46 +01:00
Maksymilian Osowski
073d2c9aa9 Added copyright information to the files that were missing it.
Change-Id: I3b814f2fbd96384189e702e723764d17cbbde5fe
2010-08-13 17:12:51 +01:00
Maksymilian Osowski
74b13aecbe Added python script that starts/stops apache2 server on host machine configured to handle http layout tests.
Change-Id: I7bf4390dfb4f9a580e6e4ca0eb25c85655df723c
2010-08-13 12:07:17 +01:00
Maksymilian Osowski
2e64bb7afd Added more info to the Summarizer.
Bug: 2889572
Change-Id: If02dbdf90e8b8717370b5586cc72be235c93db79
2010-08-12 14:32:30 +01:00
Maksymilian Osowski
0186c93a6e Merge "Added a basic version of python script and supporting code in DumpRenderTree." 2010-08-11 05:26:38 -07:00
Maksymilian Osowski
a0a586cd2f Fixes crash when root dir does not exist.
Bug: 2904439
Change-Id: I629f88626e165348dd414f3ad49d9b415ab336cf
2010-08-11 12:55:01 +01:00
Maksymilian Osowski
5fb9ff420d Added a basic version of python script and supporting code in DumpRenderTree.
Change-Id: Ic60ef9b89f74a3a36a4c31765f99c8de08dce911
2010-08-11 12:20:30 +01:00
Maksymilian Osowski
ea46f2595a Resets Summarizer after everything's finished.
Bug: 2903641
Change-Id: I7cecd454fe726a1527999259d37bd51ea2785116
2010-08-10 18:28:52 +01:00
Maksymilian Osowski
77bdba839b Merge "Changed some parts of the code to prepare it for script support that will come in later commit." 2010-08-10 07:42:47 -07:00
Maksymilian Osowski
c8fb818b94 Changed some parts of the code to prepare it for script support that will come in later commit.
Bug: 2903591

Change-Id: If8fcfad1557c8140c476212d8be9f99987cdaa18
2010-08-10 14:47:53 +01:00
Maksymilian Osowski
38b7eb96fd Merge "Added generating text summary to Summarizer." 2010-08-10 05:41:40 -07:00
Steve Block
68dede3d66 Hook up mock for testing DeviceOrientation in DRT
Change-Id: I99fbe328807428aa0d94893545bad0697ccb71d7
2010-08-10 12:00:35 +01:00
Maksymilian Osowski
8aff3c0571 Added eventSender.
Change-Id: Iae31dc11ddd7b4b1b9c2e1c39fb61cc7b9832721
2010-08-10 11:41:47 +01:00
Maksymilian Osowski
3df4eab3de Added generating text summary to Summarizer.
Change-Id: I8768403b0e4edd46132018c9da6de54b218fb594
2010-08-09 18:15:33 +01:00
Maksymilian Osowski
23a0ee4758 Added crash-detection mechanism.
Change-Id: Idb6501e94ffae5948de84241e46a618bc56554dd
2010-08-09 11:20:08 +01:00
Maksymilian Osowski
7e2a39b598 Added detection of missing EventSender functions.
Change-Id: I5268a66089d5e29a9ae5e496d05f3c79465771f5
2010-08-06 10:11:12 +01:00
Maksymilian Osowski
38f28fac14 Added geolocation layoutTestController functions.
Change-Id: Ie9558e873ff589b9e2358623433838f0718ea3b4
2010-08-03 18:37:17 +01:00
Maksymilian Osowski
40968a4540 Added recording of JS dialog messages.
Change-Id: I3854f1fea81d47255c9fb398bdcbdff5ed4d8a52
2010-08-03 18:02:42 +01:00
Maksymilian Osowski
100e106551 Merge "Changed the order of searching for expected result (and added additional location)." 2010-08-03 08:05:46 -07:00
Maksymilian Osowski
c83712e686 Changed the order of searching for expected result (and added additional location).
Change-Id: Ieb59ffcaeb999d0ed5a8445c97e6ea3bbe115e4d
2010-08-03 16:04:58 +01:00
Maksymilian Osowski
ef7f9d2458 Added wakelock to keep the screen from sleeping when executing tests.
Change-Id: Ib6a0ff2a7c906f500868269d6a617553733d33b1
2010-08-03 16:01:50 +01:00
Maksymilian Osowski
4a9e3a6dc3 Added detecting unimplemented layoutTestController functions and green squares.
Change-Id: Iaa7bbdb83a074a874a210f7975c6c3b731e0a924
2010-08-03 15:35:07 +01:00
Maksymilian Osowski
dd4bff62b5 First batch of layoutTestController functions + some fixes and tweaks.
Change-Id: I9dae192c498d8e19fd75861a1a6cf1f079ad9c6f
2010-08-03 15:22:34 +01:00
Maksymilian Osowski
42bee9cf76 Time-out mechanism and state machine.
Change-Id: I47c4342c02ea152b1503b9d5268900df3b40683c
2010-08-02 16:22:28 +01:00