Changeset 231874 in webkit


Ignore:
Timestamp:
May 16, 2018 3:15:49 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Test262-Runner: Adds a --timeout option
https://bugs.webkit.org/show_bug.cgi?id=185696

Patch by Leo Balter <Leo Balter> on 2018-05-16
Reviewed by Michael Saboff.

The timeout option is used to set a timeout execution in ms for each test run in JSC.
The passed value - if defined - will be used as the value for the JSC --watchdog arg.

  • Scripts/test262/Runner.pm:

(processCLI):
(runTest):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r231873 r231874  
     12018-05-16  Leo Balter  <leonardo.balter@gmail.com>
     2
     3        Test262-Runner: Adds a --timeout option
     4        https://bugs.webkit.org/show_bug.cgi?id=185696
     5
     6        Reviewed by Michael Saboff.
     7
     8        The timeout option is used to set a timeout execution in ms for each test run in JSC.
     9        The passed value - if defined - will be used as the value for the JSC --watchdog arg.
     10        * Scripts/test262/Runner.pm:
     11        (processCLI):
     12        (runTest):
     13
    1142018-05-16  Leo Balter  <leonardo.balter@gmail.com>
    215
  • trunk/Tools/Scripts/test262/Runner.pm

    r231873 r231874  
    8484my $latestImport;
    8585my $runningAllTests;
     86my $timeout;
    8687
    8788my $expectationsFile = abs_path("$Bin/../../../JSTests/test262/expectations.yaml");
     
    136137        'stats' => \$stats,
    137138        'r|results=s' => \$specifiedResultsFile,
     139        'timeout=i' => \$timeout,
    138140    );
    139141
     
    235237        . "Child Processes: $max_process\n";
    236238
     239    print "Test timeout: $timeout\n" if $timeout;
    237240    print "Features to include: " . join(', ', @features) . "\n" if @features;
    238     print "Paths:  " . join(', ', @cliTestDirs) . "\n" if @cliTestDirs;
     241    print "Paths: " . join(', ', @cliTestDirs) . "\n" if @cliTestDirs;
    239242    print "Config file: $configFile\n" if $config;
    240243    print "Expectations file: $expectationsFile\n" if $expect;
     
    598601    my $args = '';
    599602
     603    if ($timeout) {
     604        $args .= " --watchdog=$timeout ";
     605    }
     606
    600607    if (exists $data->{negative}) {
    601608        my $type = $data->{negative}->{type};
     
    958965Specifies a results file for the --stats or --failing-files options.
    959966
     967=item B<--timeout>
     968
     969Specifies a timeout execution in ms for each test. Defers the value to the jsc --watchdog argument. Disabled by default.
     970
    960971=back
    961972
Note: See TracChangeset for help on using the changeset viewer.