Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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