[GRASS-dev] Running python test: why are they not running?

Rainer M Krug Rainer at krugs.de
Thu Aug 20 11:24:20 PDT 2015


Vaclav Petras <wenzeslaus at gmail.com> writes:

> On Thu, Aug 20, 2015 at 10:25 AM, Rainer M Krug <Rainer at krugs.de> wrote:
>>
>> The easiest might be to checkout the tests before usage. How can I check
>> them out from svn and in which folder are they located? But I assume
>> they have to be compiled before usage?
>
> What needs to be compiled should (i.e. is) compiled during compilation (not
> ideal actually, but good enough). Most of the tests code is written in
> Python. The tests are part of the main source code. If you have source code
> from Subversion, browse it and look for testsuite directories. Every
> testsuite directory is a set of tests for its parent directory.
>
> Examples:
>
> https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.mapcalc/testsuite
> https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.viewshed/testsuite
> https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/testsuite

Thanks for the info - much clearer now. I also found [1] and the
script - as I assume that it runs the same tests, only that the I have a
little bit more control about the locations, I think I will go with the
script and adapt it to my needs.

Thanks a lot,

Rainer

Footnotes: 
[1]  https://grass.osgeo.org/grass71/manuals/libpython/gunittest_running_tests.html

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150820/f7a7a4e1/attachment.pgp>


More information about the grass-dev mailing list