octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] how someone can help improving tests


From: David Bateman
Subject: Re: [OctDev] how someone can help improving tests
Date: Thu, 16 Oct 2008 16:47:48 +0100
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

address@hidden wrote:
Hi all

I have read the short discussion about helping with the tests.
Now I was wondering if I can read somewhere on the octave or
octave-forge page something about testing.
I could not.

Maybe it's helpfull (also for beginners) if somewhere on a page
are some sentence written about "how to start improving tests" or something similar. Maybe at the wiki page?
Check the chapter of the manual

http://www.gnu.org/software/octave/doc/interpreter/Test-Functions.html#Test-Functions

Now for my own interests, what exactly happens if I enter "make check" after
compiling the octave source?
I see running a lot of tests. I think this are the tests in the m-files
where the lines start with %! but I'm not sure.
"make check" checks all *.cc and *.m fiels in the octave source tree for lines starting with "%!", extracts them and passes them the the "test" function of Octave. Once it has done that it executes all of the stand-alone test scripts that are in the octave/test/*.m directory. Note that the stand-alone sparse test script is actually built with a shell script before actually being used.
Writing tests for m-files which doesn't have them can be a good start to learn 
how octave
works and how some code looks like.

I couldn't agree more.

D.

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



reply via email to

[Prev in Thread] Current Thread [Next in Thread]