Title: [203421] trunk
Revision
203421
Author
[email protected]
Date
2016-07-19 14:27:01 -0700 (Tue, 19 Jul 2016)

Log Message

Test262 should have a file with the revision and url
https://bugs.webkit.org/show_bug.cgi?id=159937

Reviewed by Mark Lam.

Source/_javascript_Core:

The file.

* tests/test262/test262-Revision.txt: Added.

Tools:

The import script should update the information from
the path to the test262 repository it gets.

* Scripts/import-test262-tests:

Modified Paths

Added Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (203420 => 203421)


--- trunk/Source/_javascript_Core/ChangeLog	2016-07-19 21:14:04 UTC (rev 203420)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-07-19 21:27:01 UTC (rev 203421)
@@ -1,3 +1,14 @@
+2016-07-19  Keith Miller  <[email protected]>
+
+        Test262 should have a file with the revision and url
+        https://bugs.webkit.org/show_bug.cgi?id=159937
+
+        Reviewed by Mark Lam.
+
+        The file.
+
+        * tests/test262/test262-Revision.txt: Added.
+
 2016-07-19  Anders Carlsson  <[email protected]>
 
         WebCore-7602.1.42 fails to build: error: private field 'm_vm' is not used

Added: trunk/Source/_javascript_Core/tests/test262/test262-Revision.txt (0 => 203421)


--- trunk/Source/_javascript_Core/tests/test262/test262-Revision.txt	                        (rev 0)
+++ trunk/Source/_javascript_Core/tests/test262/test262-Revision.txt	2016-07-19 21:27:01 UTC (rev 203421)
@@ -0,0 +1,3 @@
+test262 remote url: https://github.com/tc39/test262.git
+test262 revision: 163fae3e68998c1a69e1e6825bf34e89b76cff58
+

Modified: trunk/Tools/ChangeLog (203420 => 203421)


--- trunk/Tools/ChangeLog	2016-07-19 21:14:04 UTC (rev 203420)
+++ trunk/Tools/ChangeLog	2016-07-19 21:27:01 UTC (rev 203421)
@@ -1,3 +1,15 @@
+2016-07-19  Keith Miller  <[email protected]>
+
+        Test262 should have a file with the revision and url
+        https://bugs.webkit.org/show_bug.cgi?id=159937
+
+        Reviewed by Mark Lam.
+
+        The import script should update the information from
+        the path to the test262 repository it gets.
+
+        * Scripts/import-test262-tests:
+
 2016-07-19  Alexey Proskuryakov  <[email protected]>
 
         Temporary workaround for iOS EWS failing after the fix for bug 159539.

Modified: trunk/Tools/Scripts/import-test262-tests (203420 => 203421)


--- trunk/Tools/Scripts/import-test262-tests	2016-07-19 21:14:04 UTC (rev 203420)
+++ trunk/Tools/Scripts/import-test262-tests	2016-07-19 21:27:01 UTC (rev 203421)
@@ -34,6 +34,7 @@
 SCRIPTS_PATH = THIS_SCRIPT_PATH.dirname
 WEBKIT_PATH = SCRIPTS_PATH.dirname.dirname
 TEST262_YAML_PATH = WEBKIT_PATH + "Source/_javascript_Core/tests/test262.yaml"
+TEST262_REVISION_PATH = WEBKIT_PATH + "Source/_javascript_Core/tests/test262/test262-Revision.txt"
 
 raise unless SCRIPTS_PATH.basename.to_s == "Scripts"
 raise unless SCRIPTS_PATH.dirname.basename.to_s == "Tools"
@@ -252,5 +253,30 @@
     }
 end
 
-tests = processFilesRecursively(Pathname.new(ARGV[0]))
+def printRevision(test262Path)
+    url = ""
+    branchname = url
+    revision = url
+    Dir.chdir(test262Path) {
+        branchname = `git rev-parse --abbrev-ref HEAD`.strip
+        # Not sure what we should do if they don't have a branch checked out.
+        # Getting the url from origin seems reasonable.
+        branchname = "origin" if branchname == "HEAD"
+        url = "" remote get-url #{branchname}`
+        revision = `git rev-parse HEAD`.strip
+    }
+
+    File.open(TEST262_REVISION_PATH, "w+") {
+        | outp |
+        puts "test262 remote url: " + url
+        puts "test262 revision: " + revision
+        outp.puts "test262 remote url: " + url
+        outp.puts "test262 revision: " + revision
+        outp.puts
+    }
+end
+
+test262Path = Pathname.new(ARGV[0])
+printRevision(test262Path)
+tests = processFilesRecursively(test262Path)
 printYAML(tests)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to