<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 19, 2015 at 11:02 AM, Rainer M Krug <span dir="ltr"><<a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I am working on the homebrew script for OS X and am trying to implement<br>
the tests. I download the test dataset, extract it, and run<br>
<br>
--8<---------------cut here---------------start------------->8---<br>
grass71 ./nc_basic_spm_grass7/PERMANENT --exec python -m grass.gunittest.main --location './nc_basic_spm_grass7' --location-type nc<br>
--8<---------------cut here---------------end--------------->8---<br>
<br>
But I get the following:<br>
<br>
,----<br>
| ==> tar xzf ./nc_basic_spm_grass7.tar.gz<br>
| ==> ls -l ./nc_basic_spm_grass7/<br>
| total 24<br>
| -rw-r--r-- 1 rainerkrug wheel 1035 Nov 3 2008 CREDITS.txt<br>
| -rw-r--r-- 1 rainerkrug wheel 2710 Jul 25 2013 HISTORY.txt<br>
| drwxr-xr-x 18 rainerkrug wheel 612 Feb 13 2013 PERMANENT<br>
| -rw-r--r-- 1 rainerkrug wheel 130 Nov 26 2012 VERSION.txt<br>
| drwxr-xr-- 16 rainerkrug wheel 544 Jul 25 2013 user1<br>
| ==> grass71 ./nc_basic_spm_grass7/PERMANENT --exec python -m grass.gunittest.main --location './nc_basic_spm_grass7' --location-type nc<br>
| WARNING: Default locale settings are missing. GRASS running with C locale.<br>
| Starting GRASS GIS...<br>
| Executing <python -m grass.gunittest.main --location ./nc_basic_spm_grass7 --location-type nc> ...<br>
|<br>
| Executed 0 test files in 0:00:00.046629.<br>
| From them 0 files (unknown percentage) were successful and 0 files (unknown percentage) failed.<br>
| Execution of <python -m grass.gunittest.main --location ./nc_basic_spm_grass7 --location-type nc> finished.<br>
| Cleaning up temporary files...<br>
| 04:57:47 ~$<br>
`----<br>
<br>
If I run the same command in my home directory, where the dataset is<br>
also installed, the tests run as expected.<br>
<br>
Any suggestions why the tests do not run?<br>
<br>
The data is downloaded, and extracted (see the ls -l above).<br>
<br>
Any suggestions?<br></blockquote><div><br></div><div>Do you run it from the directory with the source code? The tests are only in the source code. `python -m grass.gunittest.main` will find all tests in all subdirectories of the current directory.<br><br></div><div>Vaclav<br></div><div><br><a href="https://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html#testing-with-gunittest-package-in-general">https://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html#testing-with-gunittest-package-in-general</a><br><a href="https://grass.osgeo.org/grass71/manuals/libpython/gunittest_running_tests.html#running-tests-report">https://grass.osgeo.org/grass71/manuals/libpython/gunittest_running_tests.html#running-tests-report</a><br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Rainer<br>
<br>
<br>
--<br>
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br>
<br>
Centre of Excellence for Invasion Biology<br>
Stellenbosch University<br>
South Africa<br>
<br>
Tel : +33 - (0)9 53 10 27 44<br>
Cell: +33 - (0)6 85 62 59 98<br>
Fax : +33 - (0)9 58 10 27 44<br>
<br>
Fax (D): +49 - (0)3 21 21 25 22 44<br>
<br>
email: <a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a><br>
<br>
Skype: RMkrug<br>
<br>
PGP: 0x0F52F982<br>
<br>_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br></blockquote></div><br></div></div>