octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #47424] Cannot run "test function" for builtin


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #47424] Cannot run "test function" for builtin functions
Date: Tue, 22 Mar 2016 14:31:56 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0

Follow-up Comment #4, bug #47424 (project octave):

I agree that it would be nice to have a feature like this.  However, since
multiple functions may be defined in a .oct file or a .cc file that is built
in to Octave, it seems like it would be likely to mislead users into thinking
that there are many more tests for built-in functions than are actually
present.  I'd rather not install this change unless we have a way to tag a
block of tests in a source file as belonging to a particular function and can
also make the test function run only those tests for the given function, not
all tests from the associated source file.

It should be relatively straightforward to tag the comment blocks with
something like


%!tests-for: fcn-name
%! [...]
%!end tests-for


I don't know exactly what the syntax should be, but the point is to be able to
mark a group of functions as belonging to a particular function.  Then instead
of looking up the file name with "which", we could just arrange for Make to
create -tst files for each function from the source files.  Then we might be
able to just have the test function look for -tst files with the same name as
the function.

I also don't think that we should be putting the logic of make into the test
function.  Let make manage the job of rebuilding the -tst files.

The assumption that the source directory is in ".." is too specific.  The
build and source trees don't have to be nested or related.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47424>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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