]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/testing_support.py
3 # Copyright 2008 Jurko Gospodnetic
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7 # Tests different aspects of Boost Builds automated testing support.
12 ################################################################################
14 # test_files_with_spaces_in_their_name()
15 # --------------------------------------
17 ################################################################################
19 def test_files_with_spaces_in_their_name():
20 """Regression test making sure test result files get created correctly when
21 testing files with spaces in their name.
24 t
= BoostBuild
.Tester(use_test_config
=False)
26 t
.write("valid source.cpp", "int main() {}\n");
28 t
.write("invalid source.cpp", "this is not valid source code");
30 t
.write("jamroot.jam", """
32 testing.compile "valid source.cpp" ;
33 testing.compile-fail "invalid source.cpp" ;
36 t
.run_build_system(status
=0)
37 t
.expect_addition("bin/invalid source.test/$toolset/debug*/invalid source.obj")
38 t
.expect_addition("bin/invalid source.test/$toolset/debug*/invalid source.test")
39 t
.expect_addition("bin/valid source.test/$toolset/debug*/valid source.obj")
40 t
.expect_addition("bin/valid source.test/$toolset/debug*/valid source.test")
42 t
.expect_content("bin/valid source.test/$toolset/debug*/valid source.test", \
45 "bin/invalid source.test/$toolset/debug*/invalid source.test", \
48 "bin/invalid source.test/$toolset/debug*/invalid source.obj", \
49 "failed as expected" )
54 ################################################################################
59 ################################################################################
61 test_files_with_spaces_in_their_name()