<div dir="ltr"><div><div><div><br>On Sat, Oct 3, 2015 at 12:19 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>><br>> On Sat, Oct 3, 2015 at 5:05 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br>> > On Fri, Oct 2, 2015 at 7:12 PM, Seth Price <<a href="mailto:seth@planet.com">seth@planet.com</a>> wrote:<br>> ...<br>> > I suggest to start<br>> > with high level tests; this is much easier (you need to write a script<br>> > ideally using existing Python packages).<br>><br>> Suggestion for a test:<br>> What about generating an uncompressed map (actually 3: Int, Float,<br>> Double prec), calculate md5 checksums (get through: g.extension<br>> g.compare.md5) then compress it, uncompress it, recalculate md5 and<br>> compare to the previously calculated values.<br><br></div>Good idea. At least for int/CELL it should always work. Unfortunately, the functionality is not yet available in gunittest. Hence, g.compare.md5 is necessary. The functionality is there only for files (not rasters).<br><br></div>What you can do now with gunittest is assertRastersNoDifference which diffs two rasters in r.mapcalc and compares the r.univarĀ  result with predefined statistics (apparently more complex).<br><br><a href="https://grass.osgeo.org/grass71/manuals/libpython/gunittest.html#gunittest.case.TestCase.assertRastersNoDifference">https://grass.osgeo.org/grass71/manuals/libpython/gunittest.html#gunittest.case.TestCase.assertRastersNoDifference</a><br><br></div>In any case, small random (or imported) data or existing data (from basic NC Location) should be used.<br></div>