From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Perl and Emacs: Developing tests for progmodes Date: Fri, 04 Sep 2020 09:55:44 +0300 Message-ID: <838sdquj2n.fsf@gnu.org> References: <935d77f8-72c4-16fd-f9d6-39ba965e99e8@posteo.de> <83h7sevk6g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34615"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Harald =?utf-8?Q?J=C3=B6rg?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 04 08:56:30 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE5eA-0008uZ-Jj for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Sep 2020 08:56:30 +0200 Original-Received: from localhost ([::1]:59396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE5e9-0000rp-JB for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Sep 2020 02:56:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE5de-0000Rp-1j for emacs-devel@gnu.org; Fri, 04 Sep 2020 02:55:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53883) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE5db-0001aV-UV; Fri, 04 Sep 2020 02:55:55 -0400 Original-Received: from [176.228.60.248] (port=2398 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kE5db-0001UF-1F; Fri, 04 Sep 2020 02:55:55 -0400 In-Reply-To: (message from Harald =?utf-8?Q?J=C3=B6rg?= on Thu, 3 Sep 2020 22:00:22 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254516 Archived-At: > Cc: emacs-devel@gnu.org, stefankangas@gmail.com, monnier@iro.umontreal.ca > From: Harald Jörg > Date: Thu, 3 Sep 2020 22:00:22 +0200 > > > We generally > > have a structure under test/ that mirrors the file hierarchy of the > > sources being tested, so it would be natural to have 2 separate files, > > test/lisp/progmodes/perl-mode-tests.el and > > test/lisp/progmodes/cperl-mode-tests.el. > > Such was my understanding of test/file-organization.org, too. > > > Does that answer your question? > > Not really: As far as I understand, Stefan Monnier augmented the first > version of cperl-mode-tests.el so that it is also applicable for > perl-mode.el (commit 7a7847d7ad5). So, a (not-yet-existing) > perl-mode-tests.el would just (let ((cperl-test-mode #'perl-mode)) and > then run the tests in cperl-mode-tests.pl. Then I guess I misunderstand the problem you are trying to solve, sorry.