Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilvl3-0000h0-JX for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Dec 2019 14:10:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ilvl1-0003g5-8O for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Dec 2019 14:10:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilvl0-0003fw-S5 for pgsql-hackers@lists.postgresql.org; Mon, 30 Dec 2019 14:10:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ilvkw-0002m8-Gt for pgsql-hackers@lists.postgresql.org; Mon, 30 Dec 2019 14:10:51 +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 xBUEAebp004031; Mon, 30 Dec 2019 09:10:41 -0500 From: Tom Lane To: Fabien COELHO cc: PostgreSQL Developers Subject: Re: TAP testing for psql's tab completion code In-reply-to: References: <10967.1577562752@sss.pgh.pa.us> <7904.1577573534@sss.pgh.pa.us> <28327.1577639622@sss.pgh.pa.us> <30270.1577641991@sss.pgh.pa.us> <9761.1577647376@sss.pgh.pa.us> Comments: In-reply-to Fabien COELHO message dated "Mon, 30 Dec 2019 11:49:28 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4029.1577715040.1@sss.pgh.pa.us> Date: Mon, 30 Dec 2019 09:10:40 -0500 Message-ID: <4030.1577715040@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fabien COELHO writes: >> Well, I think that where possible we ought to test using the existing >> test infrastructure -- help, for example, seems like it could perfectly >> well be tested in src/test/regress/sql/psql.sql, or we could move stuff >> out to a new set of SQL test scripts under src/bin/psql/sql/, > I do not think it is a good idea, because help output is quite large, > there are many of them, and we should certainly not want it stored > repeatedly in output files for diffs. Hm, I don't follow --- we are most certainly not going to exercise \help for every possible SQL keyword, that'd just be silly. Having said that, the fact that \help now includes a version-dependent URL in its output is probably enough to break the idea of testing it with a conventional expected-output test, so maybe TAP is the only way for that. regards, tom lane