Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/print.py @ 32

Last change on this file since 32 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 952 bytes
Line 
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.
6# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7
8from BoostBuild import Tester, List
9
10t = Tester()
11
12t.write("project-root.jam", "import gcc ;")
13t.write("Jamfile", """
14import print ;
15print.output foo ;
16print.text \\\"Something\\\" ;
17DEPENDS all : foo ;
18ALWAYS foo ;
19""")
20
21t.run_build_system()
22t.expect_content("foo", """\"Something\"""")
23
24t.write("Jamfile", """
25import print ;
26print.output foo ;
27print.text \\\n\\\"Somethingelse\\\" ;
28DEPENDS all : foo ;
29ALWAYS foo ;
30""")
31
32t.run_build_system()
33t.expect_content("foo", """\"Something\"
34\"Somethingelse\"""")
35
36t.write("Jamfile", """
37import print ;
38print.output foo ;
39print.text \\\"Different\\\" : true ;
40DEPENDS all : foo ;
41ALWAYS foo ;
42""")
43
44t.run_build_system()
45t.expect_content("foo", """\"Different\"""")
46
47t.cleanup()
Note: See TracBrowser for help on using the repository browser.