From 25f0d4e36a8b3180b49e3fac5425585b197afc09 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 7 Jul 2013 20:38:46 -0400 Subject: [PATCH] add pending spec for cache --- spec/build_tests_spec.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/spec/build_tests_spec.rb b/spec/build_tests_spec.rb index 02415db..5fc3488 100644 --- a/spec/build_tests_spec.rb +++ b/spec/build_tests_spec.rb @@ -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