postgresql/src/bin/pg_amcheck
Daniel Gustafsson 549ec201d6 Replace Test::More plans with done_testing
Rather than doing manual book keeping to plan the number of tests to run
in each TAP suite, conclude each run with done_testing() summing up the
the number of tests that ran. This removes the need for maintaning and
updating the plan count at the expense of an accurate count of remaining
during the test suite runtime.

This patch has been discussed a number of times, often in the context of
other patches which updates tests, so a larger number of discussions can
be found in the archives.

Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/DD399313-3D56-4666-8079-88949DAC870F@yesql.se
2022-02-11 20:54:44 +01:00
..
po Translation updates 2021-06-21 12:33:50 +02:00
t Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
.gitignore Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00
README Doc: improve README files associated with TAP tests. 2021-10-31 18:12:44 -04:00
nls.mk pg_amcheck: Add missing translation markers 2021-08-07 13:36:59 +02:00
pg_amcheck.c Update copyright for 2022 2022-01-07 19:04:57 -05:00

README

src/bin/pg_amcheck/README

pg_amcheck is a command-line tool for running the amcheck extension.

Running the regression tests
============================

NOTE: You must have given the --enable-tap-tests argument to configure.
Also, to use "make installcheck", you must have built and installed
contrib/amcheck and contrib/pageinspect in addition to the core code.

Run
    make check
or
    make installcheck
You can use "make installcheck" if you previously did "make install".
In that case, the code in the installation tree is tested.  With
"make check", a temporary installation tree is built from the current
sources and then tested.

See src/test/perl/README for more info about running these tests.