Boost logo

Boost-Build :

From: Khassapov, Alex (Alex.Khassapov_at_[hidden])
Date: 2008-03-30 21:35:20


Hi again, I tried to use test functionality provided in python.jam

 

using python : 2.5 : /usr/local/bin/python ;

run t_compliance_filter.py filter_utils.py ;

 

And get the "Duplicate name of actual target" error, can anybody tell
what's wrong here? t_compliance_filter.py imports filter_utils.py,
that's why I add it to sources.

 

 

/opt/boost-build/build/virtual-target.jam:996: in
virtual-target.register-actual-name from module virtual-target

error: Duplicate name of actual target:
<p/home/akhass/dev/build/5.10/dev01-mel/compliance_filter/t_compliance_f
ilter.test/sun/dbg/lnk-sttc/thrd-mlt>t_compl

error: previous virtual target {
testing%testing.expect-success-t_compliance_filter.test.RUN {
testing%testing.capture-output-t_compliance_filter.run.RUN_OU

_compliance_filter.py.PY } } } }

error: created from ./t_compliance_filter

error: another virtual target {
testing%testing.expect-success-t_compliance_filter.test.RUN {
testing%testing.capture-output-t_compliance_filter.run.RUN_OUT

lter_utils.py.PY } } } }

error: created from ./t_compliance_filter

error: added properties: none

error: removed properties: none

________________________________

From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Khassapov,
Alex
Sent: Monday, 31 March 2008 11:13 AM
To: Boost.Build developer's and user's list
Subject: [Boost-build] python unit tests

 

Hi all, we have python scripts which we use for unit test, I had to
crate a generator for that as there's no source to compile, just want to
run the script:

 

import type ;
import generators ;
using python : 2.5 : /usr/local/bin/python ;

type.register UNIT_TEST_RAW : : UNIT_TEST ;
generators.register-standard testing.unit-test : : UNIT_TEST_RAW ;

unit-test-raw t_compliance_filter : t_compliance_filter.py ;

I get the following error because the current dir isn't in the $PATH:

 

/bin/sh: t_compliance_filter.py: not found

 

I wander how to add the current dir to the $PATH or tell unit-test-raw
to use "python t_compliance_filter.py" instead?

 

Both solutions should work...

 

Best Regards

Alex Khassapov

Senior Software Engineer
ITG Australia Ltd
Level 3, Rialto North Tower
525 Collins Street
Melbourne VIC 3000
Ph. +61 3 9211 2543
Fax. +61 3 9211 2599

www.itg.com <http://www.itg.com/>



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