]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/always.py
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / tools / build / test / always.py
1 #!/usr/bin/python
2
3 # Copyright 2016 Steven Watanabe
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 import BoostBuild
8
9 t = BoostBuild.Tester(use_test_config=False)
10
11 t.write("main.cpp", """\
12 int main() {}
13 """)
14
15 t.write("Jamroot", """\
16 exe test : main.cpp ;
17 always test ;
18 """)
19
20 t.run_build_system()
21 t.expect_addition("bin/$toolset/debug*/main.obj")
22 t.expect_addition("bin/$toolset/debug*/test.exe")
23 t.expect_nothing_more()
24
25 t.run_build_system()
26 t.expect_touch("bin/$toolset/debug*/main.obj")
27 t.expect_touch("bin/$toolset/debug*/test.exe")
28 t.expect_nothing_more()
29
30 t.cleanup()