Changeset 103551 in webkit
- Timestamp:
- Dec 22, 2011 9:29:24 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r103549 r103551 1 2011-12-22 David Kilzer <ddkilzer@apple.com> 2 3 run-api-tests: runAllTests() and runTest() should not use global variables 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 * Scripts/run-api-tests: 10 (runTestsBySuite): Rename from runAllTests(). Add arguments for 11 list of tests and $verbose. 12 (runTest): Add $verbose argument. 13 1 14 2011-12-22 David Kilzer <ddkilzer@apple.com> 2 15 -
trunk/Tools/Scripts/run-api-tests
r103549 r103551 42 42 sub dumpTestsBySuite(\%); 43 43 sub populateTests(); 44 sub run AllTests();45 sub runTest ($$);44 sub runTest($$$); 45 sub runTestsBySuite(\%$); 46 46 sub prepareEnvironmentForRunningTestTool(); 47 47 sub testToolPath(); … … 93 93 } 94 94 95 if (run AllTests()) {95 if (runTestsBySuite(%testsToRun, $verbose)) { 96 96 exit 1; 97 97 } … … 114 114 } 115 115 116 sub runAllTests() 117 { 116 sub runTestsBySuite(\%$) 117 { 118 my ($tests, $verbose) = @_; 118 119 my $anyFailures = 0; 119 for my $suite (sort keys % testsToRun) {120 for my $suite (sort keys %$tests) { 120 121 print "Suite: $suite\n" unless $verbose; 121 for my $test (sort @{$tests ToRun{$suite}}) {122 my $failed = runTest($suite, $test );122 for my $test (sort @{$tests->{$suite}}) { 123 my $failed = runTest($suite, $test, $verbose); 123 124 if ($failed) { 124 125 $anyFailures = 1; … … 144 145 } 145 146 146 sub runTest($$ )147 { 148 my ($suite, $testName ) = @_;147 sub runTest($$$) 148 { 149 my ($suite, $testName, $verbose) = @_; 149 150 my $test = $suite . "." . $testName; 150 151
Note: See TracChangeset
for help on using the changeset viewer.