]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/unit_test.py
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)
7 # Test the unit_test rule.
11 t
= BoostBuild
.Tester(use_test_config
=False)
13 # Create the needed files.
14 t
.write("jamroot.jam", """
16 lib helper : helper.cpp ;
17 unit-test test : test.cpp : <library>helper ;
20 t
.write("test.cpp", """
22 int main() { helper(); }
25 t
.write("helper.cpp", """
33 t
.run_build_system(["link=static"])
34 t
.expect_addition("bin/$toolset/debug/link-static*/test.passed")