Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | from BoostBuild import Tester, List |
---|
4 | import os |
---|
5 | from string import strip |
---|
6 | import re |
---|
7 | |
---|
8 | def match_re(actual,expected): |
---|
9 | return re.match(expected,actual,re.DOTALL) != None |
---|
10 | |
---|
11 | t = Tester(match = match_re) |
---|
12 | |
---|
13 | t.set_tree('testing-primitives') |
---|
14 | |
---|
15 | # We expect t5 and t7's output to be dumped to stdout |
---|
16 | t.run_build_system(stdout=r'''.*failing t5.*failing t7''') |
---|
17 | |
---|
18 | t.expect_addition('t2.txt') |
---|
19 | t.expect_addition('t3.txt') |
---|
20 | |
---|
21 | t.expect_addition('t5.out') |
---|
22 | |
---|
23 | t.expect_addition('t6.out') |
---|
24 | t.expect_addition('t6.txt') |
---|
25 | |
---|
26 | t.expect_addition('t7.out') |
---|
27 | t.expect_addition('t7.txt') |
---|
28 | |
---|
29 | t.expect_addition('t8.out') |
---|
30 | |
---|
31 | t.expect_nothing_more() |
---|
32 | t.cleanup() |
---|
33 | print 'tesing complete' |
---|
Note: See
TracBrowser
for help on using the repository browser.