pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Piotr Stefaniak <postgres@piotr-stefaniak.me>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.)
Date: Wed, 14 Jun 2017 13:31:21 -0400
Message-ID: <3427.1497461481@sss.pgh.pa.us> (raw)
In-Reply-To: <VI1PR03MB1199A1CD210B8541449350EFF2C20@VI1PR03MB1199.eurprd03.prod.outlook.com>
References: <20170517171600.fyxl3lhseszeuqrx@alvherre.pgsql>
	<AM3PR03MB1188858CCD55BC737C856F65F2E70@AM3PR03MB1188.eurprd03.prod.outlook.com>
	<880.1495045872@sss.pgh.pa.us>
	<VI1PR03MB119946C58CB0DD179DE43AD7F2E70@VI1PR03MB1199.eurprd03.prod.outlook.com>
	<5316.1495051919@sss.pgh.pa.us>
	<VI1PR03MB11999517FAD86D2C02407272F2E70@VI1PR03MB1199.eurprd03.prod.outlook.com>
	<11874.1495057567@sss.pgh.pa.us>
	<VI1PR03MB119987EDC3126CD6A56CF29CF2E40@VI1PR03MB1199.eurprd03.prod.outlook.com>
	<15819.1495145176@sss.pgh.pa.us>
	<VI1PR03MB1199E65EFAE1C1EE8E02D040F2FB0@VI1PR03MB1199.eurprd03.prod.outlook.com>
	<51717.1495410614@sss.pgh.pa.us>
	<VI1PR03MB119959F4B65F000CA7CD9F6BF2CC0@VI1PR03MB1199.eurprd03.prod.outlook.com>
	<24365.1497370969@sss.pgh.pa.us>
	<VI1PR03MB1199A1CD210B8541449350EFF2C20@VI1PR03MB1199.eurprd03.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Piotr Stefaniak <postgres@piotr-stefaniak.me> 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=`basename "$$testsrc" .0`; \
	./$(INDENT) $$testsrc $$test.out -P$(srcdir)/tests/$$test.pro || echo FAILED >>$$test.out; \
	diff -u $$testsrc.stdout $$test.out || exit 1; \
	done

and I'm getting one failure, which I don't understand:

inline patch 1: f_decls.out (+2/-2 lines) download inline-1.patch--- ./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; } -int * +int * y(void) {
Does that test case pass for you? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

view thread (37+ messages)  latest in thread

Message-ID: <3427.1497461481@sss.pgh.pa.us>
Permalink:  ../3427.1497461481@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3427.1497461481@sss.pgh.pa.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, postgres@piotr-stefaniak.me, alvherre@2ndquadrant.com, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.)
  In-Reply-To: <3427.1497461481@sss.pgh.pa.us>
  References: <20170517171600.fyxl3lhseszeuqrx@alvherre.pgsql> <AM3PR03MB1188858CCD55BC737C856F65F2E70@AM3PR03MB1188.eurprd03.prod.outlook.com> <880.1495045872@sss.pgh.pa.us> <VI1PR03MB119946C58CB0DD179DE43AD7F2E70@VI1PR03MB1199.eurprd03.prod.outlook.com> <5316.1495051919@sss.pgh.pa.us> <VI1PR03MB11999517FAD86D2C02407272F2E70@VI1PR03MB1199.eurprd03.prod.outlook.com> <11874.1495057567@sss.pgh.pa.us> <VI1PR03MB119987EDC3126CD6A56CF29CF2E40@VI1PR03MB1199.eurprd03.prod.outlook.com> <15819.1495145176@sss.pgh.pa.us> <VI1PR03MB1199E65EFAE1C1EE8E02D040F2FB0@VI1PR03MB1199.eurprd03.prod.outlook.com> <51717.1495410614@sss.pgh.pa.us> <VI1PR03MB119959F4B65F000CA7CD9F6BF2CC0@VI1PR03MB1199.eurprd03.prod.outlook.com> <24365.1497370969@sss.pgh.pa.us> <VI1PR03MB1199A1CD210B8541449350EFF2C20@VI1PR03MB1199.eurprd03.prod.outlook.com> <3427.1497461481@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox