Index: trunk/phase3/tests/parserTests.php |
— | — | @@ -24,8 +24,8 @@ |
25 | 25 | * @ingroup Testing |
26 | 26 | */ |
27 | 27 | |
28 | | -$options = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled' ); |
29 | | -$optionsWithArgs = array( 'regex', 'seed', 'setversion' ); |
| 28 | +$otions = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled' ); |
| 29 | +$optionsWithArgs = array( 'regex', 'filter', 'seed', 'setversion' ); |
30 | 30 | |
31 | 31 | require_once( dirname( __FILE__ ) . '/../maintenance/commandLine.inc' ); |
32 | 32 | |
— | — | @@ -41,6 +41,7 @@ |
42 | 42 | --color[=yes|no] Override terminal detection and force color output on or off |
43 | 43 | use wgCommandLineDarkBg = true; if your term is dark |
44 | 44 | --regex Only run tests whose descriptions which match given regex |
| 45 | + --filter Alias for --regex |
45 | 46 | --file=<testfile> Run test cases from a custom file instead of parserTests.txt |
46 | 47 | --record Record tests in database |
47 | 48 | --compare Compare with recorded results, without updating the database. |
Index: trunk/phase3/tests/parser/parserTest.inc |
— | — | @@ -105,6 +105,9 @@ |
106 | 106 | |
107 | 107 | $this->showOutput = isset( $options['show-output'] ); |
108 | 108 | |
| 109 | + if ( isset( $options['filter'] ) ) { |
| 110 | + $options['regex'] = $options['filter']; |
| 111 | + } |
109 | 112 | |
110 | 113 | if ( isset( $options['regex'] ) ) { |
111 | 114 | if ( isset( $options['record'] ) ) { |