|
Boost-Build : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-04-09 09:43:27
----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
> The only big problem is that path to bjam is hardcoded in
BoostBuild.py, so
> you'd need to change it manually. Before fixing it, let's decide what
we
> want. Will it be ok to just run whatever "bjam" happens to be in path?
Or we
> should run the version in the current working copy? The latter seems
better.
What do you mean by the latter? We are not checking executables into the
CVS... We could try to put the apporopriate jam build directory at the
head of the path before searching the path for bjam...
However, note that on my system "bjam" in the path is a .bat file which
eventually invokes the .exe.
> Also please note that matching jam output is complicated by the fact
that jam
> adds trailing whitespaces. We'll need to do something about it, e.g.
fixing
> jam.
I'm still not convinced that it's a problem... unless perhaps you're
saying that it causes the tests to be more complicated than neccessary?
If so, I agree. Why don't you just apply the patch you posted to the
jamming list last week?
> David, I've did nothing about your refactoring suggestions. So far,
I'm not
> yet convinced that we'll have big advantages, and since test system is
needed
> now, let's go on with what we have.
Good choice.
---- results ----
python tests/test1.py runs without any output
cd c:/boost/tools/build/test/
python tests/test2.py
Traceback (most recent call last):
File "c:\boost\tools\build\test\tests/test2.py", line 8, in ?
t.set_tree("test2")
File "c:\boost\tools\build\test\BoostBuild.py", line 58, in set_tree
shutil.copytree(tree_location, self.workdir)
File "c:\tools\Python-2.2\lib\shutil.py", line 91, in copytree
names = os.listdir(src)
WindowsError: [Errno 3] The system cannot find the path specified:
'c:\\boost\\tools\\build\\test\\test2/*.*'
Error in sys.exitfunc:
Traceback (most recent call last):
File "c:\boost\tools\build\test\TestCmd.py", line 72, in _clean
test.cleanup()
File "c:\boost\tools\build\test\TestCmd.py", line 270, in cleanup
shutil.rmtree(dir, ignore_errors = 1)
File "c:\tools\Python-2.2\lib\shutil.py", line 117, in rmtree
_build_cmdtuple(path, cmdtuples)
File "c:\tools\Python-2.2\lib\shutil.py", line 132, in _build_cmdtuple
for f in os.listdir(path):
WindowsError: [Errno 3] The system cannot find the path specified:
'C:\\DOCUME~1\\DAVIDA~1\\LOCALS~1\\Temp\\testcmd.0/*.*'
------
I think it's important that any testing system supplies a verbose mode,
so you can watch it actually do something, even when it succeeds. A
successful test that gives no feedback is a little unsatisfying ;-)
-Dave
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk