Changeset 103549 in webkit
- Timestamp:
- Dec 22, 2011 9:19:49 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r103547 r103549 1 2011-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 1 16 2011-12-22 Adam Roben <aroben@apple.com> 2 17 -
trunk/Tools/Scripts/run-api-tests
r103545 r103549 43 43 sub populateTests(); 44 44 sub runAllTests(); 45 sub runAllTestsInSuite($);46 45 sub runTest($$); 47 46 sub prepareEnvironmentForRunningTestTool(); … … 119 118 my $anyFailures = 0; 120 119 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 } 124 126 } 125 127 } … … 139 141 } 140 142 } 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 157 143 return $anyFailures; 158 144 }
Note: See TracChangeset
for help on using the changeset viewer.