From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: ERT indentation testing Date: Thu, 19 May 2011 05:33:57 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fwobasiy.fsf@lifelogs.com> References: <87pqngewwp.fsf@spindle.srvr.nix> <87pqnfu51p.fsf@spindle.srvr.nix> <87d3jf3ef8.fsf_-_@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305801324 11623 80.91.229.12 (19 May 2011 10:35:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 May 2011 10:35:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 19 12:35:20 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 1QN0Zb-0006oS-JD for ged-emacs-devel@m.gmane.org; Thu, 19 May 2011 12:35:19 +0200 Original-Received: from localhost ([::1]:46130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN0Za-0004dU-Lp for ged-emacs-devel@m.gmane.org; Thu, 19 May 2011 06:35:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN0ZV-0004dL-7A for emacs-devel@gnu.org; Thu, 19 May 2011 06:35:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QN0ZU-0001f2-8Z for emacs-devel@gnu.org; Thu, 19 May 2011 06:35:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN0ZU-0001eu-1R for emacs-devel@gnu.org; Thu, 19 May 2011 06:35:12 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QN0ZO-0006f4-3y for emacs-devel@gnu.org; Thu, 19 May 2011 12:35:06 +0200 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 May 2011 12:35:06 +0200 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 May 2011 12:35:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:RBreHktbk3XBSIr9QNl5hNw03LQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:139508 Archived-At: On Wed, 18 May 2011 19:19:25 -0300 Stefan Monnier 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. Ted