mirror of
https://github.com/boostorg/build.git
synced 2026-02-18 01:52:17 +00:00
builtins.{c,h}
Support for the REBUILDS rule
remove unused variable
rules.h
make.c
Support for the REBUILDS rule
make1.c
Support for the REBUILDS rule
Support for recording timing information
Restructured a case statement because it was masking a bug I
introduced.
execcmd.h
execnt.c
execunix.c
Support for recording timing information
Also removed NT-specific stuff from execunix
expand.c
Removed tabs from critical comment
Added tab-width variable setting comment for emacs.
v2/test
rebuilds.py, timedata.py, test_all.py
Tests for REBUILDS and timing.
[SVN r27334]
49 lines
856 B
Python
49 lines
856 B
Python
#!/usr/bin/python
|
|
|
|
# This tests the typechecking facilities.
|
|
|
|
import BoostBuild
|
|
|
|
t = BoostBuild.Tester(pass_toolset=0)
|
|
|
|
t.write('file.jam', '''
|
|
rule make
|
|
{
|
|
DEPENDS $(<) : $(>) ;
|
|
DEPENDS all : $(<) ;
|
|
}
|
|
actions make
|
|
{
|
|
echo "******" making $(<) from $(>) "******"
|
|
echo made from $(>) >> $(<)
|
|
}
|
|
|
|
make aux1 : bar ;
|
|
make foo : bar ;
|
|
REBUILDS foo : bar ;
|
|
make bar : baz ;
|
|
make aux2 : bar ;
|
|
''')
|
|
|
|
t.write('baz', 'nothing\n')
|
|
|
|
t.run_build_system('-ffile.jam bar')
|
|
t.expect_addition('bar')
|
|
t.expect_nothing_more()
|
|
|
|
t.run_build_system('-ffile.jam foo')
|
|
t.expect_touch('bar')
|
|
t.expect_addition('foo')
|
|
t.expect_nothing_more()
|
|
|
|
t.run_build_system('-ffile.jam')
|
|
t.expect_addition(['aux1', 'aux2'])
|
|
t.expect_nothing_more()
|
|
|
|
t.touch('bar')
|
|
t.run_build_system('-ffile.jam')
|
|
t.expect_touch(['foo', 'aux1', 'aux2', 'bar'])
|
|
t.expect_nothing_more()
|
|
|
|
t.cleanup()
|