|
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 | |
|---|
| 9 | from BoostBuild import Tester, List |
|---|
| 10 | import os |
|---|
| 11 | import re |
|---|
| 12 | |
|---|
| 13 | spaces_re = re.compile("\ \ +") |
|---|
| 14 | trailing_spaces_re = re.compile("\ +\n") |
|---|
| 15 | |
|---|
| 16 | t = Tester(pass_toolset=0) |
|---|
| 17 | |
|---|
| 18 | t.set_tree('module-actions') |
|---|
| 19 | |
|---|
| 20 | expected = r'''A.act t1: X1-t1 |
|---|
| 21 | B.act t1: X1-t1 X2-B |
|---|
| 22 | act t1: X1-t1 X2-global X3-global |
|---|
| 23 | A.act t2: X1-A X2-t2 |
|---|
| 24 | B.act t2: X2-t2 |
|---|
| 25 | act t2: X1-global X2-t2 X3-global |
|---|
| 26 | A.act t3: X1-A X3-t3 |
|---|
| 27 | B.act t3: X2-B X3-t3 |
|---|
| 28 | act 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. |
|---|
| 33 | if 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 |
|---|
| 38 | t.run_build_system( |
|---|
| 39 | stdout = expected |
|---|
| 40 | ) |
|---|
| 41 | |
|---|
| 42 | t.expect_nothing_more() |
|---|
| 43 | t.cleanup() |
|---|
| 44 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.