[GRASS5] GRASS test suite

Hi all,
since some weeks i'm developing a test suite for GRASS.
I have implemented a test frame work and some basic tests.

I would like to have some feedback from the devs and users if the concept
of the test suite is correct or even meaningful, because i'm thinking a test suite is very important
for GRASS, especially for the development process.

I hope to provide an environment for easy test development to support
stability and error reduction for GRASS.

You can download the latest test suite and the test location here:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS_Testsuite.tar.gz
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/spearfish_grass60data.tar.gz

The test suite will only work correctly within the test location (this is the newest
not modified spearfish60 location) and with a fresh grass-6.1 cvs version!

If you run the test suite, you can compare your results with my results:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/html/GRASSSummary.html

I made a (currently incomplete) video tutorial in german and a pdf presentation in english and german.
Because i'm not a nativ english speaker, i would encourage the native's to check the
english presentation. It would be a great help for me, if you can support me to write better
presentations and tutorials.

The video tutorials and the pdf presentations are available here:

http://www-pool.math.tu-berlin.de/~soeren/grass/modules/

The video tutorial is splitted into two parts. The first part is completely in
german and shows only the presentation, which are also available
in english and german as pdf and OpenOffice2 format.

The second part of the video tutorial shows the handling of the test suite and ist partly in german (the small text parts).
Those small text parts are also available in the english pdf presentation.
So if you read the english pdf presentation, you can easily follow the second part of the tutorial.

English presentation:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS-Testsuite-Presentation-OO2-New_en.pdf
Part two of the tutorial:
http://www-pool.math.tu-berlin.de/~soeren/grass/modules/Tutorials/Testsuite/Testsuite_Tutorial_part2_de.html

I wish to add an english tutorial too, but have no time for that for the next months.

Thank you in advance for your
comments, suggestions or constructive criticism.
Everything is welcome!!

Best regards
Soeren

Sören,

This is excellent! I hope to go through this over the next several days. I think the test suite will also help users to identify bugs in a more coherent way for the developers and those who are more expert with particular modules.

Regards,
Tom

Sören Gebbert wrote:

Hi all,
since some weeks i'm developing a test suite for GRASS.
I have implemented a test frame work and some basic tests.

I would like to have some feedback from the devs and users if the concept of the test suite is correct or even meaningful, because i'm thinking a test suite is very important for GRASS, especially for the development process.

I hope to provide an environment for easy test development to support
stability and error reduction for GRASS.

You can download the latest test suite and the test location here:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS_Testsuite.tar.gz
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/spearfish_grass60data.tar.gz

The test suite will only work correctly within the test location (this is the newest not modified spearfish60 location) and with a fresh grass-6.1 cvs version!

If you run the test suite, you can compare your results with my results:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/html/GRASSSummary.html

I made a (currently incomplete) video tutorial in german and a pdf presentation in english and german.
Because i'm not a nativ english speaker, i would encourage the native's to check the
english presentation. It would be a great help for me, if you can support me to write better
presentations and tutorials.

The video tutorials and the pdf presentations are available here:

http://www-pool.math.tu-berlin.de/~soeren/grass/modules/

The video tutorial is splitted into two parts. The first part is completely in
german and shows only the presentation, which are also available in english and german as pdf and OpenOffice2 format.

The second part of the video tutorial shows the handling of the test suite and ist partly in german (the small text parts).
Those small text parts are also available in the english pdf presentation.
So if you read the english pdf presentation, you can easily follow the second part of the tutorial.

English presentation:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS-Testsuite-Presentation-OO2-New_en.pdf
Part two of the tutorial:
http://www-pool.math.tu-berlin.de/~soeren/grass/modules/Tutorials/Testsuite/Testsuite_Tutorial_part2_de.html

I wish to add an english tutorial too, but have no time for that for the next months.

Thank you in advance for your
comments, suggestions or constructive criticism. Everything is welcome!!

Best regards
Soeren

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5
  
--
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL: thomas.adams@noaa.gov

VOICE: 937-383-0528
FAX: 937-383-0033

Good,

could you please run it also on Windows version?
http://mpa.itc.it/radim/wingrass/qgis-0.8.0-preview-win32-060329.zip

The package includes MSYS and shell so it should be possible
to run your test. You can either start it from script setting GISRC
or you can start QGIS, open a mapset and then start GRASS shell
from GRASS tools.

Radim

On 3/30/06, Sören Gebbert <soerengebbert@gmx.de> wrote:

Hi all,
since some weeks i'm developing a test suite for GRASS.
I have implemented a test frame work and some basic tests.

I would like to have some feedback from the devs and users if the concept
of the test suite is correct or even meaningful, because i'm thinking a test suite is very important
for GRASS, especially for the development process.

I hope to provide an environment for easy test development to support
stability and error reduction for GRASS.

You can download the latest test suite and the test location here:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS_Testsuite.tar.gz
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/spearfish_grass60data.tar.gz

The test suite will only work correctly within the test location (this is the newest
not modified spearfish60 location) and with a fresh grass-6.1 cvs version!

If you run the test suite, you can compare your results with my results:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/html/GRASSSummary.html

I made a (currently incomplete) video tutorial in german and a pdf presentation in english and german.
Because i'm not a nativ english speaker, i would encourage the native's to check the
english presentation. It would be a great help for me, if you can support me to write better
presentations and tutorials.

The video tutorials and the pdf presentations are available here:

http://www-pool.math.tu-berlin.de/~soeren/grass/modules/

The video tutorial is splitted into two parts. The first part is completely in
german and shows only the presentation, which are also available
in english and german as pdf and OpenOffice2 format.

The second part of the video tutorial shows the handling of the test suite and ist partly in german (the small text parts).
Those small text parts are also available in the english pdf presentation.
So if you read the english pdf presentation, you can easily follow the second part of the tutorial.

English presentation:
http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS-Testsuite-Presentation-OO2-New_en.pdf
Part two of the tutorial:
http://www-pool.math.tu-berlin.de/~soeren/grass/modules/Tutorials/Testsuite/Testsuite_Tutorial_part2_de.html

I wish to add an english tutorial too, but have no time for that for the next months.

Thank you in advance for your
comments, suggestions or constructive criticism.
Everything is welcome!!

Best regards
Soeren

Hi Radim,

On Friday 31 March 2006 10:31, Radim Blazek wrote:

Good,

could you please run it also on Windows version?
http://mpa.itc.it/radim/wingrass/qgis-0.8.0-preview-win32-060329.zip

The package includes MSYS and shell so it should be possible
to run your test. You can either start it from script setting GISRC
or you can start QGIS, open a mapset and then start GRASS shell
from GRASS tools.

Radim

I will try, but i think this wont work. I'm using some Unix tools like sed, rm and stuff.
I will see if MSYS provides those tools, because i didnt find much information about this toolset
at http://www.mingw.org/msys.shtml ... . I think this is only a bash and tar???

I tried first to use only bash functionality, but this functionality is to limited
for the test suite. So i had to use Unix tools too.

Also md5sum must be installed in windows,
otherwise the md5 checksum tests are not available.

Is there no other bash-unix-tool environment for windows available?
I didnt found one.

And how about the existing shell scripts in grass,
do they work with MSYS and GRASS with windows?

I will try this out this evening.
Best regards
Soeren

On 3/30/06, Sören Gebbert <soerengebbert@gmx.de> wrote:
> Hi all,
> since some weeks i'm developing a test suite for GRASS.
> I have implemented a test frame work and some basic tests.
>
> I would like to have some feedback from the devs and users if the concept
> of the test suite is correct or even meaningful, because i'm thinking a test suite is very important
> for GRASS, especially for the development process.
>
> I hope to provide an environment for easy test development to support
> stability and error reduction for GRASS.
>
> You can download the latest test suite and the test location here:
> http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS_Testsuite.tar.gz
> http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/spearfish_grass60data.tar.gz
>
> The test suite will only work correctly within the test location (this is the newest
> not modified spearfish60 location) and with a fresh grass-6.1 cvs version!
>
> If you run the test suite, you can compare your results with my results:
> http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/html/GRASSSummary.html
>
> I made a (currently incomplete) video tutorial in german and a pdf presentation in english and german.
> Because i'm not a nativ english speaker, i would encourage the native's to check the
> english presentation. It would be a great help for me, if you can support me to write better
> presentations and tutorials.
>
> The video tutorials and the pdf presentations are available here:
>
> http://www-pool.math.tu-berlin.de/~soeren/grass/modules/
>
> The video tutorial is splitted into two parts. The first part is completely in
> german and shows only the presentation, which are also available
> in english and german as pdf and OpenOffice2 format.
>
> The second part of the video tutorial shows the handling of the test suite and ist partly in german (the small text parts).
> Those small text parts are also available in the english pdf presentation.
> So if you read the english pdf presentation, you can easily follow the second part of the tutorial.
>
> English presentation:
> http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS-Testsuite-Presentation-OO2-New_en.pdf
> Part two of the tutorial:
> http://www-pool.math.tu-berlin.de/~soeren/grass/modules/Tutorials/Testsuite/Testsuite_Tutorial_part2_de.html
>
> I wish to add an english tutorial too, but have no time for that for the next months.
>
> Thank you in advance for your
> comments, suggestions or constructive criticism.
> Everything is welcome!!
>
> Best regards
> Soeren
>
>

On 3/31/06, Sören Gebbert <soerengebbert@gmx.de> wrote:

Hi Radim,

On Friday 31 March 2006 10:31, Radim Blazek wrote:
> Good,
>
> could you please run it also on Windows version?
> http://mpa.itc.it/radim/wingrass/qgis-0.8.0-preview-win32-060329.zip
>
> The package includes MSYS and shell so it should be possible
> to run your test. You can either start it from script setting GISRC
> or you can start QGIS, open a mapset and then start GRASS shell
> from GRASS tools.
>
> Radim

I will try, but i think this wont work. I'm using some Unix tools like sed, rm and stuff.
I will see if MSYS provides those tools, because i didnt find much information about this toolset
at http://www.mingw.org/msys.shtml ... . I think this is only a bash and tar???

I tried first to use only bash functionality, but this functionality is to limited
for the test suite. So i had to use Unix tools too.

Also md5sum must be installed in windows,
otherwise the md5 checksum tests are not available.

Is there no other bash-unix-tool environment for windows available?
I didnt found one.

MSYS includes:
basename.exe env.exe install.exe od.exe tail.exe
bzip2.exe expr.exe install-info.exe patch.exe tar.exe
cat.exe false.exe less.exe ps.exe tee.exe
chmod.exe find.exe ln.exe rmdir.exe texindex.exe
cmp.exe fold.exe ls.exe rm.exe touch.exe
comm.exe gawk.exe m4.exe rxvt.exe tr.exe
cp.exe grep.exe make.exe sed.exe true.exe
cut.exe gzip.exe makeinfo.exe sh.exe uname.exe
date.exe head.exe md5sum.exe sleep.exe uniq.exe
diff3.exe id.exe mkdir.exe sort.exe vim.exe
diff.exe info.exe mount.exe split.exe wc.exe
dirname.exe infokey.exe mv.exe stty.exe xargs.exe

And how about the existing shell scripts in grass,
do they work with MSYS and GRASS with windows?

At moment no because of the problem with variables I reported yesterday,
but they will work soon using sh.exe from MSYS.

Radim

I will try this out this evening.
Best regards
Soeren

>
>
> On 3/30/06, Sören Gebbert <soerengebbert@gmx.de> wrote:
> > Hi all,
> > since some weeks i'm developing a test suite for GRASS.
> > I have implemented a test frame work and some basic tests.
> >
> > I would like to have some feedback from the devs and users if the concept
> > of the test suite is correct or even meaningful, because i'm thinking a test suite is very important
> > for GRASS, especially for the development process.
> >
> > I hope to provide an environment for easy test development to support
> > stability and error reduction for GRASS.
> >
> > You can download the latest test suite and the test location here:
> > http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS_Testsuite.tar.gz
> > http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/spearfish_grass60data.tar.gz
> >
> > The test suite will only work correctly within the test location (this is the newest
> > not modified spearfish60 location) and with a fresh grass-6.1 cvs version!
> >
> > If you run the test suite, you can compare your results with my results:
> > http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/html/GRASSSummary.html
> >
> > I made a (currently incomplete) video tutorial in german and a pdf presentation in english and german.
> > Because i'm not a nativ english speaker, i would encourage the native's to check the
> > english presentation. It would be a great help for me, if you can support me to write better
> > presentations and tutorials.
> >
> > The video tutorials and the pdf presentations are available here:
> >
> > http://www-pool.math.tu-berlin.de/~soeren/grass/modules/
> >
> > The video tutorial is splitted into two parts. The first part is completely in
> > german and shows only the presentation, which are also available
> > in english and german as pdf and OpenOffice2 format.
> >
> > The second part of the video tutorial shows the handling of the test suite and ist partly in german (the small text parts).
> > Those small text parts are also available in the english pdf presentation.
> > So if you read the english pdf presentation, you can easily follow the second part of the tutorial.
> >
> > English presentation:
> > http://www-pool.math.tu-berlin.de/~soeren/grass/GRASS_TestSuite/GRASS-Testsuite-Presentation-OO2-New_en.pdf
> > Part two of the tutorial:
> > http://www-pool.math.tu-berlin.de/~soeren/grass/modules/Tutorials/Testsuite/Testsuite_Tutorial_part2_de.html
> >
> > I wish to add an english tutorial too, but have no time for that for the next months.
> >
> > Thank you in advance for your
> > comments, suggestions or constructive criticism.
> > Everything is welcome!!
> >
> > Best regards
> > Soeren
> >
> >
>
>

Hi Radim,
many thanks for this info, that sounds very promising!
With those tools, the test suite should run. If not, i will make
it run!
Maybe i only need to rename some progs and stuff (awk -> gawk).
And HURRAY, md5sum is present. :slight_smile:

MSYS includes:
basename.exe env.exe install.exe od.exe tail.exe
bzip2.exe expr.exe install-info.exe patch.exe tar.exe
cat.exe false.exe less.exe ps.exe tee.exe
chmod.exe find.exe ln.exe rmdir.exe texindex.exe
cmp.exe fold.exe ls.exe rm.exe touch.exe
comm.exe gawk.exe m4.exe rxvt.exe tr.exe
cp.exe grep.exe make.exe sed.exe true.exe
cut.exe gzip.exe makeinfo.exe sh.exe uname.exe
date.exe head.exe md5sum.exe sleep.exe uniq.exe
diff3.exe id.exe mkdir.exe sort.exe vim.exe
diff.exe info.exe mount.exe split.exe wc.exe
dirname.exe infokey.exe mv.exe stty.exe xargs.exe

> And how about the existing shell scripts in grass,
> do they work with MSYS and GRASS with windows?

At moment no because of the problem with variables I reported yesterday,
but they will work soon using sh.exe from MSYS.

What does soon mean, do you provide a new zip archive?
Or can i handle this?
Sorry, i have no clue of windows ... or how qgis handles the shell.

Best regards
Soeren

Radim

--
Analog-/ISDN-Nutzer sparen mit GMX SmartSurfer bis zu 70%!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer

On 3/31/06, "Sören Gebbert" <soerengebbert@gmx.de> wrote:

Hi Radim,
many thanks for this info, that sounds very promising!
With those tools, the test suite should run. If not, i will make
it run!
Maybe i only need to rename some progs and stuff (awk -> gawk).
And HURRAY, md5sum is present. :slight_smile:

> MSYS includes:
> basename.exe env.exe install.exe od.exe tail.exe
> bzip2.exe expr.exe install-info.exe patch.exe tar.exe
> cat.exe false.exe less.exe ps.exe tee.exe
> chmod.exe find.exe ln.exe rmdir.exe texindex.exe
> cmp.exe fold.exe ls.exe rm.exe touch.exe
> comm.exe gawk.exe m4.exe rxvt.exe tr.exe
> cp.exe grep.exe make.exe sed.exe true.exe
> cut.exe gzip.exe makeinfo.exe sh.exe uname.exe
> date.exe head.exe md5sum.exe sleep.exe uniq.exe
> diff3.exe id.exe mkdir.exe sort.exe vim.exe
> diff.exe info.exe mount.exe split.exe wc.exe
> dirname.exe infokey.exe mv.exe stty.exe xargs.exe
>
> > And how about the existing shell scripts in grass,
> > do they work with MSYS and GRASS with windows?
>
> At moment no because of the problem with variables I reported yesterday,
> but they will work soon using sh.exe from MSYS.

What does soon mean, do you provide a new zip archive?
Or can i handle this?
Sorry, i have no clue of windows ... or how qgis handles the shell.

Soon means the next week but you don't need to wait for it
because the problem applies only to scripts using g.parser.

Radim

Best regards
Soeren

>
> Radim

--
Analog-/ISDN-Nutzer sparen mit GMX SmartSurfer bis zu 70%!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer

On Friday 31 March 2006 14:19, Radim Blazek wrote:

On 3/31/06, "Sören Gebbert" <soerengebbert@gmx.de> wrote:
> Hi Radim,
> many thanks for this info, that sounds very promising!
> With those tools, the test suite should run. If not, i will make
> it run!
> Maybe i only need to rename some progs and stuff (awk -> gawk).
> And HURRAY, md5sum is present. :slight_smile:
>
> > MSYS includes:
> > basename.exe env.exe install.exe od.exe tail.exe
> > bzip2.exe expr.exe install-info.exe patch.exe tar.exe
> > cat.exe false.exe less.exe ps.exe tee.exe
> > chmod.exe find.exe ln.exe rmdir.exe texindex.exe
> > cmp.exe fold.exe ls.exe rm.exe touch.exe
> > comm.exe gawk.exe m4.exe rxvt.exe tr.exe
> > cp.exe grep.exe make.exe sed.exe true.exe
> > cut.exe gzip.exe makeinfo.exe sh.exe uname.exe
> > date.exe head.exe md5sum.exe sleep.exe uniq.exe
> > diff3.exe id.exe mkdir.exe sort.exe vim.exe
> > diff.exe info.exe mount.exe split.exe wc.exe
> > dirname.exe infokey.exe mv.exe stty.exe xargs.exe
> >
> > > And how about the existing shell scripts in grass,
> > > do they work with MSYS and GRASS with windows?
> >
> > At moment no because of the problem with variables I reported yesterday,
> > but they will work soon using sh.exe from MSYS.
>
> What does soon mean, do you provide a new zip archive?
> Or can i handle this?
> Sorry, i have no clue of windows ... or how qgis handles the shell.

Soon means the next week but you don't need to wait for it
because the problem applies only to scripts using g.parser.

So i will have a problem. Many scripts of the framework using g.parser.
Some of them are designed as stand alone program (md5 sum check).
Can i handle this by my own or do i have to wait?

Best
Soeren

Radim

> Best regards
> Soeren
>
> >
> > Radim
>
> --
> Analog-/ISDN-Nutzer sparen mit GMX SmartSurfer bis zu 70%!
> Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
>

On 3/31/06, Sören Gebbert <soerengebbert@gmx.de> wrote:

> > What does soon mean, do you provide a new zip archive?
> > Or can i handle this?
> > Sorry, i have no clue of windows ... or how qgis handles the shell.
>
> Soon means the next week but you don't need to wait for it
> because the problem applies only to scripts using g.parser.

So i will have a problem. Many scripts of the framework using g.parser.
Some of them are designed as stand alone program (md5 sum check).
Can i handle this by my own or do i have to wait?

You need to wait until the fix appeares in cvs and the next qgis/grass build.

Radim