On 17-Oct-2008, David Bateman wrote:

| [EMAIL PROTECTED] wrote:
| > Hi David
| > 
| > I know this chapter about tests.
| > But I didn't know what exactly happens wenn I enter "make check".
| > I didn't found something about this in the manual or somewhere on
| > the homepage. Analysing the makefiles seems to be the first
| > barrier to starting with writing tests.
| > 
| > Michael
| 
| You don't really need to know how "make check" works. Just that if you 
| add a test like
| 
| %!assert(1+1,2)
| 
| in an m-file of Octave that this test will be run with "make check"

And, you should also know that you don't even need to run make to run
a test for a file.  You just need to run

  test foo

or

  test foo.m

at the Octave prompt to run the tests for a function defined in foo.m,
or

  test foo.cc

to run the tests for the file foo.cc.  The file must be in your Octave
load path for the test function to find it.

jwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to