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_filter.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@lists.boost.org
[mailto:boost-build-bounces@lists.boost.org] 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,
525
Ph.
+61 3 9211 2543
Fax. +61 3 9211 2599