2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-02 20:52:13 +00:00
Files
build/test/direct_request_test.py
Vladimir Prus ae90c56249 Bugfix: nested 'build-project' statements were not handled correctly
when any build request is given on command line. Thanks to
Jürgen Hunold for catching this!


[SVN r17669]
2003-02-27 08:51:37 +00:00

29 lines
622 B
Python

#!/usr/bin/python
from BoostBuild import Tester, List
import os
from string import strip
t = Tester()
# First check some startup
t.set_tree("direct-request-test")
t.run_build_system(extra_args="define=MACROS")
t.expect_addition("bin/$toolset/debug/"
* (List("a.o b.o b.dll a.exe")))
# Regression test: direct build request was not working
# when there's more than one level of 'build-project'
t.rm(".")
t.write('project-root.jam', '')
t.write('Jamfile', 'build-project a ;')
t.write('a/Jamfile', 'build-project b ;')
t.write('a/b/Jamfile', '')
t.run_build_system("release")
t.cleanup()