Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

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