test :short echo mode
This commit is contained in:
parent
03f8f56858
commit
2f907ab3eb
@ -1,3 +1,3 @@
|
||||
Rscons::Environment.new do |env|
|
||||
Rscons::Environment.new(echo: :short) do |env|
|
||||
env.Program('header', Dir['*.c'])
|
||||
end
|
||||
|
@ -52,6 +52,14 @@ gcc -o simple simple.o
|
||||
EOF
|
||||
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
|
||||
test_dir('header')
|
||||
File.exists?('header.o').should be_true
|
||||
|
Loading…
x
Reference in New Issue
Block a user