Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/rebuilds.py @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

  • Property svn:executable set to *
File size: 856 bytes
Line 
1#!/usr/bin/python
2
3# This tests the typechecking facilities.
4
5import BoostBuild
6
7t = BoostBuild.Tester(pass_toolset=0)
8
9t.write('file.jam', '''
10rule make
11{
12    DEPENDS $(<) : $(>) ;
13    DEPENDS all : $(<) ;
14}
15actions make
16{
17    echo "******" making $(<) from $(>) "******"
18    echo made from $(>) >> $(<)
19}
20
21make aux1 : bar ;
22make foo : bar ;
23REBUILDS foo : bar ;
24make bar : baz ;
25make aux2 : bar ;
26''')
27
28t.write('baz', 'nothing\n')
29
30t.run_build_system('-ffile.jam bar')
31t.expect_addition('bar')
32t.expect_nothing_more()
33
34t.run_build_system('-ffile.jam foo')
35t.expect_touch('bar')
36t.expect_addition('foo')
37t.expect_nothing_more()
38
39t.run_build_system('-ffile.jam')
40t.expect_addition(['aux1', 'aux2'])
41t.expect_nothing_more()
42
43t.touch('bar')
44t.run_build_system('-ffile.jam')
45t.expect_touch(['foo', 'aux1', 'aux2', 'bar'])
46t.expect_nothing_more()
47
48t.cleanup()
Note: See TracBrowser for help on using the repository browser.