Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/prebuilt.py @ 12

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

added boost

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