From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: moving some indentation tests Date: Sun, 02 Apr 2017 21:31:55 +0100 Message-ID: <874ly6ft50.fsf@russet.org.uk> References: <878tnj2lap.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491165179 18746 195.159.176.226 (2 Apr 2017 20:32:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2017 20:32:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Emacs discussions To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 02 22:32:55 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 1cumB3-0003IK-Id for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2017 22:32:45 +0200 Original-Received: from localhost ([::1]:56181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cumB9-0007nb-5E for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2017 16:32:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cumB3-0007nQ-0O for emacs-devel@gnu.org; Sun, 02 Apr 2017 16:32:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cumAy-0001C1-3f for emacs-devel@gnu.org; Sun, 02 Apr 2017 16:32:45 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:51036) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cumAx-0000bq-QS for emacs-devel@gnu.org; Sun, 02 Apr 2017 16:32:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VfjdDFJ7jRNT0W7TWw5fonKk6rgm43B0SquJEdOmo6c=; b=k5iQHBV3CIO0ZlWQqrHFEbvg8 LA1PDDHBCP+jm8iuz9DVJ6pNOxLmI9pfiHqMRlcpsnX+8ckYT8GMaHCf/yun1lc2RuQsWM4/UbYt6 6a0SNpIUrAi1ObedutVni8AIxpwfEEIFkIBtVpdGzHqxjiWRXr+fUTuHF7mPH3vRbJLbes3OWgtPi OFU4dPvCm2gdkH6mqKCsKMGW2RWxcUch0y9DxsXxlEkAfvIC+ZsMGijjzMTI5btoTwpQpeb16eOSo JUskUreLXoE+488sw5XHyjJVtn1EPKsP8EXz5/yq1Y9JDkvQHRcB9SsqGSYgtXxogeEMZB5oVYtnx 5vRYUvZXg==; Original-Received: from cpc6-benw10-2-0-cust167.gate.cable.virginm.net ([92.238.179.168]:38328 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88) (envelope-from ) id 1cumAG-0004aL-IS; Sun, 02 Apr 2017 20:31:56 +0000 In-Reply-To: <878tnj2lap.fsf@tromey.com> (Tom Tromey's message of "Sun, 02 Apr 2017 03:47:26 -0600") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 78.129.138.110 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:213600 Archived-At: Tom Tromey writes: > Currently indentation tests seem to be in test/manual/indent. However, > most of these could be run automatically. So, I'd like to move them so > that they'll be run by the ordinary "make check". > > I'm thinking I would move the files to test/data and then write a new > test that simply iterates over these files and checking that > re-indentation works. My own package, assess, provides good support for this kind of functionality. In particular, you can do this: (assess-roundtrip-indentation= 'emacs-lisp-mode " (assess-with-find-file \"~/.emacs\" (buffer-string))") if you want to see what you are indenting. And, (assess-file-roundtrip-indentation= "assess.el") if you want to use a file. I've been planning to add this to core -- I was hoping to wait till we have a "core ELPA" packaging sorted out, but this might be some time. If it would be helpful for the indentation tests, I could add this. Phil