I tested g.mlist with the attached script. I started from test_g_list.py and replaced g.list with g.mlist -p and g.list -f with g.mlist -f. g.mlist passed the test, which means g.list == g.mlist -p & g.list -f == g.mlist -f.
g.mlist does everything g.list does and provides more functionalities, so do we want to retire the old g.list and replace it with g.mlist? On Fri, May 30, 2014 at 9:35 PM, Vaclav Petras <[email protected]> wrote: > Hi, > > I don't think that there will be any issue but to introduce the idea how > testing can be used, I added a test of the most essential functionality of > g.list. Once g.list is replaced by g.mlist, the test can be used to ensure > that old g.list functionality works as expected. (In fact I used g.mlist > output as a reference in test, so it is already tested.) > > This is more a proof of concept but it serves its purpose at the same > time. Feel free to comment or try to add your tests. You don't have to > bother with things like a location etc. Just expect that you are in a > (empty) user1 mapset of nc_smp location and run the tests there (not in > your precious production location). In the future, these things will be > hopefully managed by the testing framework. You can even write in bash if > you have ideas what or how to test (it will be converted to Python later). > > Vaclav > > > http://trac.osgeo.org/grass/browser/grass/trunk/general/g.list/test_g_list.py?rev=60619 > > > On Thu, May 29, 2014 at 5:08 AM, Luca Delucchi <[email protected]> > wrote: > >> On 28 May 2014 15:21, Martin Landa <[email protected]> wrote: >> > Hi, >> > >> >> Hi >> >> > 2014-05-28 15:07 GMT+02:00 Huidae Cho <[email protected]>: >> >> Looks great! Personally I don't see a reason to have two versions of >> >> list/remove. Time to replace the old g.list,remove with the g.m* >> version? >> > >> > personally I agree, if we decide to do that, it should be done ASAP >> > (testing in trunk, backport to relbr70). >> > >> >> me too >> >> > Martin >> > >> >> >> -- >> ciao >> Luca >> >> http://gis.cri.fmach.it/delucchi/ >> www.lucadelu.org >> _______________________________________________ >> grass-dev mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/grass-dev >> > >
test_g_mlist_vs_g_list.py
Description: Binary data
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
