+2006-11-01 Stephanie Lewis <slewis@apple.com>
+
+ Reviewed by Kevin.
+
+ Fixed bug where additional arguments got fed to xcode and jsdriver.pl
+ Since testkjs is being built before the tests are run, we don't need
+ to build it with webkit.
+
+ Fixes bugs
+ http://bugs.webkit.org/show_bug.cgi?id=11462
+ http://bugs.webkit.org/show_bug.cgi?id=6168
+
+ * Scripts/build-webkit:
+ * Scripts/run-javascriptcore-tests:
+
2006-11-01 Brady Eidson <beidson@apple.com>
Reviewed by Tim Hatcher
my $result = 0;
if (isOSX()) {
if ($dir eq "JavaScriptCore") {
- $result = system "xcodebuild", "-project", "$dir.xcodeproj", "-target", "All", @options, @ARGV;
+ $result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, @ARGV;
} elsif ($dir eq "WebCore") {
$result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, @additionalWebCoreOptions, @ARGV;
} else {
setConfiguration();
$configuration = configuration();
+my @jsArgs;
+my @xcodeArgs;
+
+# pre-evaluate arguments. jsDriver args have - preceding, xcode args do not.
+foreach my $arg(@ARGV) {
+ print $arg."\n";
+ if( $arg =~ /^-/ ){
+ push( @jsArgs, $arg );
+ } else {
+ push( @xcodeArgs, $arg );
+
+ }
+}
+
# Find JavaScriptCore directory
chdirWebKit();
chdir("JavaScriptCore");
my @options = XcodeOptions();
my $result;
if (isOSX()) {
- $result = system "xcodebuild", "-project", "JavaScriptCore.xcodeproj", "-target", "testkjs", @options, @ARGV;
+ $result = system "xcodebuild", "-project", "JavaScriptCore.xcodeproj", "-target", "testkjs", @options, @xcodeArgs;
}elsif (isCygwin()) {
$result = buildVisualStudioProject( "JavaScriptCore" );
}
}
$testkjsName = determineTestkjsName();
-$result = system "perl", "jsDriver.pl", "-e", "kjs", "-s", "$productDir/$testkjsName", "-f", "actual.html", @ARGV;
+$result = system "perl", "jsDriver.pl", "-e", "kjs", "-s", "$productDir/$testkjsName", "-f", "actual.html", @jsArgs;
exit $result if $result;