From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: moving some indentation tests Date: Thu, 06 Apr 2017 17:11:02 +0300 Message-ID: <83fuhloccp.fsf@gnu.org> References: <878tnj2lap.fsf@tromey.com> <8737dm1agq.fsf@tromey.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1491488194 5573 195.159.176.226 (6 Apr 2017 14:16:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2017 14:16:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 06 16:16:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cw8Cv-0000BX-Rx for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2017 16:16:17 +0200 Original-Received: from localhost ([::1]:46136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cw8D1-0002nF-Pw for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2017 10:16:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cw87r-0007Em-9I for emacs-devel@gnu.org; Thu, 06 Apr 2017 10:11:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cw87n-0002sI-8i for emacs-devel@gnu.org; Thu, 06 Apr 2017 10:11:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cw87n-0002sE-4w; Thu, 06 Apr 2017 10:10:59 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3507 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cw87m-0000LI-EN; Thu, 06 Apr 2017 10:10:58 -0400 In-reply-to: <8737dm1agq.fsf@tromey.com> (message from Tom Tromey on Wed, 05 Apr 2017 21:28:05 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213708 Archived-At: > From: Tom Tromey > Date: Wed, 05 Apr 2017 21:28:05 -0600 > Cc: Emacs discussions > > >>>>> "Tom" == Tom Tromey 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.