]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/example_gettext.py
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)
8 # Test the 'gettext' example.
14 t
= BoostBuild
.Tester()
16 t
.set_tree("../example/gettext")
18 t
.run_build_system(stderr
=None)
20 t
.expect_addition(["bin/$toolset/debug/main.exe",
21 "bin/$toolset/debug/russian.mo"])
23 file = t
.adjust_names(["bin/$toolset/debug/main.exe"])[0]
25 input_fd
= os
.popen(file)
26 input = input_fd
.read();
28 t
.fail_test(string
.find(input, "international hello") != 0)