From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: ERT indentation testing Date: Thu, 2 Jun 2011 12:37:33 +0000 Message-ID: <20110602123733.GA4208@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1307022237 28868 80.91.229.12 (2 Jun 2011 13:43:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2011 13:43:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 02 15:43:50 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QS8Bh-0000zF-01 for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2011 15:43:49 +0200 Original-Received: from localhost ([::1]:47091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS8Bf-0000AF-Dj for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2011 09:43:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS7Ah-0000LQ-2L for emacs-devel@gnu.org; Thu, 02 Jun 2011 08:38:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS7Af-0005GO-BH for emacs-devel@gnu.org; Thu, 02 Jun 2011 08:38:42 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:2917 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS7Ae-0005G4-P8 for emacs-devel@gnu.org; Thu, 02 Jun 2011 08:38:41 -0400 Original-Received: (qmail 44838 invoked by uid 3782); 2 Jun 2011 12:38:38 -0000 Original-Received: from acm.muc.de (pD9557B6C.dip.t-dialin.net [217.85.123.108]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 02 Jun 2011 14:38:37 +0200 Original-Received: (qmail 4279 invoked by uid 1000); 2 Jun 2011 12:37:33 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 4.6-4.9 X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140062 Archived-At: Hi, Ted. On 19th May 2011, you wrote: >>> This can be done with ERT, right? A bunch of .cc files with file-local >>> variables could be indented "properly" for those variables. Then the >>> test logic for each file is >SM> [...] >>> Plus, of course, it's not limited to .cc files. It would work just as >>> well for .c, .pl, .el, whatever. >SM> Yup, we already have such files in test/indent. >Yes, I see that now (I didn't see the commit for those, cool!) >We should have .c and .cc files with the major indentation styles >specified as file-local variables, plus .ini, Perl, Java, Python, and of >course Lisp (CL and ELisp). Should I add those? >>> I can write the ERT wrapper if this sounds useful. >SM> If you could integrate test/indent with ERT's automated tests, that >SM> would be nice. >OK, I'll put it on my TODO list. You are aware that there's an extensive test suite for CC Mode's indentation (and font locking). It's in the tests directory of CC Mode's CVS repository, which can be downloaded from http://cc-mode.sourceforge.net/. Look for the file 000tests.el. -- Alan Mackenzie (Nuremberg, Germany).