Changeset 103549 in webkit


Ignore:
Timestamp:
Dec 22, 2011 9:19:49 AM (12 years ago)
Author:
ddkilzer@apple.com
Message:

run-api-tests: inline runAllTestsInSuite() into runAllTests()

Reviewed by Adam Roben.

Part of: <http://webkit.org/b/75065> run-api-tests should be able to run individual suites and tests

In order to make it easy to run one or more individual suites,
or one more individual tests, it's easier to call a single
method with different data structures than individual methods.

  • Scripts/run-api-tests:

(runAllTests): Inline runAllTestsInSuite().

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r103547 r103549  
     12011-12-22  David Kilzer  <ddkilzer@apple.com>
     2
     3        run-api-tests: inline runAllTestsInSuite() into runAllTests()
     4
     5        Reviewed by Adam Roben.
     6
     7        Part of: <http://webkit.org/b/75065> run-api-tests should be able to run individual suites and tests
     8
     9        In order to make it easy to run one or more individual suites,
     10        or one more individual tests, it's easier to call a single
     11        method with different data structures than individual methods.
     12
     13        * Scripts/run-api-tests:
     14        (runAllTests): Inline runAllTestsInSuite().
     15
    1162011-12-22  Adam Roben  <aroben@apple.com>
    217
  • trunk/Tools/Scripts/run-api-tests

    r103545 r103549  
    4343sub populateTests();
    4444sub runAllTests();
    45 sub runAllTestsInSuite($);
    4645sub runTest($$);
    4746sub prepareEnvironmentForRunningTestTool();
     
    119118    my $anyFailures = 0;
    120119    for my $suite (sort keys %testsToRun) {
    121         my $failed = runAllTestsInSuite($suite);
    122         if ($failed) {
    123             $anyFailures = 1;
     120        print "Suite: $suite\n" unless $verbose;
     121        for my $test (sort @{$testsToRun{$suite}}) {
     122            my $failed = runTest($suite, $test);
     123            if ($failed) {
     124                $anyFailures = 1;
     125            }
    124126        }
    125127    }
     
    139141        }
    140142    }
    141     return $anyFailures;
    142 }
    143 
    144 sub runAllTestsInSuite($)
    145 {
    146     my ($suite) = @_;
    147     print "Suite: $suite\n" unless $verbose;
    148 
    149     my $anyFailures = 0;
    150     for my $test (sort @{$testsToRun{$suite}}) {
    151         my $failed = runTest($suite, $test);
    152         if ($failed) {
    153             $anyFailures = 1;
    154         }
    155     }
    156    
    157143    return $anyFailures;
    158144}
Note: See TracChangeset for help on using the changeset viewer.