Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxGox-0006aC-4C for pgsql-committers@arkaria.postgresql.org; Tue, 04 Sep 2018 19:17:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxGov-0003V3-2T for pgsql-committers@arkaria.postgresql.org; Tue, 04 Sep 2018 19:17:01 +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.89) (envelope-from ) id 1fxGou-0003Uv-To for pgsql-committers@lists.postgresql.org; Tue, 04 Sep 2018 19:17:00 +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.89) (envelope-from ) id 1fxGor-0005FW-SU for pgsql-committers@lists.postgresql.org; Tue, 04 Sep 2018 19:17:00 +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 w84JGtU9028057; Tue, 4 Sep 2018 15:16:55 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Clean up after TAP tests in oid2name and vacuumlo. In-reply-to: <20180904190321.GF20696@paquier.xyz> References: <20180904172957.GC20696@paquier.xyz> <23385.1536082913@sss.pgh.pa.us> <20180904190321.GF20696@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Tue, 04 Sep 2018 12:03:21 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28055.1536088615.1@sss.pgh.pa.us> Date: Tue, 04 Sep 2018 15:16:55 -0400 Message-ID: <28056.1536088615@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > Okay, I don't want to create a dependency between REGRESS and > HAVE_TAP_TESTS either, but modules specifying both should be able to > trigger both regressions and tap tests. Agreed ... > So I would be inclined to > create two new rules, say check-regress and installcheck-regress, which > are invoked if check is called, and trigger pg_regress stuff. Then add > on top of it the existing prove-check and prove-installcheck. What do > you think? check and installcheck become this way the centralized place > for all types of test suites. Why would we invent a different target name? I was thinking something roughly like check: submake $(REGRESS_PREP) ifdef REGRESS $(pg_regress_check) $(REGRESS_OPTS) $(REGRESS) endif ifdef TAP_TESTS $(prove_check) endif although getting it to print a useful response when neither symbol is set would require complicating things a bit. Still, as long as there's just one copy of this rule, messiness isn't a big problem. regards, tom lane