WebKit Bugzilla
Attachment 338916 Details for
Bug 185049
: [WinCairo] Support --no-copy for jsc tests in wincairo tests, add copying of dlls for copy case
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-185049-20180426143514.patch (text/plain), 5.19 KB, created by
Stephan Szabo
on 2018-04-26 14:35:15 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Stephan Szabo
Created:
2018-04-26 14:35:15 PDT
Size:
5.19 KB
patch
obsolete
>Subversion Revision: 231061 >diff --git a/Tools/ChangeLog b/Tools/ChangeLog >index be43fc9a34de564606350f2735c83d9e8d571d2b..0c88f168a4856e091f7ce9f0aec771faeff9b8a5 100644 >--- a/Tools/ChangeLog >+++ b/Tools/ChangeLog >@@ -1,3 +1,14 @@ >+2018-04-26 Stephan Szabo <stephan.szabo@sony.com> >+ >+ [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 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * Scripts/run-javascriptcore-tests: >+ (runJSCStressTests): >+ * Scripts/run-jsc-stress-tests: >+ > 2018-04-26 Ross Kirsling <ross.kirsling@sony.com> > > WinCairo WKL Debug Test bot is not using DRT. >diff --git a/Tools/Scripts/run-javascriptcore-tests b/Tools/Scripts/run-javascriptcore-tests >index c5ba1c1ca9134b451e743d93453e86b6e9185276..75f16a475566a26664063776fa631d9d69c54cc7 100755 >--- a/Tools/Scripts/run-javascriptcore-tests >+++ b/Tools/Scripts/run-javascriptcore-tests >@@ -58,6 +58,7 @@ my $testWriter; > my $memoryLimited; > > my $buildJSC = 1; >+my $copyJSC = 1; > > use constant { > ENV_VAR_SAYS_DO_RUN => 4, >@@ -148,6 +149,17 @@ if ($ENV{RUN_JAVASCRIPTCORE_TESTS_BUILD}) { > } > } > >+if ($ENV{RUN_JAVASCRIPTCORE_TESTS_COPY}) { >+ if ($ENV{RUN_JAVASCRIPTCORE_TESTS_COPY} eq "true") { >+ $copyJSC = 1; >+ } elsif ($ENV{RUN_JAVASCRIPTCORE_TESTS_COPY} eq "false") { >+ $copyJSC = 0; >+ } else { >+ print "Don't recognize value for RUN_JAVASCRIPTCORE_TESTS_COPY environment variable: '" >+ . $ENV{RUN_JAVASCRIPTCORE_TESTS_COPY} . "'. Should be set to 'true' or 'false'.\n"; >+ } >+} >+ > if ($ENV{RUN_JAVASCRIPTCORE_TESTS_EXTRA_TESTS}) { > push @extraTests, $ENV{RUN_JAVASCRIPTCORE_TESTS_EXTRA_TESTS}; > } >@@ -174,6 +186,7 @@ my $mozillaTestsDefault = defaultStringForTestState($runMozillaTests); > my $jitStressTestsDefault = $runJITStressTests ? "will run" : " will not run"; > my $quickModeDefault = $runQuickMode ? "some" : "all"; > my $failFastDefault = $failFast ? "fail fast" : "don't fail fast"; >+my $copyJSCDefault = $copyJSC ? "copy" : "do not copy"; > my $filter; > my $usage = <<EOF; > Usage: $programName [options] [options to pass to build system] >@@ -194,6 +207,7 @@ Usage: $programName [options] [options to pass to build system] > > --[no-]fail-fast Stop this script when a test family reports an error or failure (default: $failFastDefault) > --[no-]force-collectContinuously Enable the collectContinuously mode even if it was disabled on this platform. >+ --[no-]copy Copy (or don't copy) the JavaScriptCore build product before testing (default: $copyJSCDefault) > --json-output= Create a file at specified path, listing failed stress tests in JSON format. > --tarball Create a tarball of the bundle produced by running the JSC stress tests. > --remote= Run the JSC stress tests on the specified remote host. Implies --tarball. >@@ -248,6 +262,7 @@ GetOptions( > 'quick!' => \$runQuickMode, > 'fail-fast!' => \$failFast, > 'force-collectContinuously!' => \$forceCollectContinuously, >+ 'copy!' => \$copyJSC, > 'json-output=s' => \$jsonFileName, > 'tarball!' => \$createTarball, > 'remote=s' => \$remoteHost, >@@ -437,6 +452,10 @@ sub runJSCStressTests > push(@jscStressDriverCmd, "--debug"); > } > >+ if (!$copyJSC) { >+ push(@jscStressDriverCmd, "--no-copy"); >+ } >+ > if ($forceCollectContinuously) { > push(@jscStressDriverCmd, "--force-collectContinuously"); > } >diff --git a/Tools/Scripts/run-jsc-stress-tests b/Tools/Scripts/run-jsc-stress-tests >index e9c1bb0c0578a351528e33a6f890fca1fd75e94c..616ef59ebd4ad7a1366ff4af5187cf5afbbbecbd 100755 >--- a/Tools/Scripts/run-jsc-stress-tests >+++ b/Tools/Scripts/run-jsc-stress-tests >@@ -1578,8 +1578,8 @@ def prepareBundle > raise if $bundle > > if $doNotMessWithVMPath >- if !$remote and !$tarball >- $testingFrameworkPath = frameworkFromJSCPath($jscPath).realpath >+ if !$remote and !$tarball >+ $testingFrameworkPath = (frameworkFromJSCPath($jscPath) || $jscPath.dirname).realpath > $jscPath = Pathname.new($jscPath).realpath > else > $testingFrameworkPath = frameworkFromJSCPath($jscPath) >@@ -1599,7 +1599,19 @@ def prepareBundle > destination = Pathname.new(".vm") > elsif $hostOS == "windows" > # Make sure to copy dll along with jsc on Windows >- source = [originalJSCPath] + Dir.glob(File.dirname(originalJSCPath) + "/jscLib.dll") >+ originalJSCDir = File.dirname(originalJSCPath) >+ source = [originalJSCPath] + [originalJSCDir + "/jscLib.dll"] >+ >+ # Check for and copy JavaScriptCore.dll and WTF.dll for dynamic builds >+ javaScriptCoreDLLPath = File.join(originalJSCDir, "JavaScriptCore.dll") >+ wtfDLLPath = File.join(originalJSCDir, "WTF.dll") >+ if (File.exists?(javaScriptCoreDLLPath)) >+ source = source + [javaScriptCoreDLLPath] >+ end >+ if (File.exists?(wtfDLLPath)) >+ source = source + [wtfDLLPath] >+ end >+ > destination = $jscPath.dirname > > Dir.chdir($outputDir) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
keith_miller
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185049
:
338916
|
339027
|
339034