Vaclav Petras <wenzesl...@gmail.com> writes:

> On Thu, Aug 20, 2015 at 10:25 AM, Rainer M Krug <rai...@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:      rai...@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to