Last change
on this file since 29 was
29,
checked in by landauf, 16 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 | |
---|
9 | import BoostBuild |
---|
10 | |
---|
11 | t = BoostBuild.Tester(pass_toolset=0) |
---|
12 | |
---|
13 | t.write('file.jam', ''' |
---|
14 | rule make |
---|
15 | { |
---|
16 | DEPENDS $(<) : $(>) ; |
---|
17 | DEPENDS all : $(<) ; |
---|
18 | } |
---|
19 | actions make |
---|
20 | { |
---|
21 | echo "******" making $(<) from $(>) "******" |
---|
22 | echo made from $(>) > $(<) |
---|
23 | } |
---|
24 | |
---|
25 | make aux1 : bar ; |
---|
26 | make foo : bar ; |
---|
27 | REBUILDS foo : bar ; |
---|
28 | make bar : baz ; |
---|
29 | make aux2 : bar ; |
---|
30 | ''') |
---|
31 | |
---|
32 | t.write('baz', 'nothing\n') |
---|
33 | |
---|
34 | t.run_build_system('-ffile.jam bar') |
---|
35 | t.expect_addition('bar') |
---|
36 | t.expect_nothing_more() |
---|
37 | |
---|
38 | t.run_build_system('-ffile.jam foo') |
---|
39 | t.expect_touch('bar') |
---|
40 | t.expect_addition('foo') |
---|
41 | t.expect_nothing_more() |
---|
42 | |
---|
43 | t.run_build_system('-ffile.jam') |
---|
44 | t.expect_addition(['aux1', 'aux2']) |
---|
45 | t.expect_nothing_more() |
---|
46 | |
---|
47 | t.touch('bar') |
---|
48 | t.run_build_system('-ffile.jam') |
---|
49 | t.expect_touch(['foo', 'aux1', 'aux2', 'bar']) |
---|
50 | t.expect_nothing_more() |
---|
51 | |
---|
52 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.