Boost logo

Boost-Build :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-04-10 04:32:40


----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>

> I meant that we should assume that jam has been already built in the
current
> working copy and invoke that binary. This way we'll be sure that we
test
> against the version of jam that is in CVS.

That sounds fair to me. Anybody so perverse as to want to test without
building Jam first can put a copy in the appropriate place.

However, note that the appropriate place may change from host platform
to host platform, and various bin.<platform> directories may be present
in any given jam_src directory.

> > However, note that on my system "bjam" in the path is a .bat file
which
> > eventually invokes the .exe.
>
> Is it possible to reconcile you bat file with approach I propose
above? Is
> there any reason why tests can't execute bjam binary directly?

Actually, it's no problem. My bjam just invokes the other one with no
interference.

>
> > If so, I agree. Why don't you just apply the patch you posted to the
> > jamming list last week?
>
> Okay... I'll apply it and then will write a wrap project-test1.jam in
a test
> which will just check the output.

Great!

> > ---- 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/*.*'
>
> Strange! Are you sure that the "test2" directory really exists?

No, it doesn't! was something supposed to be checked in there?
If I add that directory manually, I get:

C:\boost\tools\build\test>mkdir test2

C:\boost\tools\build\test>python tests/test2.py
c:/boost/tools/build/jam_src/bin.ntx86/bjam -d0 returned 1
STDOUT ============
Unable to load Boost.Build, could not find 'boost-build.jam'. Attempted
search from C:\DOC
UME~1\DAVIDA~1\LOCALS~1\Temp\testcmd.0 up to the root. And in these
directories from BOOST
_BUILD_PATH: /home/ghost/build/boost-cvs/tools/build. Please consult the
documentation at
'http://www.boost.org'.

STDERR ============

FAILED test of c:/boost/tools/build/jam_src/bin.ntx86/bjam -d0
at line 100 of c:\boost\tools\build\test\BoostBuild.py
(run_build_system)
from line 9 of tests/test2.py

 


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