]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/test2.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / test2.py
CommitLineData
7c673cae
FG
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.
1e59de90 6# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
7
8import BoostBuild
9
10t = BoostBuild.Tester()
11
12t.set_tree("test2")
13
b32b8144 14file_list = 'bin/$toolset/debug*/' * \
1e59de90 15 BoostBuild.List("foo.exe foo.obj")
7c673cae 16
1e59de90 17t.run_build_system(["-sBOOST_BUILD_PATH=" + t.original_workdir + "/.."])
7c673cae
FG
18t.expect_addition(file_list)
19
20
21t.write("foo.cpp", "int main() {}\n")
1e59de90 22t.run_build_system(["-d2", "-sBOOST_BUILD_PATH=" + t.original_workdir + "/.."])
7c673cae
FG
23t.expect_touch(file_list)
24
25t.cleanup()