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 20t.expect_addition(["bin/$toolset/debug*/main.exe", 21 "bin/$toolset/debug*/russian.mo"]) 22 23file = t.adjust_names(["bin/$toolset/debug*/main.exe"])[0] 24 25input_fd = os.popen(file) 26input = input_fd.read(); 27 28t.fail_test(input.find("international hello") != 0) 29 30t.cleanup() 31