add build test for D

This commit is contained in:
josh committed 2013-11-05 16:29:15 -05:00
1 parent cc2c2733fc
commit 30564af558
2 files changed
+20

No files matched your search

+14
View File
@@ -304,4 +304,18 @@ EOF
'gcc -o tweaker build_one/one.o build_two/two.o',
]
end
unless ENV["omit_gdc_tests"]
it "supports building D sources" do
test_dir("d")
Rscons::Environment.new do |env|
env.Program("hello-d", Dir["*.d"])
end
lines.should == [
"gdc -c -o main.o main.d",
"gdc -o hello-d main.o",
]
`./hello-d`.rstrip.should == "Hello from D!"
end
end
end