1#!/usr/local/bin/python3.8
2
3# Copyright 2003 Douglas Gregor
4# Copyright 2005 Vladimir Prus
5# Distributed under the Boost Software License, Version 1.0.
6# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
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()
49