Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/print.py @ 12

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

added boost

File size: 740 bytes
Line 
1#!/usr/bin/python
2
3from BoostBuild import Tester, List
4
5t = Tester()
6
7t.write("project-root.jam", "import gcc ;")
8t.write("Jamfile", """
9import print ;
10print.output foo ;
11print.text \\\"Something\\\" ;
12DEPENDS all : foo ;
13ALWAYS foo ;
14""")
15
16t.run_build_system()
17t.expect_content("foo", """\"Something\"
18""")
19
20t.write("Jamfile", """
21import print ;
22print.output foo ;
23print.text \\\"Somethingelse\\\" ;
24DEPENDS all : foo ;
25ALWAYS foo ;
26""")
27
28t.run_build_system()
29t.expect_content("foo", """\"Something\"
30\"Somethingelse\"
31""")
32
33t.write("Jamfile", """
34import print ;
35print.output foo ;
36print.text \\\"Different\\\" : true ;
37DEPENDS all : foo ;
38ALWAYS foo ;
39""")
40
41t.run_build_system()
42t.expect_content("foo", """\"Different\"
43""")
44
45t.cleanup()
Note: See TracBrowser for help on using the repository browser.