Changeset 231122 in webkit


Ignore:
Timestamp:
Apr 27, 2018 5:21:55 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[WinCairo] Support --no-copy for jsc tests in wincairo tests, add copying of dlls for copy case
https://bugs.webkit.org/show_bug.cgi?id=185049

Patch by Stephan Szabo <stephan.szabo@sony.com> on 2018-04-27
Reviewed by Keith Miller.

  • Scripts/run-javascriptcore-tests:

(runJSCStressTests):

  • Scripts/run-jsc-stress-tests:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r231115 r231122  
     12018-04-27  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [WinCairo] Support --no-copy for jsc tests in wincairo tests, add copying of dlls for copy case
     4        https://bugs.webkit.org/show_bug.cgi?id=185049
     5
     6        Reviewed by Keith Miller.
     7
     8        * Scripts/run-javascriptcore-tests:
     9        (runJSCStressTests):
     10        * Scripts/run-jsc-stress-tests:
     11
    1122018-04-26  Ryosuke Niwa  <rniwa@webkit.org>
    213
  • trunk/Tools/Scripts/run-javascriptcore-tests

    r226395 r231122  
    5959
    6060my $buildJSC = 1;
     61my $copyJSC = 1;
    6162
    6263use constant {
     
    146147        print "Don't recognize value for RUN_JAVASCRIPTCORE_TESTS_BUILD environment variable: '"
    147148            . $ENV{RUN_JAVASCRIPTCORE_TESTS_BUILD} . "'. Should be set to 'true' or 'false'.\n";
     149    }
     150}
     151
     152if ($ENV{RUN_JAVASCRIPTCORE_TESTS_COPY}) {
     153    if ($ENV{RUN_JAVASCRIPTCORE_TESTS_COPY} eq "true") {
     154        $copyJSC = 1;
     155    } elsif ($ENV{RUN_JAVASCRIPTCORE_TESTS_COPY} eq "false") {
     156        $copyJSC = 0;
     157    } else {
     158        print "Don't recognize value for RUN_JAVASCRIPTCORE_TESTS_COPY environment variable: '"
     159            . $ENV{RUN_JAVASCRIPTCORE_TESTS_COPY} . "'. Should be set to 'true' or 'false'.\n";
    148160    }
    149161}
     
    175187my $quickModeDefault = $runQuickMode ? "some" : "all";
    176188my $failFastDefault = $failFast ? "fail fast" : "don't fail fast";
     189my $copyJSCDefault = $copyJSC ? "copy" : "do not copy";
    177190my $filter;
    178191my $usage = <<EOF;
     
    195208  --[no-]fail-fast              Stop this script when a test family reports an error or failure (default: $failFastDefault)
    196209  --[no-]force-collectContinuously Enable the collectContinuously mode even if it was disabled on this platform.
     210  --[no-]copy                   Copy (or don't copy) the JavaScriptCore build product before testing (default: $copyJSCDefault)
    197211  --json-output=                Create a file at specified path, listing failed stress tests in JSON format.
    198212  --tarball                     Create a tarball of the bundle produced by running the JSC stress tests.
     
    249263    'fail-fast!' => \$failFast,
    250264    'force-collectContinuously!' => \$forceCollectContinuously,
     265    'copy!' => \$copyJSC,
    251266    'json-output=s' => \$jsonFileName,
    252267    'tarball!' => \$createTarball,
     
    438453    }
    439454   
     455    if (!$copyJSC) {
     456        push(@jscStressDriverCmd, "--no-copy");
     457    }
     458
    440459    if ($forceCollectContinuously) {
    441460        push(@jscStressDriverCmd, "--force-collectContinuously");
  • trunk/Tools/Scripts/run-jsc-stress-tests

    r230759 r231122  
    15801580    if $doNotMessWithVMPath
    15811581        if !$remote and !$tarball
    1582             $testingFrameworkPath = frameworkFromJSCPath($jscPath).realpath
     1582            $testingFrameworkPath = (frameworkFromJSCPath($jscPath) || $jscPath.dirname).realpath
    15831583            $jscPath = Pathname.new($jscPath).realpath
    15841584        else
     
    16001600        elsif $hostOS == "windows"
    16011601            # Make sure to copy dll along with jsc on Windows
    1602             source = [originalJSCPath] + Dir.glob(File.dirname(originalJSCPath) + "/jscLib.dll")
     1602            originalJSCDir = File.dirname(originalJSCPath)
     1603            source = [originalJSCPath] + [originalJSCDir + "/jscLib.dll"]
     1604
     1605            # Check for and copy JavaScriptCore.dll and WTF.dll for dynamic builds
     1606            javaScriptCoreDLLPath = File.join(originalJSCDir, "JavaScriptCore.dll")
     1607            wtfDLLPath = File.join(originalJSCDir, "WTF.dll")
     1608            if (File.exists?(javaScriptCoreDLLPath))
     1609                source = source + [javaScriptCoreDLLPath]
     1610            end
     1611            if (File.exists?(wtfDLLPath))
     1612                source = source + [wtfDLLPath]
     1613            end
     1614
    16031615            destination = $jscPath.dirname
    16041616
Note: See TracChangeset for help on using the changeset viewer.