Title: [150994] trunk/Source/_javascript_Core
- Revision
- 150994
- Author
- [email protected]
- Date
- 2013-05-30 17:16:29 -0700 (Thu, 30 May 2013)
Log Message
Add --sdk option to jsDriver.pl to run with iOS Simulator
https://bugs.webkit.org/show_bug.cgi?id=116339
Reviewed by David Kilzer.
* tests/mozilla/jsDriver.pl:
(execute_tests):
Prefix shell command with the path to the "sim" tool.
(parse_args):
Add -d / --sdk option.
(usage):
Help message for -d / --sdk option.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (150993 => 150994)
--- trunk/Source/_javascript_Core/ChangeLog 2013-05-30 23:29:55 UTC (rev 150993)
+++ trunk/Source/_javascript_Core/ChangeLog 2013-05-31 00:16:29 UTC (rev 150994)
@@ -1,3 +1,18 @@
+2013-05-22 David Farler <[email protected]>
+
+ Add --sdk option to jsDriver.pl to run with iOS Simulator
+ https://bugs.webkit.org/show_bug.cgi?id=116339
+
+ Reviewed by David Kilzer.
+
+ * tests/mozilla/jsDriver.pl:
+ (execute_tests):
+ Prefix shell command with the path to the "sim" tool.
+ (parse_args):
+ Add -d / --sdk option.
+ (usage):
+ Help message for -d / --sdk option.
+
2013-05-30 Julien Brianceau <[email protected]>
[sh4] Optimize NaN checks in LLINT for floating point comparisons.
Modified: trunk/Source/_javascript_Core/tests/mozilla/jsDriver.pl (150993 => 150994)
--- trunk/Source/_javascript_Core/tests/mozilla/jsDriver.pl 2013-05-30 23:29:55 UTC (rev 150993)
+++ trunk/Source/_javascript_Core/tests/mozilla/jsDriver.pl 2013-05-31 00:16:29 UTC (rev 150994)
@@ -65,9 +65,10 @@
my $opt_lxr_url = "./"; # "http://lxr.mozilla.org/mozilla/source/js/tests/";
my $opt_exit_munge = ($os_type ne "MAC") ? 1 : 0;
my $opt_arch= "";
+my $opt_sim_sdk = "";
# command line option definition
-my $options = "a=s arch>a b=s bugurl>b c=s classpath>c e=s engine>e f=s file>f " .
+my $options = "a=s arch>a b=s bugurl>b c=s classpath>c d=s sdk>d e=s engine>e f=s file>f " .
"h help>h i j=s javapath>j k confail>k l=s list>l L=s neglist>L " .
"o=s opt>o p=s testpath>p s=s shellpath>s t trace>t u=s lxrurl>u " .
"x noexitmunge>x";
@@ -148,7 +149,8 @@
sub execute_tests {
my (@test_list) = @_;
- my ($test, $shell_command, $line, @output, $path);
+ my ($test, $line, @output, $path);
+ my $shell_command = "";
my $file_param = " -f ";
my ($last_suite, $last_test_dir);
@@ -175,7 +177,12 @@
# (only check for their existance if the suite or test_dir has changed
# since the last time we looked.)
if ($last_suite ne $suite || $last_test_dir ne $test_dir) {
- $shell_command = $opt_arch . " ";
+ if ($opt_sim_sdk) {
+ chomp($shell_command = `xcrun -sdk $opt_sim_sdk -find sim`);
+ $shell_command .= " --adopt-pid ";
+ }
+
+ $shell_command .= "$opt_arch ";
$shell_command .= &xp_path($engine_command) . " -s ";
@@ -449,6 +456,11 @@
&dd ("opt: adding negative list '$value'.");
push (@opt_neg_list_files, $value);
+ } elsif ($option eq "d") {
+ $option = 'd';
+ &dd ("opt: using $value simulator SDK to run jsc.");
+ $opt_sim_sdk = $value;
+
} elsif ($option eq "o") {
$opt_engine_params = $value;
&dd ("opt: setting engine params to '$opt_engine_params'.");
@@ -511,6 +523,7 @@
"(-b|--bugurl) Bugzilla URL.\n" .
" (default is $opt_bug_url)\n" .
"(-c|--classpath) Classpath (Rhino only.)\n" .
+ "(-d|--sdk) Use a simulator SDK to run jsc\n" .
"(-e|--engine) <type> ... Specify the type of engine(s) to test.\n" .
" <type> is one or more of\n" .
" (squirrelfish|smopt|smdebug|lcopt|lcdebug|xpcshell|" .
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes