add configure spec to check multiple set_define's being stored

This commit is contained in:
josh committed 2018-11-29 22:14:10 -05:00
1 parent 0e27e967d0
commit c0a28d0207
2 files changed
+19

No files matched your search

+11
View File
@@ -1885,6 +1885,17 @@ EOF
expect(result.stdout).to match /Checking for library 'm'\.\.\. found/
expect(result.stdout).to match /Checking for program 'ls'\.\.\. .*ls/
end
it "aggregates multiple set_define's" do
test_dir "configure"
result = run_rscons(rsconscript: "multiple_set_define.rb", op: "configure")
expect(result.stderr).to eq ""
expect(result.status).to eq 0
result = run_rscons(rsconscript: "multiple_set_define.rb", op: "build")
expect(result.stderr).to eq ""
expect(result.status).to eq 0
expect(result.stdout).to match /gcc.*-o.*\.o.*-DHAVE_MATH_H\s.*-DHAVE_STDIO_H/
end
end
end