fully parallelize the Disassemble builder

This commit is contained in:
josh committed 2017-05-25 14:59:51 -04:00
1 parent a11fab43cb
commit 145d51c825
3 files changed
+25 -21

No files matched your search

+5
View File
@@ -439,10 +439,15 @@ EOF
it "supports disassembling object files" do
test_dir("simple")
result = run_test(rsconsfile: "disassemble.rb")
expect(result.stderr).to eq ""
expect(File.exists?("simple.txt")).to be_truthy
expect(File.read("simple.txt")).to match /Disassembly of section .text:/
result = run_test(rsconsfile: "disassemble.rb")
expect(result.stderr).to eq ""
expect(result.stdout).to eq ""
end
it "supports preprocessing C sources" do
-17
View File
@@ -1,17 +0,0 @@
module Rscons
module Builders
describe Disassemble do
let(:env) {Environment.new}
subject {Disassemble.new}
it "supports overriding DISASM_CMD construction variable" do
cache = "cache"
allow(cache).to receive(:up_to_date?) { false }
allow(cache).to receive(:mkdir_p) { }
allow(cache).to receive(:register_build) { }
expect(env).to receive(:execute).with("Disassemble a_file.txt", ["my_disasm", "a_file.exe"], anything).and_return(true)
subject.run("a_file.txt", ["a_file.exe"], cache, env, "DISASM_CMD" => ["my_disasm", "${_SOURCES}"])
end
end
end
end