octave-maintainers
[Top][All Lists]
Advanced

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

Re: how someone can help improving tests


From: John W. Eaton
Subject: Re: how someone can help improving tests
Date: Fri, 17 Oct 2008 11:27:06 -0400

On 17-Oct-2008, David Bateman wrote:

| address@hidden 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


reply via email to

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