Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLC8l-0005M0-6e for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2017 17:31:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLC8k-0005Yz-I4 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2017 17:31:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLC8j-0005Yp-UJ for pgsql-hackers@postgresql.org; Wed, 14 Jun 2017 17:31:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLC8b-0002jq-Gj for pgsql-hackers@postgresql.org; Wed, 14 Jun 2017 17:31:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5EHVLji003428; Wed, 14 Jun 2017 13:31:21 -0400 From: Tom Lane To: Piotr Stefaniak cc: Alvaro Herrera , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) In-reply-to: References: <20170517171600.fyxl3lhseszeuqrx@alvherre.pgsql> <880.1495045872@sss.pgh.pa.us> <5316.1495051919@sss.pgh.pa.us> <11874.1495057567@sss.pgh.pa.us> <15819.1495145176@sss.pgh.pa.us> <51717.1495410614@sss.pgh.pa.us> <24365.1497370969@sss.pgh.pa.us> Comments: In-reply-to Piotr Stefaniak message dated "Tue, 13 Jun 2017 20:52:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3426.1497461481.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Jun 2017 13:31:21 -0400 Message-ID: <3427.1497461481@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Piotr Stefaniak writes: > On 2017-06-13 18:22, Tom Lane wrote: >> Also, I am wondering about the test cases under tests/. I do not >> see anything in the Makefile or elsewhere suggesting how those are >> to be used. It would sure be nice to have some quick smoke-test >> to check that a build on a new platform is working. > They'd started out like David Holland's tests for his tradcpp(1), with a > similar makefile (again, BSD make). But I was tenaciously asked to use > Kyua (a testing framework that is the standard regression test mechanism > for FreeBSD) instead, so now the makefile's existence and use is a great > secret and the file is not under any source control. Adaption of the > indent test suite to Kyua made the makefile more inelegant, but I'm > attaching it to this email in hope that you can do something useful with > it. I can only guess that you have the option to use Kyua instead, but I > don't know the tool at all. Ah, thanks. I hacked up a gmake rule for this: test: $(INDENT) cp $(srcdir)/tests/*.list . for testsrc in $(srcdir)/tests/*.0; do \ test=3D`basename "$$testsrc" .0`; \ ./$(INDENT) $$testsrc $$test.out -P$(srcdir)/tests/$$test.pro || echo FAIL= ED >>$$test.out; \ diff -u $$testsrc.stdout $$test.out || exit 1; \ done and I'm getting one failure, which I don't understand: --- ./tests/f_decls.0.stdout 2017-05-21 19:40:38.507303623 -0400 +++ f_decls.out 2017-06-14 13:28:49.212871476 -0400 @@ -1,4 +1,4 @@ -char * +char * x(void) { type identifier; @@ -13,7 +13,7 @@ return NULL; } =20 -int * +int * y(void) { =20 Does that test case pass for you? regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers