octave-maintainers
[Top][All Lists]
Advanced

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

Re: Starting with BIST testing.


From: Mike Miller
Subject: Re: Starting with BIST testing.
Date: Wed, 19 Oct 2016 13:37:51 -0700
User-agent: NeoMutt/20160916 (1.7.0)

On Tue, Oct 18, 2016 at 20:07:29 -0700, NVS Abhilash wrote:
> Thanks Mike for your reply. Yes I have built Octave from source, by doing hg
> clone -> then mkdir .build -> cd .build -> make all -> make check
> 
> I also looked at other function test cases. I also read documentation about
> how and why test cases are written.
> 
> I also wrote some silly test cases for "isinteger". Then I have to 'make',
> again, then I ran test <complete path to data.cc>.
> (make process is too slow, do I have to always do 'make' before I can test
> my changes?) 

You don't need to rebuild if the only changes you are making are unit
tests. If I were adding tests to isinteger, I would do

  vim ../libinterp/corefcn/data.cc  ## add tests
  ./run-octave --eval "test ../libinterp/corefcn/data.cc"

If you want to submit tests to be committed, use hg commit, hg export,
and post the patch to the patch tracker

  https://savannah.gnu.org/patch/?func=additem&group=octave

-- 
mike



reply via email to

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