emacs-devel
[Top][All Lists]
Advanced

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

Re: moving some indentation tests


From: Eli Zaretskii
Subject: Re: moving some indentation tests
Date: Thu, 06 Apr 2017 17:11:02 +0300

> From: Tom Tromey <address@hidden>
> Date: Wed, 05 Apr 2017 21:28:05 -0600
> Cc: Emacs discussions <address@hidden>
> 
> >>>>> "Tom" == Tom Tromey <address@hidden> writes:
> 
> Tom> I'm thinking I would move the files to test/data and then write a new
> Tom> test that simply iterates over these files and checking that
> Tom> re-indentation works.
> 
> This turns out to be kind of a pain because there's no good way to pick
> a name for the new file.  I tried test/lisp/indentation-tests.el, but
> then the Makefile wants to find a dependency lisp/indentation.el.  I
> wanted to choose a name that *wasn't* the same as any other existing
> lisp file, because this test crosses file boundaries.
> 
> Any advice?

How about picking up a name of an existing source file that is somehow
related to the tests?

If that's not good enough, I think we need some new infrastructure for
this in test/Makefile, e.g. a way of specifying a rule that tells Make
which source files are prerequisites for the given test file, so that
when one of the prerequisites changes, the tests are automatically
run.



reply via email to

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