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: Thu, 03 Sep 2020 20:34:15 +0300 Message-ID: <83h7sevk6g.fsf@gnu.org> References: <935d77f8-72c4-16fd-f9d6-39ba965e99e8@posteo.de> 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="39697"; 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 Thu Sep 03 19:36:19 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 1kDt9n-000ADf-F9 for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Sep 2020 19:36:19 +0200 Original-Received: from localhost ([::1]:47966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDt9m-0002JG-IK for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Sep 2020 13:36:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDt82-0000Az-5i for emacs-devel@gnu.org; Thu, 03 Sep 2020 13:34:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41511) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDt81-0003Mr-F6; Thu, 03 Sep 2020 13:34:29 -0400 Original-Received: from [176.228.60.248] (port=4862 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kDt7z-0006bp-EV; Thu, 03 Sep 2020 13:34:28 -0400 In-Reply-To: <935d77f8-72c4-16fd-f9d6-39ba965e99e8@posteo.de> (message from Harald =?utf-8?Q?J=C3=B6rg?= on Thu, 3 Sep 2020 15:42:47 +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:254502 Archived-At: > From: Harald Jörg > Date: Thu, 3 Sep 2020 15:42:47 +0200 > Cc: Stefan Kangas , > Stefan Monnier > > To solve this, we could: > > - Split the tests into two and manually copy over tests where this > makes sense or: > > - Split the tests into a "common" set plus two sets for the specific > modes (how would the files be named in that case?) or: > > - Keep all tests in one file and tag the individual tests. > > Are there any similar cases in the set of Emacs packages, or > conventions how to do it? Don't perl-mode and cperl-mode live on 2 separate files? 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. Does that answer your question?