]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/example_gettext.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / test / example_gettext.py
CommitLineData
7c673cae
FG
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 'gettext' example.
9
10import BoostBuild
11import os
12import string
13
14t = BoostBuild.Tester()
15
16t.set_tree("../example/gettext")
17
18t.run_build_system(stderr=None)
19
b32b8144
FG
20t.expect_addition(["bin/$toolset/debug*/main.exe",
21 "bin/$toolset/debug*/russian.mo"])
7c673cae 22
b32b8144 23file = t.adjust_names(["bin/$toolset/debug*/main.exe"])[0]
7c673cae
FG
24
25input_fd = os.popen(file)
26input = input_fd.read();
27
28t.fail_test(string.find(input, "international hello") != 0)
29
30t.cleanup()