[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

barraclough at apple.com barraclough at apple.com
Wed Dec 22 13:29:23 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit cf4550e50a4ab992ebf3468ab2e66d1f41db2952
Author: barraclough at apple.com <barraclough at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Sep 16 22:30:08 2010 +0000

    https://bugs.webkit.org/show_bug.cgi?id=45924
    
    Reviewed by Mark Rowe.
    
    Modify the SunSpider harness to allow a path to be passed to the --suite
    argument, supress the normal prepend-"tests/" behaviour for suite names
    containing a '/'.
    
    Also wrap the code in an anonymous function to move variables out of global
    scope (currently the harness cannot handle running tests the overwrite the
    variable 'j').
    
    * resources/sunspider-standalone-driver.js:
    * sunspider:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67674 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/SunSpider/ChangeLog b/SunSpider/ChangeLog
index faa3002..279a389 100644
--- a/SunSpider/ChangeLog
+++ b/SunSpider/ChangeLog
@@ -1,3 +1,19 @@
+2010-09-16  Gavin Barraclough  <barraclough at apple.com>
+
+        Reviewed by Mark Rowe.
+        https://bugs.webkit.org/show_bug.cgi?id=45924
+
+        Modify the SunSpider harness to allow a path to be passed to the --suite
+        argument, supress the normal prepend-"tests/" behaviour for suite names
+        containing a '/'.
+
+        Also wrap the code in an anonymous function to move variables out of global
+        scope (currently the harness cannot handle running tests the overwrite the
+        variable 'j').
+
+        * resources/sunspider-standalone-driver.js:
+        * sunspider:
+
 2010-08-27  Michael Saboff  <msaboff at apple.com>
 
         Reviewed by Stephanie Lewis.
diff --git a/SunSpider/resources/sunspider-standalone-driver.js b/SunSpider/resources/sunspider-standalone-driver.js
index 3a8a3e9..a015822 100644
--- a/SunSpider/resources/sunspider-standalone-driver.js
+++ b/SunSpider/resources/sunspider-standalone-driver.js
@@ -25,12 +25,14 @@
 
 var results = new Array();
 
+(function(){
+
 var time = 0;
 var times = [];
 times.length = tests.length;
 
 for (var j = 0; j < tests.length; j++) {
-    var testName = "tests/" + suiteName + "/" + tests[j] + ".js";
+    var testName = suitePath + "/" + tests[j] + ".js";
     var startTime = new Date;
     if (testName.indexOf('parse-only') >= 0)
         checkSyntax(testName);
@@ -54,3 +56,6 @@ function recordResults(tests, times)
 }
 
 recordResults(tests, times);
+
+})();
+
diff --git a/SunSpider/sunspider b/SunSpider/sunspider
index dedc88f..dbe26cd 100755
--- a/SunSpider/sunspider
+++ b/SunSpider/sunspider
@@ -86,6 +86,9 @@ $suite = "sunspider-0.9.1" if (!$suite);
 
 my $resultDirectory = "${suite}-results";
 
+my $suitePath = $suite;
+$suitePath = "tests/" . $suitePath unless ($suite =~ /\//);
+
 $runShark = 1 if $runSharkCache;
 $runShark = 20 if $runShark20;
 $testRuns = 1 if $runShark;
@@ -129,7 +132,7 @@ my %uniqueCategories = ();
 
 sub loadTestsList()
 {
-    open TESTLIST, "<", "tests/${suite}/LIST" or die "Can't find ./tests/${suite}/LIST";
+    open TESTLIST, "<", "${suitePath}/LIST" or die "Can't find ${suitePath}/LIST";
     while (<TESTLIST>) {
         chomp;
         next unless !$testsPattern || /$testsPattern/;
@@ -151,7 +154,7 @@ my $resultsFile = "$resultDirectory/sunspider-results-$timeString.js";
 
 sub writePrefixFile()
 {
-    my $prefix = "var suiteName = " . '"' . $suite . '"' . ";\n";
+    my $prefix = "var suitePath = " . '"' . $suitePath . '"' . ";\n";
     $prefix .= "var tests = [ " . join(", ", map { '"' . $_ . '"' } @tests) . " ];\n";
     $prefix .= "var categories = [ " . join(", ", map { '"' . $_ . '"' } @categories) . " ];\n";
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list