add build test using a build directory

This commit is contained in:
josh committed 2013-07-15 19:14:52 -04:00
1 parent 741f5cfe5e
commit 2cb584312e
7 files changed
+46 -13

No files matched your search

+7
View File
@@ -112,4 +112,11 @@ describe Rscons do
lines = build_testdir
lines.should == ['gcc -o simple simple.o -lc']
end
it 'builds object files in a different build directory' do
lines = test_dir('build_dir')
`./build_dir`.should == "Hello from two()\n"
File.exists?('build/one/one.o').should be_true
File.exists?('build/two/two.o').should be_true
end
end