]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/message.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / test / message.py
1 #!/usr/bin/python
2
3 # Copyright (C) Vladimir Prus 2003.
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7
8 # Test for the regression testing framework.
9
10 import BoostBuild
11
12 # Create a temporary working directory.
13 t = BoostBuild.Tester(use_test_config=False)
14
15 t.write("Jamroot.jam", """
16 project
17 :
18 : usage-requirements <define>TEST=1
19 : default-build <link>static
20 ;
21 message hello : "Hello World!" ;
22 alias hello : : <link>shared ;
23 obj test : test.cpp hello : <link>static ;
24 """)
25
26 t.write("test.cpp", """
27 #ifndef TEST
28 #error TEST not defined
29 #endif
30 """)
31
32 t.run_build_system(["test"], stdout="""Hello World!
33 """)
34
35 t.expect_addition("bin/$toolset/link-static/test.obj")
36 t.expect_nothing_more()
37
38 t.cleanup()