test :short echo mode

This commit is contained in:
Josh Holtrop 2013-07-07 19:54:05 -04:00
parent 03f8f56858
commit 2f907ab3eb
2 changed files with 9 additions and 1 deletions

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

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