<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Import tests from TC39 tests262"
href="https://bugs.webkit.org/show_bug.cgi?id=144241">144241</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Import tests from TC39 tests262
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>528+ (Nightly build)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>JavaScriptCore
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rniwa@webkit.org
</td>
</tr>
<tr>
<th>CC</th>
<td>benjamin@webkit.org, darin@apple.com, fpizlo@apple.com, ggaren@apple.com, mark.lam@apple.com, msaboff@apple.com
</td>
</tr></table>
<p>
<div>
<pre>We should import tests from <a href="https://github.com/tc39/test262">https://github.com/tc39/test262</a>
Their tests for class syntax, for example, caught a few bugs as well as crashes!
I've been using their python script to run tests as follows:
./tools/packaging/test262.py --command="/Volumes/Data/webkit/Tools/Scripts/run-jsc --no-show-dyld"
after applying the following change to run-jsc:
Index: Tools/Scripts/run-jsc
===================================================================
--- Tools/Scripts/run-jsc (revision 183315)
+++ Tools/Scripts/run-jsc (working copy)
@@ -39,17 +39,23 @@
my $usage = "Usage: run-jsc [--count run_count] shell_file [file2...]";
my $count = 1;
-GetOptions("count|c=i" => \$count);
+my $noShowDyld = 0;
+GetOptions(("count|c=i" => \$count, "no-show-dyld" => \$noShowDyld));
my $jsc = jscProductDir() . "/jsc @ARGV";
my $dyld = jscProductDir();
$ENV{"DYLD_FRAMEWORK_PATH"} = $dyld;
-print STDERR "Running $count time(s): DYLD_FRAMEWORK_PATH=$dyld $jsc\n";
+
+if (!$noShowDyld) {
+ print STDERR "Running $count time(s): DYLD_FRAMEWORK_PATH=$dyld $jsc\n";
+}
+
while ($count--) {
- if (system("$jsc") != 0) {
- last;
+ my $exit_code = system("$jsc");
+ if ($exit_code != 0) {
+ exit($exit_code >> 8);
}
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>