fix PROGSUFFIX handling - close #29
This commit is contained in:
1 parent
d31b4725d2
commit
1880e6650e
6 files changed
+34
-4
No files matched your search
@@ -632,7 +632,7 @@ EOF
|
||||
]
|
||||
end
|
||||
|
||||
it "allows overriding progsuffix" do
|
||||
it "allows overriding PROGSUFFIX" do
|
||||
test_dir("simple")
|
||||
result = run_test(rsconsfile: "progsuffix.rb")
|
||||
expect(result.stderr).to eq ""
|
||||
@@ -642,6 +642,26 @@ EOF
|
||||
]
|
||||
end
|
||||
|
||||
it "does not use PROGSUFFIX when the Program target name expands to a value already containing an extension" do
|
||||
test_dir("simple")
|
||||
result = run_test(rsconsfile: "progsuffix2.rb")
|
||||
expect(result.stderr).to eq ""
|
||||
expect(lines(result.stdout)).to eq [
|
||||
"CC simple.o",
|
||||
"LD simple.out",
|
||||
]
|
||||
end
|
||||
|
||||
it "allows overriding PROGSUFFIX from extra vars passed in to the builder" do
|
||||
test_dir("simple")
|
||||
result = run_test(rsconsfile: "progsuffix3.rb")
|
||||
expect(result.stderr).to eq ""
|
||||
expect(lines(result.stdout)).to eq [
|
||||
"CC simple.o",
|
||||
"LD simple.xyz",
|
||||
]
|
||||
end
|
||||
|
||||
context "backward compatibility" do
|
||||
it "allows a builder to call Environment#run_builder in a non-threaded manner" do
|
||||
test_dir("simple")
|
||||
|
||||
Reference in new issue
Block a user