Add Size builder - close #143

This commit is contained in:
josh committed 2022-01-17 12:50:38 -05:00
1 parent a316c4f922
commit 610b8f1266
6 files changed
+65

No files matched your search

+15
View File
@@ -1672,6 +1672,21 @@ EOF
end
end
context "Size builder" do
it "generates a size file" do
test_dir "simple"
result = run_rscons(rsconscript: "size.rb")
verify_lines(lines(result.stdout), [
/Linking .*simple\.exe/,
/Size .*simple\.exe .*simple\.size/,
])
expect(File.exist?("simple.exe")).to be_truthy
expect(File.exist?("simple.size")).to be_truthy
expect(File.read("simple.size")).to match /text.*data.*bss/
end
end
context "multi-threading" do
it "waits for subcommands in threads for builders that support threaded commands" do
test_dir("simple")