]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/test2.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / test / test2.py
1 #!/usr/bin/python
2
3 # Copyright 2002, 2003 Dave Abrahams
4 # Copyright 2002, 2003 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
8 import BoostBuild
9
10 t = BoostBuild.Tester()
11
12 t.set_tree("test2")
13
14 file_list = 'bin/$toolset/debug/' * \
15 BoostBuild.List("foo foo.o")
16
17 t.run_build_system("-sBOOST_BUILD_PATH=" + t.original_workdir + "/..")
18 t.expect_addition(file_list)
19
20
21 t.write("foo.cpp", "int main() {}\n")
22 t.run_build_system("-d2 -sBOOST_BUILD_PATH=" + t.original_workdir + "/..")
23 t.expect_touch(file_list)
24
25 t.cleanup()