Changeset 48931 in webkit


Ignore:
Timestamp:
Sep 30, 2009 10:15:22 AM (15 years ago)
Author:
ddkilzer@apple.com
Message:

2009-09-30 Csaba Osztrogonac <oszi@inf.u-szeged.hu>

Reviewed by David Kilzer.

Make sunspider scripts work on Windows platform.
https://bugs.webkit.org/show_bug.cgi?id=29656

  • Scripts/run-sunspider: Perl scripts invoked with same Perl interpreter.
  • Scripts/sunspider-compare-results: Perl scripts invoked with same Perl interpreter.
  • Scripts/webkitdirs.pm: currentPerlPath() added.
Location:
trunk/WebKitTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r48917 r48931  
     12009-09-30  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
     2
     3        Reviewed by David Kilzer.
     4
     5        Make sunspider scripts work on Windows platform.
     6        https://bugs.webkit.org/show_bug.cgi?id=29656
     7
     8        * Scripts/run-sunspider: Perl scripts invoked with same Perl interpreter.
     9        * Scripts/sunspider-compare-results: Perl scripts invoked with same Perl interpreter.
     10        * Scripts/webkitdirs.pm: currentPerlPath() added.
     11
    1122009-09-29  Brady Eidson  <beidson@apple.com>
    213
  • trunk/WebKitTools/Scripts/run-sunspider

    r48611 r48931  
    8888       
    8989        chdirWebKit();
    90         my $buildResult = system "WebKitTools/Scripts/build-jsc", @ARGV;
     90        my $buildResult = system currentPerlPath(), "WebKitTools/Scripts/build-jsc", @ARGV;
    9191        if ($buildResult) {
    9292            print STDERR "Compiling jsc failed!\n";
     
    134134push @args, "--tests", $testsPattern if $testsPattern;
    135135
    136 exec "./sunspider", @args;
     136exec currentPerlPath(), "./sunspider", @args;
  • trunk/WebKitTools/Scripts/sunspider-compare-results

    r44555 r48931  
    6868    if (!defined($root)){
    6969        chdirWebKit();
    70         my $buildResult = system "WebKitTools/Scripts/build-jsc", "--" . $configuration;
     70        my $buildResult = system currentPerlPath(), "WebKitTools/Scripts/build-jsc", "--" . $configuration;
    7171        if ($buildResult) {
    7272            print STDERR "Compiling jsc failed!\n";
     
    125125push @args, "--v8" if $v8;
    126126
    127 exec "./sunspider-compare-results", @args, @ARGV;
     127exec currentPerlPath(), "./sunspider-compare-results", @args, @ARGV;
  • trunk/WebKitTools/Scripts/webkitdirs.pm

    r48880 r48931  
    3030use strict;
    3131use warnings;
     32use Config;
    3233use FindBin;
    3334use File::Basename;
     
    8485
    8586    $sourceDir = "$sourceDir/OpenSource" if -d "$sourceDir/OpenSource";
     87}
     88
     89sub currentPerlPath()
     90{
     91    my $thisPerl = $^X;
     92    if ($^O ne 'VMS') {
     93        $thisPerl .= $Config{_exe} unless $thisPerl =~ m/$Config{_exe}$/i;
     94    }
     95    return $thisPerl;
    8696}
    8797
Note: See TracChangeset for help on using the changeset viewer.