2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

Bug fixes

[SVN r13693]
This commit is contained in:
Dave Abrahams
2002-05-06 18:54:24 +00:00
parent 6a5ea2f5e3
commit 2bf1779f95
7 changed files with 12 additions and 9 deletions

View File

@@ -38,7 +38,8 @@ class Tester(TestCmd.TestCmd):
executable to invoke. Set this to "jam" to test Boost.Build v1
behavior.
"""
def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact):
def __init__(self, arguments="", executable = 'bjam', match =
TestCmd.match_exact, boost_build_path = None):
self.original_workdir = os.getcwd()
@@ -50,12 +51,14 @@ class Tester(TestCmd.TestCmd):
else:
raise "Don't know directory where jam is build for this system"
if boost_build_path is None:
boost_build_path = os.path.join(self.original_workdir, "..", "new")
TestCmd.TestCmd.__init__(
self
, program=os.path.join(
'..', 'jam_src', jam_build_dir, executable)
# + ' -sBOOST_BUILD_PATH='
# + os.path.join(self.original_workdir, "..", "new")
+ ' -sBOOST_BUILD_PATH=' + boost_build_path
+ ' -d0 --debug --quiet'
+ ' ' + arguments
, match=match

View File

@@ -3,7 +3,7 @@
from BoostBuild import Tester
import os
t = Tester("--build-system=project-test1")
t = Tester("--build-system=project-test1", boost_build_path='')
# This test does no modifications, so run in in the invocation dir

View File

@@ -14,6 +14,7 @@ def match_re(actual,expected):
t = Tester(
executable='jam'
, match=match_re
, boost_build_path=''
)
t.set_tree('startup')

View File

@@ -10,6 +10,7 @@ def match_re(actual,expected):
# Test the v1 startup behavior
t = Tester(
match= match_re
, boost_build_path=''
)
t.set_tree('startup')

View File

@@ -2,6 +2,4 @@
import startup_v1
import startup_v2
import project_test1
# Not sure why, but this one isn't working yet
# import project_test2
import project_test2