[GRASS-dev] testsuite error messages analysed: some issues remaining
Markus Neteler
neteler at osgeo.org
Sat Dec 20 09:20:52 PST 2014
Hi devs,
I spent some time today to check all failing test in the test suite:
http://fatra.cnr.ncsu.edu/grassgistests/summary_report/index.html
DISCLAIMER:
==> Important, only tomorrow, 21th, the testsuite on Vaclav's server
will run better since I submitted many fixes today <===
This understood, some results below.
I found a series of issues (those related to the element name changes
I fixed now) which I cannot solve myself:
### CTYPES PROBLEM:
In many tests I see this Deprecation Warning, can it be fixed?:
etc/python/grass/lib/gis.py:807: DeprecationWarning: classic int division
('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
#### Python/definition problems
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/lib/python/pygrass/gis/test_doctests/index.html
--> AttributeError: 'module' object has no attribute 'region'
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/shell/test_doctests/index.html
--> AttributeError: 'module' object has no attribute 'conversion'
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/test_doctests/index.html
--> NameError: name 'Region' is not defined
--> NameError: name 'reg' is not defined
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/raster/test_history/index.html
--> ?
#### NO IDEA problem
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/raster/r.profile/test_profile_ncspm/index.html
--> I don't know that the issue is
###### JUNK REMAINED issue:
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/raster/r.in.poly/test_rinpoly/index.html
--> ERROR: option <output>: <test_rinpoly> exists.
Some overwrite flag needed?
But when I run it locally here:
Traceback (most recent call last):
File "raster/r.in.poly/testsuite/test_rinpoly.py", line 107, in testLabels
msg="Labels do not match")
AssertionError: Labels do not match
'-8\t\n3\tlabel2\n10.01\tlabel1' != '-8\t\n3\tlabel2\n10.01'
###### MISSING MAPS problems (in the piemonte location the names
differ, so they should be locally renamed):
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/lib/python/pygrass/vector/test_geometry/index.html
--> "roadmajor" does not exist in the server dataset
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/lib/python/pygrass/vector/test_vector/index.html
--> OpenError: Map <points_of_interest> not found.
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/lib/python/pygrass/vector/test_doctests/index.html
--> WARNING: <census> not found
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/vector/v.what/test_vwhat_ncspm/index.html
--> ERROR: Vector map <bridges> not found
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/raster/r.profile/test_profile_ncspm/index.html
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_piemonte_utm32_wgs84_grass7_stdmaps/raster/r.slope.aspect/test_r_slope_aspect/index.html
--> ERROR: Raster map <elevation> not found
etc.
###### MISSING MAPS problems NC dataset:
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/vector/test_vector/index.html
--> OpenError: Map <points_of_interest> not found.
http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2014-12-20-08-00/report_for_nc_spm_08_grass7_nc/lib/python/pygrass/vector/test_doctests/index.html
--> WARNING: <census> not found
###### Result is different problem
cd raster3d/r3.flow/testsuite/
python r3flow_test.py
mismatch values(key, reference, actual): [('coeff_var',
178.097935490306, 177.119169754436), ('max', 91, 89), ('range', 91,
89), ('stddev', 11.3685848821312, 11.3061070026581), ('variance',
129.244722222222, 127.828055555556)]
command: r3.univar map=test_flowaccum percentile=90.0 separator== -g
{'map': 'test_flowaccum', 'separator': '=', 'flags': 'g'}
cd lib/python/pygrass/testsuite
python test_doctests.py
--> lot of issues
####### DESIGN wish:
Each test page contains a title like this:
./vector/v.what – test_vwhat_layers
Could please the path to the file be added as
Testsuite: vector/v.what/testsuite/test_vwhat_layers.py
for easy copy-pasting in the local computer? Would be more joy for
fixing tests... thanks.
All fixes I have backported as well.
Markus
More information about the grass-dev
mailing list