Changeset 53015 in webkit


Ignore:
Timestamp:
Jan 8, 2010 3:22:57 PM (14 years ago)
Author:
Csaba Osztrogonác
Message:

Only run http and websocket tests as last if no argument is given to be able to explicitly control the test order.

Patch by Andras Becsi <abecsi@inf.u-szeged.hu> on 2010-01-08
Reviewed by Alexey Proskuryakov.

To be able to run multiple instances of run-webkit-tests besides each other on the same machine we need to minimize
the time when Apache and WebSocketServer is locked by tests.
Because closeHTTPD() and closeWebSocketServer() is only called at the end of the testing,
we need to run http and websocket tests after all other tests.
If one however explicitly specifies the tests to run in the argument list of run-webkit-tests
we need to preserve the given order.

  • Scripts/run-webkit-tests:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r53013 r53015  
     12010-01-08  Andras Becsi  <abecsi@inf.u-szeged.hu>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        Only run http and websocket tests as last if no argument is given to be able to explicitly control the test order.
     6
     7        To be able to run multiple instances of run-webkit-tests besides each other on the same machine we need to minimize
     8        the time when Apache and WebSocketServer is locked by tests.
     9        Because closeHTTPD() and closeWebSocketServer() is only called at the end of the testing,
     10        we need to run http and websocket tests after all other tests.
     11        If one however explicitly specifies the tests to run in the argument list of run-webkit-tests
     12        we need to preserve the given order.
     13
     14        * Scripts/run-webkit-tests:
     15
    1162010-01-08  Adam Barth  <abarth@webkit.org>
    217
  • trunk/WebKitTools/Scripts/run-webkit-tests

    r52976 r53015  
    22222222    @testsToRun = sort pathcmp @testsToRun;
    22232223
    2224     my @httpTests;
    2225     my @websocketTests;
    2226     my @otherTests;
    2227     foreach my $test (@testsToRun) {
    2228         if ($test =~ /^http\//) {
    2229             push(@httpTests, $test);
    2230         } elsif ($test =~ /^websocket\//) {
    2231             push(@websocketTests, $test);
    2232         } else {
    2233             push(@otherTests, $test);
    2234         }
    2235     }
    2236     @testsToRun = (@otherTests, @httpTests, @websocketTests);
     2224    # We need to minimize the time when Apache and WebSocketServer is locked by tests
     2225    # so run them last if no explicit order was specified in the argument list.
     2226    if (!scalar @ARGV) {
     2227        my @httpTests;
     2228        my @websocketTests;
     2229        my @otherTests;
     2230        foreach my $test (@testsToRun) {
     2231            if ($test =~ /^http\//) {
     2232                push(@httpTests, $test);
     2233            } elsif ($test =~ /^websocket\//) {
     2234                push(@websocketTests, $test);
     2235            } else {
     2236                push(@otherTests, $test);
     2237            }
     2238        }
     2239        @testsToRun = (@otherTests, @httpTests, @websocketTests);
     2240    }
    22372241
    22382242    # Reverse the tests
Note: See TracChangeset for help on using the changeset viewer.