texinfo-devel
[Top][All Lists]
Advanced

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

Re: Possible to add options for a test case?


From: Patrice Dumas
Subject: Re: Possible to add options for a test case?
Date: Sat, 21 Nov 2015 12:38:36 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

On Fri, Nov 20, 2015 at 08:07:56PM +0000, Gavin Smith wrote:
> On 20 November 2015 at 19:37, Gavin Smith <address@hidden> wrote:
> > Quick question in case there was a quick answer: I'm trying to add a
> > new test for the node name quoting facility for Info output, but I
> > want to add options:
> >
> > -c INFO_SPECIAL_CHARS_QUOTE=1 -c INFO_SPECIAL_CHARS_WARNING=0
> >
> > I've got as far as adding the following to t/plaintext_tests.t
> >
> > ['quote_node_names',
> > undef, {'test_file' => 'nodequote.texi'}
> > ],
> >
> > (under @file_tests), and nodequote.texi is an input file with various
> > constructions where quoting would be used.
> >
> > I can't see any other tests that use options like this; is there one
> > that does that I could copy?
> 
> I think it's done like this:
> 
> +['quote_node_names',
> +undef,
> +{'test_file' => 'nodequote.texi',},
> +{'INFO_SPECIAL_CHARS_QUOTE'=>1,
> +'INFO_SPECIAL_CHARS_WARNING'=>0,}
> +],

Yes, it looks good. The third hash, here {'test_file' => 'nodequote.texi',}
corresponds to the Parser option, either real options or options
understood by the test code in t/test_utils.pl.  The fourth hash is for
converter options, which is the case of the options here.

I am not sure I documented that anywhere.

-- 
Pat




reply via email to

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