]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/build_hooks.py
3 # Copyright (C) Vladimir Prus 2006.
4 # Distributed under the Boost Software License, Version 1.0. (See
5 # accompanying file LICENSE.txt or copy at
6 # https://www.bfgroup.xyz/b2/LICENSE.txt)
8 # Tests add-pre-build-hook and add-post-build-hook
12 t
= BoostBuild
.Tester()
14 t
.write("Jamroot.jam", """
16 build-system.add-pre-build-hook pre-build ;
17 build-system.add-post-build-hook post-build ;
21 ECHO "in" pre-build hook ;
24 rule post-build ( okay ? )
26 ECHO "in" post-build hook $(okay) ;
29 message show : building main targets ;
32 t
.run_build_system(stdout
="""\