test :short echo mode

This commit is contained in:
josh committed 2013-07-07 19:54:05 -04:00
1 parent 03f8f56858
commit 2f907ab3eb
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
Rscons::Environment.new do |env| Rscons::Environment.new(echo: :short) do |env|
env.Program('header', Dir['*.c']) env.Program('header', Dir['*.c'])
end end
+8
View File
@@ -52,6 +52,14 @@ gcc -o simple simple.o
EOF EOF
end end
it 'prints short representations of the commands being executed' do
test_dir('header')
File.read('build.out').should == <<EOF
CC header.o
LD header
EOF
end
it 'builds a C program with one source file and one header file' do it 'builds a C program with one source file and one header file' do
test_dir('header') test_dir('header')
File.exists?('header.o').should be_true File.exists?('header.o').should be_true