]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/feature_force_include.py
3 # Copyright 2020 Nikita Kniazev
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE.txt or copy at
6 # https://www.bfgroup.xyz/b2/LICENSE.txt)
8 # Tests the force-include feature
12 t
= BoostBuild
.Tester(use_test_config
=False)
14 t
.write("Jamroot.jam", """
15 obj test-cpp : test.cpp : <force-include>one.h <force-include>two.h ;
16 obj test-c : test.c : <force-include>one.h <force-include>two.h ;
19 for name
in ("test.cpp", "test.c"):
22 #error Cannot compile without ONE
25 #error Cannot compile without TWO
38 t
.expect_addition("bin/$toolset/debug*/test-cpp.obj")
39 t
.expect_addition("bin/$toolset/debug*/test-c.obj")