[Webkit-unassigned] [Bug 144241] New: Import tests from TC39 tests262

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 26 16:32:28 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144241

            Bug ID: 144241
           Summary: Import tests from TC39 tests262
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org
                CC: benjamin at webkit.org, darin at apple.com,
                    fpizlo at apple.com, ggaren at apple.com,
                    mark.lam at apple.com, msaboff at apple.com

We should import tests from https://github.com/tc39/test262

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);
     }
 }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150426/466ccece/attachment.html>


More information about the webkit-unassigned mailing list