Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/rebuilds.py @ 32

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

updated boost from 1_33_1 to 1_34_1

File size: 1.0 KB
Line 
1#!/usr/bin/python
2
3# Copyright 2005 Dave Abrahams
4# Distributed under the Boost Software License, Version 1.0.
5# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6
7# This tests the typechecking facilities.
8
9import BoostBuild
10
11t = BoostBuild.Tester(pass_toolset=0)
12
13t.write('file.jam', '''
14rule make
15{
16    DEPENDS $(<) : $(>) ;
17    DEPENDS all : $(<) ;
18}
19actions make
20{
21    echo "******" making $(<) from $(>) "******"
22    echo made from $(>) > $(<)
23}
24
25make aux1 : bar ;
26make foo : bar ;
27REBUILDS foo : bar ;
28make bar : baz ;
29make aux2 : bar ;
30''')
31
32t.write('baz', 'nothing\n')
33
34t.run_build_system('-ffile.jam bar')
35t.expect_addition('bar')
36t.expect_nothing_more()
37
38t.run_build_system('-ffile.jam foo')
39t.expect_touch('bar')
40t.expect_addition('foo')
41t.expect_nothing_more()
42
43t.run_build_system('-ffile.jam')
44t.expect_addition(['aux1', 'aux2'])
45t.expect_nothing_more()
46
47t.touch('bar')
48t.run_build_system('-ffile.jam')
49t.expect_touch(['foo', 'aux1', 'aux2', 'bar'])
50t.expect_nothing_more()
51
52t.cleanup()
Note: See TracBrowser for help on using the repository browser.