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