Changeset 244543 in webkit


Ignore:
Timestamp:
Apr 23, 2019 9:10:53 AM (5 years ago)
Author:
stephan.szabo@sony.com
Message:

[PlayStation] Support running of JSC tests on remote playstation devices
https://bugs.webkit.org/show_bug.cgi?id=197170

Reviewed by Ross Kirsling.

Script changes

  • Scripts/run-javascriptcore-tests:

(runJSCStressTests): Pass arguments for playstation to
run-jsc-stress-tests

  • Scripts/run-jsc-stress-tests:

Handle $hostOS=="playstation" for determineArchitecture, turning
off $isFTLPlatform and runProfiler and defaulting test writer.

  • Scripts/webkitdirs.pm:

(jscPath): PlayStation WebKit executables have .elf extension
(executableProductDir): PlayStation builds on Windows hosts but
uses bin directory rather than bin64/bin32 for executable output
location.

  • Scripts/webkitruby/jsc-stress-test-writer-playstation.rb: Added.
Location:
trunk/Tools
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r244541 r244543  
     12019-04-23  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [PlayStation] Support running of JSC tests on remote playstation devices
     4        https://bugs.webkit.org/show_bug.cgi?id=197170
     5
     6        Reviewed by Ross Kirsling.
     7
     8        Script changes
     9
     10        * Scripts/run-javascriptcore-tests:
     11        (runJSCStressTests): Pass arguments for playstation to
     12        run-jsc-stress-tests
     13        * Scripts/run-jsc-stress-tests:
     14        Handle $hostOS=="playstation" for determineArchitecture, turning
     15        off $isFTLPlatform and runProfiler and defaulting test writer.
     16        * Scripts/webkitdirs.pm:
     17        (jscPath): PlayStation WebKit executables have .elf extension
     18        (executableProductDir): PlayStation builds on Windows hosts but
     19        uses bin directory rather than bin64/bin32 for executable output
     20        location.
     21        * Scripts/webkitruby/jsc-stress-test-writer-playstation.rb: Added.
     22
    1232019-04-23  Don Olmstead  <don.olmstead@sony.com>
    224
  • trunk/Tools/Scripts/run-javascriptcore-tests

    r243278 r244543  
    541541    push(@jscStressDriverCmd, ("--verbose") x $verbose) if ($verbose > 0);
    542542
     543    if (isPlayStation()) {
     544        push(@jscStressDriverCmd, "--os=playstation");
     545        push(@jscStressDriverCmd, "--no-copy");
     546    }
     547
    543548    unshift @jscStressDriverCmd, wrapperPrefixIfNeeded() if shouldUseJhbuild();
    544549
  • trunk/Tools/Scripts/run-jsc-stress-tests

    r244241 r244543  
    426426    when "windows"
    427427        determineArchitectureFromPEBinary
     428    when "playstation"
     429        "x86-64"
    428430    else
    429431        $stderr.puts "Warning: unable to determine architecture on this platform."
     
    448450$hostOS = determineOS unless $hostOS
    449451$architecture = determineArchitecture unless $architecture
    450 $isFTLPlatform = !($architecture == "x86" || $architecture == "arm" || $architecture == "mips" || $hostOS == "windows")
     452$isFTLPlatform = !($architecture == "x86" || $architecture == "arm" || $architecture == "mips" || $hostOS == "windows" || $hostOS == "playstation")
    451453
    452454if $architecture == "x86"
     
    470472if $remoteHosts.length > 1 and $testRunnerType != :make
    471473    raise "Multiple remote hosts only supported with make runner"
     474end
     475
     476if $hostOS == "playstation" && $testWriter == "default"
     477    $testWriter = "playstation"
    472478end
    473479
     
    505511    if parentDirectory.basename.to_s == "Resources" and parentDirectory.dirname.basename.to_s == "JavaScriptCore.framework"
    506512        parentDirectory.dirname
     513    elsif $hostOS == "playstation"
     514        jscPath.dirname
    507515    elsif parentDirectory.basename.to_s =~ /^Debug/ or parentDirectory.basename.to_s =~ /^Release/
    508516        jscPath.dirname + "JavaScriptCore.framework"
     
    902910
    903911def runProfiler
    904     if $remote or ($architecture !~ /x86/i and $hostOS == "darwin") or ($hostOS == "windows")
     912    if $remote or ($architecture !~ /x86/i and $hostOS == "darwin") or ($hostOS == "windows") or ($hostOS == "playstation")
    905913        skip
    906914        return
  • trunk/Tools/Scripts/webkitdirs.pm

    r244171 r244543  
    469469    my $jscName = "jsc";
    470470    $jscName .= "_debug"  if configuration() eq "Debug_All";
    471     $jscName .= ".exe" if (isAnyWindows());
     471    if (isPlayStation()) {
     472        $jscName .= ".elf";
     473    } elsif (isAnyWindows()) {
     474        $jscName .= ".exe";
     475    }
    472476    return "$productDir/$jscName" if -e "$productDir/$jscName";
    473477    return "$productDir/JavaScriptCore.framework/Resources/$jscName";
     
    766770
    767771    my $binaryDirectory;
    768     if (isAnyWindows()) {
     772    if (isAnyWindows() && !isPlayStation()) {
    769773        $binaryDirectory = isWin64() ? "bin64" : "bin32";
    770     } elsif (isGtk() || isJSCOnly() || isWPE()) {
     774    } elsif (isGtk() || isJSCOnly() || isWPE() || isPlayStation()) {
    771775        $binaryDirectory = "bin";
    772776    } else {
Note: See TracChangeset for help on using the changeset viewer.