Changeset 231526 in webkit
- Timestamp:
- May 8, 2018 5:04:10 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r231252 r231526 49 49 # Ignore YouCompleteMe symlinks 50 50 .ycm_extra_conf.py 51 52 # Ignore generated Test262 results files53 Tools/Scripts/test262/results.yaml54 Tools/Scripts/test262/results-summary.yaml55 Tools/Scripts/test262/results-summary.txt -
trunk/ChangeLog
r231478 r231526 1 2018-05-08 Valerie R Young <valerie@bocoup.com> 2 3 test262/Runner.pm: create results dir for results of test262 run 4 https://bugs.webkit.org/show_bug.cgi?id=185392 5 6 Reviewed by Michael Saboff. 7 8 Remove reference to no longer existing files. 9 10 * .gitignore: 11 1 12 2018-05-07 Yusuke Suzuki <utatane.tea@gmail.com> 2 13 -
trunk/Tools/ChangeLog
r231525 r231526 1 2018-05-08 Valerie R Young <valerie@bocoup.com> 2 3 test262/Runner.pm: create results dir for results of test262 run 4 https://bugs.webkit.org/show_bug.cgi?id=185392 5 6 Reviewed by Michael Saboff. 7 8 New directory test262-results created from where ever script is 9 called. 10 11 * Scripts/test262/Runner.pm: 12 (processCLI): 13 1 14 2018-05-08 Valerie R Young <valerie@bocoup.com> 2 15 -
trunk/Tools/Scripts/test262/Runner.pm
r231525 r231526 37 37 use File::Spec::Functions qw(abs2rel); 38 38 use File::Basename qw(dirname); 39 use File::Path qw(mkpath); 39 40 use Cwd qw(abs_path); 40 41 use FindBin; … … 85 86 my $expectationsFile = abs_path("$Bin/../../../JSTests/test262/expectations.yaml"); 86 87 my $configFile = abs_path("$Bin/../../../JSTests/test262/config.yaml"); 87 my $resultsFile = abs_path("$Bin/results.yaml"); 88 my $summaryTxtFile = abs_path("$Bin/results-summary.txt"); 89 my $summaryFile = abs_path("$Bin/results-summary.yaml"); 88 89 my $resultsDir = `pwd`; 90 chomp $resultsDir; 91 $resultsDir = $resultsDir . "/test262-results"; 92 mkpath($resultsDir); 93 94 my $resultsFile = abs_path("$resultsDir/results.yaml"); 95 my $summaryTxtFile = abs_path("$resultsDir/summary.txt"); 96 my $summaryFile = abs_path("$resultsDir/summary.yaml"); 90 97 91 98 my @results; … … 107 114 my @features; 108 115 my $stats; 116 my $specifiedResultsFile; 109 117 110 118 # If adding a new commandline argument, you must update the POD … … 126 134 'l|latest-import' => \$latestImport, 127 135 'stats' => \$stats, 136 'r|results=s' => \$specifiedResultsFile, 128 137 ); 129 138 … … 137 146 } 138 147 148 if ($specifiedResultsFile) { 149 if (!$stats) { 150 print "Waring: supplied results file not used for this command.\n"; 151 } 152 elsif (-e $specifiedResultsFile) { 153 $resultsFile = $specifiedResultsFile; 154 } 155 else { 156 die "Error: results file $specifiedResultsFile does not exist."; 157 } 158 } 159 139 160 if ($stats) { 161 if (! -e $resultsFile) { 162 die "Error: cannot find results file, please specify with --results."; 163 } 140 164 summarizeResults(); 141 165 exit; … … 183 207 # --failures-only option supplied. 184 208 if ( $failingOnly && ! -e $expectationsFile ) { 185 print "Error: Cannot run failing tests if test262-expectation.yaml file does not exist.\n";209 print "Error: Cannot run failing tests if expectation.yaml file does not exist.\n"; 186 210 die; 187 211 } elsif (-e $expectationsFile) { … … 885 909 =item B<--stats> 886 910 887 Calculate conformance statistics from JSTests/test262-results.yaml file. Saves results in JSTests/test262/results-summary.txt and JSTests/test262/results-summary.yaml. 911 Calculate conformance statistics from results/results.yaml file or a supplied results file (--results). Saves results in results/summary.txt and results/summary.yaml. 912 913 =item B<--results, -r> 914 915 Specifies a results file the --stats option. 888 916 889 917 =back
Note: See TracChangeset
for help on using the changeset viewer.