[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make check recommended practice?
From: |
David Bateman |
Subject: |
Re: make check recommended practice? |
Date: |
Mon, 03 Dec 2007 18:25:13 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
John W. Eaton wrote:
> On 3-Dec-2007, David Bateman wrote:
>
> | However, to add a flag for skipped tests would be harder. How would such
> | a test that might be skipped look like? Something like
> |
> | %!testskipifabsent HAVE_PCRE
> | %! ## TEST HERE
> |
> | and then the work to test if the feature is there would go in
> | scripts/testfun/test.m. Thinking about this, it probably won't be too
> | hard to do this, but what should the test name look like. I don't like
> | "testskipifabsent" ..
>
> Maybe handle optional arguments in the "test" block itself? Something
> like
>
> %!test if HAVE_PCRE
> %! ...
>
> Would that work?
>
> jwe
>
>
>
I'm not sure how in that case to distinguish a test like
%!test assert(...)
from an optional test, as the code for the test can immediate follow the
"test" keyword.. This is why I thought a special tag for the optional
tests would be easy, as in that case the next keyword following the
"test" keyword is known explicitly to be the optional block.. Maybe
something like
%!testif HAVE_CHOLMOD
%! assert (...)
mean
%!test
%! if (!isempty(findstr(octave_config_info ("DEFS"),"HAVE_CHOLMOD")))
%! assert (...)
%! endif
This would be fairly trivial to implement. If this is ok, I'll try it
tonight..
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
- Re: make check recommended practice?, Muthiah Annamalai, 2007/12/03
- Re: make check recommended practice?, John W. Eaton, 2007/12/03
- Re: make check recommended practice?,
David Bateman <=
- Re: make check recommended practice?, John W. Eaton, 2007/12/03
- Re: make check recommended practice?, David Bateman, 2007/12/03
- Re: make check recommended practice?, Moritz Borgmann, 2007/12/03
- Re: make check recommended practice?, David Bateman, 2007/12/03
- Re: make check recommended practice?, David Bateman, 2007/12/03
- Re: make check recommended practice?, John W. Eaton, 2007/12/03
- Re: make check recommended practice?, John W. Eaton, 2007/12/03
- Re: make check recommended practice?, David Bateman, 2007/12/03