Title: [153854] trunk/Tools
Revision
153854
Author
[email protected]
Date
2013-08-08 15:51:14 -0700 (Thu, 08 Aug 2013)

Log Message

Add iOS support to run-_javascript_core-tests
https://bugs.webkit.org/show_bug.cgi?id=119602

Reviewed by Joseph Pecoraro.

Make run-_javascript_core-tests work for iOS WebKit.

* Scripts/run-_javascript_core-tests:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (153853 => 153854)


--- trunk/Tools/ChangeLog	2013-08-08 22:46:05 UTC (rev 153853)
+++ trunk/Tools/ChangeLog	2013-08-08 22:51:14 UTC (rev 153854)
@@ -1,3 +1,14 @@
+2013-08-08  Daniel Bates  <[email protected]>
+
+        Add iOS support to run-_javascript_core-tests
+        https://bugs.webkit.org/show_bug.cgi?id=119602
+
+        Reviewed by Joseph Pecoraro.
+
+        Make run-_javascript_core-tests work for iOS WebKit.
+
+        * Scripts/run-_javascript_core-tests:
+
 2013-08-08  Alexey Proskuryakov  <[email protected]>
 
         [WK2] loader/go-back-cached-main-resource.html fails

Modified: trunk/Tools/Scripts/run-_javascript_core-tests (153853 => 153854)


--- trunk/Tools/Scripts/run-_javascript_core-tests	2013-08-08 22:46:05 UTC (rev 153853)
+++ trunk/Tools/Scripts/run-_javascript_core-tests	2013-08-08 22:51:14 UTC (rev 153854)
@@ -126,10 +126,12 @@
 if (isAppleMacWebKit() || isAppleWinWebKit()) {
     chdirWebKit();
     chdir($productDir) or die "Failed to switch directory to '$productDir'\n";
-    my $path = testapiPath($productDir);
+    my @command = (testapiPath($productDir));
+    unshift @command, ("xcrun", "-sdk", xcodeSDK(), "sim") if willUseIOSSimulatorSDKWhenBuilding();
+
     # Use an "indirect object" so that system() won't get confused if the path
     # contains spaces (see perldoc -f exec).
-    my $testapiResult = system { $path } $path;
+    my $testapiResult = system { $command[0] } @command;
     exit exitStatus($testapiResult)  if $testapiResult;
 }
 
@@ -149,6 +151,8 @@
     push(@jhbuildPrefix, 'run');
 
     unshift(@jsDriverCmd, @jhbuildPrefix);
+} elsif (isIOSWebKit() && willUseIOSSimulatorSDKWhenBuilding()) {
+    push @jsDriverCmd, ("--sdk", xcodeSDK());
 }
 print "Running: " . join(" ", @jsDriverCmd) . "\n";
 my $result = system(@jsDriverCmd);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to