From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Clean up after TAP tests in oid2name and vacuumlo.
Date: Tue, 04 Sep 2018 15:16:55 -0400
Message-ID: <28056.1536088615@sss.pgh.pa.us> (raw)
In-Reply-To: <20180904190321.GF20696@paquier.xyz>
References: <E1fxCgZ-0002aC-4C@gemulon.postgresql.org>
<20180904172957.GC20696@paquier.xyz>
<23385.1536082913@sss.pgh.pa.us>
<20180904190321.GF20696@paquier.xyz>
Michael Paquier <michael@paquier.xyz> 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
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, michael@paquier.xyz
Subject: Re: pgsql: Clean up after TAP tests in oid2name and vacuumlo.
In-Reply-To: <28056.1536088615@sss.pgh.pa.us>
References: <E1fxCgZ-0002aC-4C@gemulon.postgresql.org> <20180904172957.GC20696@paquier.xyz> <23385.1536082913@sss.pgh.pa.us> <20180904190321.GF20696@paquier.xyz> <28056.1536088615@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