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:
1.2 KB
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright 2003, 2004 Vladimir Prus |
---|
4 | # Distributed under the Boost Software License, Version 1.0. |
---|
5 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
6 | |
---|
7 | from BoostBuild import Tester, List |
---|
8 | |
---|
9 | t = Tester() |
---|
10 | |
---|
11 | # Regression test: when staging V2 used to change suffixes on targets |
---|
12 | # corresponding to real files. |
---|
13 | t.write("Jamfile", """ |
---|
14 | import type : register ; |
---|
15 | register A : a1 a2 a3 ; |
---|
16 | |
---|
17 | stage a : a.a3 ; |
---|
18 | """) |
---|
19 | |
---|
20 | t.write("project-root.jam", "") |
---|
21 | t.write("a.a3", "") |
---|
22 | |
---|
23 | t.run_build_system() |
---|
24 | t.expect_addition("a/a.a3"); |
---|
25 | |
---|
26 | # Regression test: we should be able to specify empty suffix for |
---|
27 | # derived target type, even if base type has non-empty suffix. |
---|
28 | t.write("a.cpp", "") |
---|
29 | |
---|
30 | t.write("suffixes.jam", """ |
---|
31 | import type ; |
---|
32 | import generators ; |
---|
33 | import common ; |
---|
34 | |
---|
35 | type.register First : first : ; |
---|
36 | type.register Second : "" : First ; |
---|
37 | |
---|
38 | generators.register-standard $(__name__).second : CPP : Second ; |
---|
39 | |
---|
40 | rule second |
---|
41 | { |
---|
42 | TOUCH on $(<) = [ common.file-creation-command ] ; |
---|
43 | } |
---|
44 | |
---|
45 | actions second |
---|
46 | { |
---|
47 | $(TOUCH) $(<) |
---|
48 | } |
---|
49 | |
---|
50 | """) |
---|
51 | |
---|
52 | t.write("project-root.jam", """ |
---|
53 | import suffixes ; |
---|
54 | """) |
---|
55 | |
---|
56 | t.write("Jamfile", """ |
---|
57 | second a : a.cpp ; |
---|
58 | """) |
---|
59 | |
---|
60 | t.run_build_system() |
---|
61 | t.expect_addition("bin/$toolset/debug/a") |
---|
62 | |
---|
63 | |
---|
64 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.