Commit a2b6359f authored by mhahnenberg@apple.com's avatar mhahnenberg@apple.com

run-jsc-stress-tests always copies the VM

https://bugs.webkit.org/show_bug.cgi?id=125092

Reviewed by Filip Pizlo.

This can be slow, especially with full debug builds. It should just symlink the VM into the 
bundle by default and do a full copy only when asked.

* Scripts/run-jsc-stress-tests:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bed80c58
2013-12-02 Mark Hahnenberg <mhahnenberg@apple.com>
run-jsc-stress-tests always copies the VM
https://bugs.webkit.org/show_bug.cgi?id=125092
Reviewed by Filip Pizlo.
This can be slow, especially with full debug builds. It should just symlink the VM into the
bundle by default and do a full copy only when asked.
* Scripts/run-jsc-stress-tests:
2013-12-02 Brent Fulgham <bfulgham@apple.com>
[Win] Port run-jsc-stress-tests
......
......@@ -91,6 +91,7 @@ $outputDir = Pathname.new("results")
$verbosity = 0
$bundle = nil
$tarball = false
$copyVM = false
def usage
puts "run-jsc-stress-tests -j <shell path> <collections path> [<collections path> ...]"
......@@ -111,6 +112,7 @@ GetoptLong.new(['--help', '-h', GetoptLong::NO_ARGUMENT],
['--output-dir', '-o', GetoptLong::REQUIRED_ARGUMENT],
['--run-bundle', GetoptLong::REQUIRED_ARGUMENT],
['--tarball', GetoptLong::NO_ARGUMENT],
['--force-vm-copy', GetoptLong::NO_ARGUMENT],
['--verbose', '-v', GetoptLong::NO_ARGUMENT]).each {
| opt, arg |
case opt
......@@ -128,6 +130,9 @@ GetoptLong.new(['--help', '-h', GetoptLong::NO_ARGUMENT],
$bundle = Pathname.new(arg)
when '--tarball'
$tarball = true
$copyVM = true
when '--force-vm-copy'
$copyVM = true
end
}
......@@ -171,13 +176,28 @@ def prepareFramework(jscPath)
$jscPath = $frameworkPath + "Resources" + "jsc"
if frameworkPath
FileUtils.cp_r frameworkPath, $outputDir + ".vm"
source = frameworkPath
destination = Pathname.new(".vm")
else
source = jscPath
destination = $jscPath
Dir.chdir($outputDir) {
FileUtils.mkdir_p $jscPath.dirname
FileUtils.cp jscPath, $jscPath
}
end
Dir.chdir($outputDir) {
if $copyVM
FileUtils.cp_r source, destination
else
begin
FileUtils.ln_s source, destination
rescue
FileUtils.cp_r source, destination
end
end
}
end
def copyVMToBundle
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment