Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/module_actions.py @ 45

Last change on this file since 45 was 29, checked in by landauf, 17 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 2003 Dave Abrahams
4# Copyright 2006 Rene Rivera
5# Copyright 2003 Vladimir Prus
6# Distributed under the Boost Software License, Version 1.0.
7# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
8
9from BoostBuild import Tester, List
10import os
11import re
12
13spaces_re = re.compile("\ \ +")
14trailing_spaces_re = re.compile("\ +\n")
15
16t = Tester(pass_toolset=0)
17
18t.set_tree('module-actions')
19
20expected = r'''A.act t1: X1-t1   
21B.act t1: X1-t1 X2-B 
22act t1: X1-t1 X2-global X3-global
23A.act t2: X1-A X2-t2 
24B.act t2:  X2-t2 
25act t2: X1-global X2-t2 X3-global
26A.act t3: X1-A  X3-t3
27B.act t3:  X2-B X3-t3
28act t3: X1-global X2-global X3-t3
29'''
30
31# On Unixes, call to 'echo 1     2      3' produces '1 2 3' (note spacing)
32# Accomodate for that fact.
33if os.name != 'nt':
34    expected = re.sub(spaces_re, " ", expected)
35    expected = re.sub(trailing_spaces_re, "\n", expected)   
36
37# We expect t5 and t7's output to be dumped to stdout
38t.run_build_system(
39    stdout = expected
40)
41
42t.expect_nothing_more()
43t.cleanup()
44
Note: See TracBrowser for help on using the repository browser.