bug-texinfo
[Top][All Lists]
Advanced

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

Re: EPUB tests using installed code


From: Patrice Dumas
Subject: Re: EPUB tests using installed code
Date: Sun, 7 Aug 2022 10:24:54 +0200

On Sat, Aug 06, 2022 at 11:44:42PM +0100, Gavin Smith wrote:
> On Wed, Jul 27, 2022 at 10:45:24PM +0200, Patrice Dumas wrote:
> > I agree.  I do not think that we want to change the init files directory
> > search path.  But, maybe the init files that are used in texi2any.pl
> > should be in a different directory and be considered 'internal' and not
> > regular init files, and be loaded by a different function than
> > locate_and_load_init_file().  This could be somewhat confusing, though,
> > that --init-file and loading from texi2any.pl is not the same file.
> > Maybe we should just document it clearly.
> 
> I was getting test failures for two of the EPUB tests under tp/tests,
> because they were using the installed modules.  Even after I ran
> "make install", the tests still failed, because the init files had moved
> from init/ to ext/.  It was only after I deleted the left-over files in
> init/ that the tests passed.
> 
> If EPUB is part of the test suite, then it must not use code from installed
> locations when the test suite runs.  If that means changing the search
> path then that is what we must do.

moving to ext/ and importing differently was actually the way to be more
sure to use in source init files.  But the tests need to be called with
--epub3 and HTML_MATH, I didn't make that change systematically, will
do.  However this won't solve the case of tests using init files that
are not considered as being internal extensions.  It should be possible,
however, to set differently include directories when TEST is set.  I'll
see what I can do if you don't do it first.

-- 
Pat



reply via email to

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