Changeset 104343 in webkit
- Timestamp:
- Jan 6, 2012 2:46:20 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r104342 r104343 1 2012-01-06 David Kilzer <ddkilzer@apple.com> 2 3 run-api-tests: specify individual suites and tests on the command-line 4 5 Reviewed by Adam Roben. 6 7 Fixes: <http://webkit.org/b/75065> run-api-tests should be able to run individual suites and tests 8 9 The run-api-tests script will now accept a list of arguments on 10 the command-line that are used as prefix filters. To run all 11 tests in a suite that starts with "WTF" (WTF and WTF_Vector) 12 use: 13 14 $ run-api-tests WTF 15 16 To run only the tests in the "WTF" suite, not the "WTF_Vector" 17 suite, use: 18 19 $ run-api-tests WTF. 20 21 * Scripts/run-api-tests: Filter tests if any prefix arguments 22 are passed on the command-line. 23 1 24 2012-01-06 David Kilzer <ddkilzer@apple.com> 2 25 -
trunk/Tools/Scripts/run-api-tests
r104342 r104343 24 24 # THE POSSIBILITY OF SUCH DAMAGE. 25 25 26 # Features to add:27 # - Command line option to run a single test.28 # - Command line option to run all tests in a suite.29 30 26 use strict; 31 27 use warnings; … … 63 59 my $programName = basename($0); 64 60 my $usage = <<EOF; 65 Usage: $programName [options] 61 Usage: $programName [options] [suite or test prefixes] 66 62 --help Show this help message 67 63 -v|--verbose Verbose output … … 88 84 my @testsToRun = listAllTests(); 89 85 86 @testsToRun = grep { my $test = $_; grep { $test =~ m/^\Q$_\E/ } @ARGV; } @testsToRun if @ARGV; 87 90 88 if ($dumpTests) { 91 89 dumpTestsBySuite(@testsToRun); … … 93 91 } 94 92 95 if (runTestsBySuite(@testsToRun, $verbose)) { 96 exit 1; 97 } 93 exit runTestsBySuite(@testsToRun, $verbose); 98 94 99 95 sub isSupportedPlatform()
Note: See TracChangeset
for help on using the changeset viewer.