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