]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/print.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / print.py
CommitLineData
7c673cae
FG
1#!/usr/bin/python
2
3# Copyright 2003 Douglas Gregor
4# Copyright 2005 Vladimir Prus
5# Distributed under the Boost Software License, Version 1.0.
1e59de90 6# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
7
8import BoostBuild
9
10t = BoostBuild.Tester()
11
12t.write("jamroot.jam", "import gcc ;")
13
14t.write("jamfile.jam", """
15import print ;
16print.output foo ;
17print.text \\\"Something\\\" ;
18DEPENDS all : foo ;
19ALWAYS foo ;
20""")
21
22t.run_build_system()
23t.expect_content("foo", """\"Something\"""")
24
25t.write("jamfile.jam", """
26import print ;
27print.output foo ;
28print.text \\\n\\\"Somethingelse\\\" ;
29DEPENDS all : foo ;
30ALWAYS foo ;
31""")
32
33t.run_build_system()
34t.expect_content("foo", """\"Something\"
35\"Somethingelse\"""")
36
37t.write("jamfile.jam", """
38import print ;
39print.output foo ;
40print.text \\\"Different\\\" : true ;
41DEPENDS all : foo ;
42ALWAYS foo ;
43""")
44
45t.run_build_system()
46t.expect_content("foo", """\"Different\"""")
47
48t.cleanup()