|
Boost-Build : |
From: Khassapov, Alex (Alex.Khassapov_at_[hidden])
Date: 2008-03-28 02:47:22
Thanks again Volodya
1. "using python" does help, now I do get the error "/bin/sh:
t_compliance_filter.py: not found" which I assume is because "."
directory is *not* in PATH. I can't add every directory with test
scripts to the PATH, I wonder if there's a better "bjam" way to achieve
it. Also the tests ipmort other modules from the same directory.
2. The above "generator" approach assumes that python test scripts have
'execute' permissions, which is not always a case. I wander if it's
possible to use some stuff from python.jam as it does find python
location and uses python to run the scripts.
Or somehow add 'execute' permissions from Jamfile (chmod +x)?
Appreciate your help, I'm really overloaded with bjam :-)
Alex.
-----Original Message-----
From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Friday, 28 March 2008 4:47 PM
To: boost-build_at_[hidden]
Subject: Re: [Boost-build] unit test without source
Khassapov, Alex wrote:
> Hi Volodya,
>
>
>
> I tried the generator idea - still have the same problem:
>
>
>
> /opt/boost-build/build/generators.jam:951: in ensure-type from module
> generators
>
> error: target { t_compliance_filter.py. } has no type
Uh. So of course, you have to make sure that the .py type is known. For
example, adding:
using python : 2.5 : /usr/local/bin/python ;
should do that. If you continue to have problems, please post a minimal
complete project reproducing the problem, as archive, and I'll take a
further
look.
> The same behavior - it doesn't recognise .py files - I was getting by
> simply using unit-test rule.
>
>
>
> Which brings the next question - boost-build does have python.jam
module
> with some testing functionality specific to Python.
>
>
>
> Whent I try:
>
>
>
> using python : 2.5 : /usr/local/bin/python ;
>
> testing.make-test run-pyd-output : t_compliance_filter.py ;
Sorry, what do you expect the above to do? "run-pyd-output" is
for testing Python extensions, which you don't have.
- Volodya
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build
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