Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/prebuilt.py @ 32

Last change on this file since 32 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.3 KB
Line 
1#!/usr/bin/python
2
3# Copyright 2002, 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)
6
7# Test that we can use already built sources
8
9from BoostBuild import Tester
10t = Tester()
11
12t.set_tree('prebuilt')
13
14t.expand_toolset("ext/project-root.jam")
15t.expand_toolset("project-root.jam")
16# First, build the external project
17t.run_build_system("debug release", subdir="ext")
18
19# Then pretend that we don't have the sources for the external project,
20# and can only use compiled binaries
21t.copy("ext/Jamfile2", "ext/Jamfile")
22t.expand_toolset("ext/Jamfile")
23
24# Now check that we can build the main project, and that
25# correct prebuilt file is picked, depending of variant.
26# This also checks that correct includes for prebuilt
27# libraries are used.
28
29t.run_build_system("debug release")
30t.expect_addition("bin/$toolset/debug/hello.exe")
31t.expect_addition("bin/$toolset/release/hello.exe")
32
33t.rm("bin")
34# Now test that prebuilt file specified by absolute name
35# works too.
36t.copy("ext/Jamfile3", "ext/Jamfile")
37t.expand_toolset("ext/Jamfile")
38t.run_build_system("debug release")
39t.expect_addition("bin/$toolset/debug/hello.exe")
40t.expect_addition("bin/$toolset/release/hello.exe")
41
42
43t.cleanup()
Note: See TracBrowser for help on using the repository browser.