Thanks, I think I'm still getting the same issue. Here is me trying to run tests with both "nc_basic_spm_grass7" and "ncarolina_smp_base0.3.2":
seths-mbp:grass-7.1.svn_src_snapshot_2015_09_19 sprice$ grass71 --text ../nc_basic_spm_grass7/PERMANENT/ Cleaning up temporary files... [...] 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 test_g_list from ./general/g.list failed (1 test failed) test_g_remove from ./general/g.remove failed (2 tests failed) test_overwrite from ./general/g.rename failed (3 tests failed) toolboxes from ./gui/wxpython/core failed [...] test_vto3d from ./vector/v.to.3d failed (1 test failed) test_vwhat_layers from ./vector/v.what failed (1 test failed) test_vwhat_ncspm from ./vector/v.what failed (4 tests failed) Executed 127 test files in 0:00:50.862606. >From them 12 files (9%) were successful and 115 files (91%) failed. GRASS 7.1.svn (nc_basic_spm_grass7):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > exit [...] seths-mbp:grass-7.1.svn_src_snapshot_2015_09_19 sprice$ grass71 --text ../ncarolina_smp_base0.3.2/PERMANENT/ [...] 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 test_g_list from ./general/g.list failed (1 test failed) test_g_remove from ./general/g.remove failed (2 tests failed) test_overwrite from ./general/g.rename failed (3 tests failed) toolboxes from ./gui/wxpython/core failed [...] test_v_net from ./vector/v.net failed (8 tests failed) test_vto3d from ./vector/v.to.3d failed (1 test failed) test_vwhat_layers from ./vector/v.what failed (1 test failed) test_vwhat_ncspm from ./vector/v.what failed (4 tests failed) Executed 127 test files in 0:00:46.315482. >From them 12 files (9%) were successful and 115 files (91%) failed. GRASS 7.1.svn (ncarolina_smp_base0.3.2):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > On Mon, Oct 5, 2015 at 1:18 PM, Vaclav Petras <[email protected]> wrote: > > > On Mon, Oct 5, 2015 at 3:21 PM, Seth Price <[email protected]> wrote: > >> 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: >> > > 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. > > https://grass.osgeo.org/download/sample-data/ > > But since NC basic will be replaced by standardized sample dataset (which > is partially reason for the confusing situation), use this new dataset > instead. > > https://trac.osgeo.org/grass/wiki/SampleDataset (goes here: > http://www4.ncsu.edu/~hmitaso/grasswork/grassbookdat4ed/) > > Have you noticed that you can view the errors in an HTML report? > > "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." > > > https://grass.osgeo.org/grass71/manuals/libpython/gunittest_running_tests.html#running-tests-and-creating-report > > seths-mbp:grass-7.1.svn_src_snapshot_2015_09_19 sprice$ grass71 --text >> ../nc_spm_08_grass7/PERMANENT/ >> >> [...] >> >> 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 >> >> test_g_list from ./general/g.list failed (1 test failed) >> >> test_g_remove from ./general/g.remove failed (2 tests failed) >> >> test_overwrite from ./general/g.rename failed (3 tests failed) >> [...] >> >> test_vto3d from ./vector/v.to.3d failed (1 test failed) >> >> test_vwhat_layers from ./vector/v.what failed (1 test failed) >> >> test_vwhat_ncspm from ./vector/v.what failed (4 tests failed) >> >> >> Executed 127 test files in 0:00:55.959398. >> >> From them 12 files (9%) were successful and 115 files (91%) failed. >> >> GRASS 7.1.svn >> (nc_spm_08_grass7):/usr/local/grass/grass-7.1.svn_src_snapshot_2015_09_19 > >> >> 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. >> Thanks, >> Seth >> >> >> On Fri, Oct 2, 2015 at 11:25 AM, Vaclav Petras <[email protected]> >> wrote: >> >>> >>> >>> On Fri, Oct 2, 2015 at 12:49 PM, Seth Price <[email protected]> wrote: >>> >>>> ..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: >>>> https://trac.osgeo.org/grass/ticket/2750 >>>> >>> >>> Hi, >>> >>> 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. >>> >>> Vaclav >>> >>> [1] >>> https://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html >>> >>> >> >
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
