2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-12 12:02:24 +00:00
Files
build/test/prebuilt.py
Vladimir Prus 75230dc75a First implementation of "stage" and "prebuilt" rule.
* new/common.jam (copy): New rule.

* new/targets.jam (main-target.generate): Use a different
   algorith for selecting subvariant. Favour one with
   the longest intersection of requirements with build
   properties.

* new/virtual-target.jam (virtual-target): Eliminate 'subvariant'
   attribute. Use properties of action to for the same
   purpose. New methods 'set-path' and 'extra-grist'.


[SVN r16129]
2002-11-06 10:26:11 +00:00

27 lines
728 B
Python

#!/usr/bin/python
# Test that we can use already built sources
from BoostBuild import Tester
t = Tester()
t.set_tree('prebuilt')
# First, build the external project
t.run_build_system("debug release", subdir="ext")
# Then pretend that we don't have the sources for the external project,
# and can only use compiled binaries
t.copy("ext/Jamfile2", "ext/Jamfile")
# Now check that we can build the main project, and that
# correct prebuilt file is picked, depending of variant.
# This also checks that correct includes for prebuilt
# libraries are used.
t.run_build_system("debug release")
t.expect_addition("bin/gcc/debug/main-target-hello/hello")
t.expect_addition("bin/gcc/release/main-target-hello/hello")
t.cleanup()