<div dir="ltr">Thanks, I think I'm still getting the same issue. Here is me trying to run tests with both "<span style="font-family:Menlo;font-size:11px">nc_basic_spm_grass7</span>" and "<span style="font-family:Menlo;font-size:11px">ncarolina_smp_base0.3.2</span>":<div><p style="margin:0px;font-size:11px;font-family:Menlo">seths-mbp:grass-7.1.svn_src_snapshot_2015_09_19 sprice$ grass71 --text ../nc_basic_spm_grass7/PERMANENT/</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Cleaning up temporary files...</p></div><div>[...]</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">GRASS 7.1.svn (nc_basic_spm_grass7):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > python -m grass.gunittest.main --location /usr/local/grass/nc_basic_spm_grass7/ --location-type nc</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_g_list from ./general/g.list failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_g_remove from ./general/g.remove failed (2 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_overwrite from ./general/g.rename failed (3 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">toolboxes from ./gui/wxpython/core failed</p></div><div>[...]</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">test_vto3d from ./vector/v.to.3d failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vwhat_layers from ./vector/v.what failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vwhat_ncspm from ./vector/v.what failed (4 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Executed 127 test files in 0:00:50.862606.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">From them 12 files (9%) were successful and 115 files (91%) failed.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">GRASS 7.1.svn (nc_basic_spm_grass7):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > exit</p></div><div>[...]</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">seths-mbp:grass-7.1.svn_src_snapshot_2015_09_19 sprice$ grass71 --text ../ncarolina_smp_base0.3.2/PERMANENT/</p></div><div>[...]</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">GRASS 7.1.svn (ncarolina_smp_base0.3.2):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > python -m grass.gunittest.main --location /usr/local/grass/ncarolina_smp_base0.3.2/ --location-type nc</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_g_list from ./general/g.list failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_g_remove from ./general/g.remove failed (2 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_overwrite from ./general/g.rename failed (3 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">toolboxes from ./gui/wxpython/core failed</p></div><div>[...]</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">test_v_net from ./vector/<a href="http://v.net">v.net</a> failed (8 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vto3d from ./vector/v.to.3d failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vwhat_layers from ./vector/v.what failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vwhat_ncspm from ./vector/v.what failed (4 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Executed 127 test files in 0:00:46.315482.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">From them 12 files (9%) were successful and 115 files (91%) failed.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">GRASS 7.1.svn (ncarolina_smp_base0.3.2):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > </p></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 1:18 PM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Oct 5, 2015 at 3:21 PM, Seth Price <span dir="ltr"><<a href="mailto:seth@planet.com" target="_blank">seth@planet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi, I've spent the last two or three hours trying to get GRASS' unit tests running. With a fresh source tree, the best I can get is ~9% of the tests passing:</div></blockquote><div><br></div></span><div>Oh, sorry about that, you need to use basic instead of full NC location. The datasets are unfortunately incompatible and the whole thing is undocumented because we never made the switch official.<br><br><a href="https://grass.osgeo.org/download/sample-data/" target="_blank">https://grass.osgeo.org/download/sample-data/</a><br></div><div> <br></div><div>But since NC basic will be replaced by standardized sample dataset (which is partially reason for the confusing situation), use this new dataset instead.<br><br><a href="https://trac.osgeo.org/grass/wiki/SampleDataset" target="_blank">https://trac.osgeo.org/grass/wiki/SampleDataset</a> (goes here: <a href="http://www4.ncsu.edu/~hmitaso/grasswork/grassbookdat4ed/" target="_blank">http://www4.ncsu.edu/~hmitaso/grasswork/grassbookdat4ed/</a>)<br></div><br>Have you noticed that you can view the errors in an HTML report?<br><br>"grass.gunittest.main writes a text summary to standard output and it creates an HTML report from all tests in all testsuite directories inside the directory tree. The report is placed in testreport by default. Open file testreport/index.html in you web browser to inspect it."<br></div><div class="gmail_quote"><br><a href="https://grass.osgeo.org/grass71/manuals/libpython/gunittest_running_tests.html#running-tests-and-creating-report" target="_blank">https://grass.osgeo.org/grass71/manuals/libpython/gunittest_running_tests.html#running-tests-and-creating-report</a><span class=""><br><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><p style="margin:0px;font-size:11px;font-family:Menlo">seths-mbp:grass-7.1.svn_src_snapshot_2015_09_19 sprice$ grass71 --text ../nc_spm_08_grass7/PERMANENT/</p></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">[...]</p><p style="margin:0px;font-size:11px;font-family:Menlo">GRASS 7.1.svn (nc_spm_08_grass7):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > python -m grass.gunittest.main --location /usr/local/grass/nc_spm_08_grass7/ --location-type nc</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_g_list from ./general/g.list failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_g_remove from ./general/g.remove failed (2 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_overwrite from ./general/g.rename failed (3 tests failed)</p></div><div>[...]</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">test_vto3d from ./vector/v.to.3d failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vwhat_layers from ./vector/v.what failed (1 test failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">test_vwhat_ncspm from ./vector/v.what failed (4 tests failed)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Executed 127 test files in 0:00:55.959398.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">From them 12 files (9%) were successful and 115 files (91%) failed.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">GRASS 7.1.svn (nc_spm_08_grass7):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > </p></div><div class="gmail_extra"><br><div class="gmail_quote">I'd really like to work on these unit tests. Any ideas as to where I'm going wrong? I feel like I've exhausted the various knowledge bases available online.</div><div class="gmail_quote">Thanks,</div><div class="gmail_quote">Seth</div><div><div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Fri, Oct 2, 2015 at 11:25 AM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Oct 2, 2015 at 12:49 PM, Seth Price <span dir="ltr"><<a href="mailto:seth@planet.com" target="_blank">seth@planet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">..by adding the option of a few different compression schemes, including LZ4. I've had the ticket open for a week now with no responses. I'd love to get it incorporated into trunk. For more info, see here:<div><a href="https://trac.osgeo.org/grass/ticket/2750" target="_blank">https://trac.osgeo.org/grass/ticket/2750</a></div></div></blockquote><div><br></div></span><div>Hi,<br><br>thanks for the reminder. This looks really good. Can you provide a test which would do a trivial operation (like the benchmark in the ticket) ideally using Python and gunittest [1]? Please, let me know if you don't know where to start.<br><br></div><div>Vaclav<br></div><div><br>[1] <a href="https://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html" target="_blank">https://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html</a><br><br></div></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div>