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:
716 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2006. |
---|
4 | # Distributed under the Boost Software License, Version 1.0. (See |
---|
5 | # accompanying file LICENSE_1_0.txt or copy at |
---|
6 | # http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | # Test the 'libraries' example. |
---|
9 | from BoostBuild import Tester, List |
---|
10 | import os |
---|
11 | import string |
---|
12 | |
---|
13 | # Create a temporary working directory |
---|
14 | t = Tester() |
---|
15 | |
---|
16 | t.set_tree("../example/gettext") |
---|
17 | |
---|
18 | t.run_build_system(stderr=None) |
---|
19 | |
---|
20 | t.expect_addition(["bin/$toolset/debug/main.exe", |
---|
21 | "bin/$toolset/debug/russian.mo"]) |
---|
22 | |
---|
23 | |
---|
24 | file = t.adjust_names(["bin/$toolset/debug/main.exe"])[0] |
---|
25 | |
---|
26 | input_fd = os.popen(file) |
---|
27 | input = input_fd.read(); |
---|
28 | |
---|
29 | t.fail_test(string.find(input, "international hello") != 0) |
---|
30 | |
---|
31 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.