add pending spec for cache

This commit is contained in:
Josh Holtrop 2013-07-07 20:38:46 -04:00
parent 2939dc8c74
commit 25f0d4e36a

View File

@ -15,13 +15,13 @@ describe Rscons do
if File.exists?("build.rb")
system("ruby -I #{@owd}/lib -r rscons build.rb > build.out")
end
get_build_output
end
def test_dir(build_test_directory)
FileUtils.cp_r("build_tests/#{build_test_directory}", 'build_tests_run')
Dir.chdir("build_tests_run")
build_testdir
get_build_output
end
def file_sub(fname)
@ -78,4 +78,15 @@ describe Rscons do
build_testdir
`./header`.should == "The value is 5\n"
end
xit 'does not rebuild a C module when its dependencies have not changed' do
lines = test_dir('header')
`./header`.should == "The value is 2\n"
lines.should == [
'CC header.o',
'LD header',
]
lines = build_testdir
lines.should == []
end
end