postgresql/src/bin
Michael Paquier 384f1abdb9 Fix portability issues in new TAP tests of psql
The tests added by c0280bc and d9ddc50 in 001_basic.pl have introduced
commands calling directly psql, making them sensitive to the
environment.  One issue was that those commands forgot -X to not use a
local .psqlrc, causing all those tests to fail if psql cannot properly
parse this file.

TAP tests should be designed so as they run in an isolated fashion,
without any dependency on the environment where they are run.  As
PostgresNode::psql gives already all the facilities those new tests
need, switch to that instead of calling plain psql commands where
interactions with a backend are needed.  The test is slightly refactored
to be able to check after the expected patterns of stdout and stderr,
keeping the same amount of coverage as previously.

Reported-by: Peter Geoghegan
Discussion: https://postgr.es/m/CAH2-Wzn8ftvcDPwomn+y04JJzbT=TG7TN=QsmSEATUOW-ZuvQQ@mail.gmail.com
2021-10-18 09:51:21 +09:00
..
initdb Update our mapping of Windows time zone names some more. 2021-10-04 14:52:39 -04:00
pg_amcheck Remove unstable pg_amcheck tests. 2021-10-14 14:50:26 -07:00
pg_archivecleanup Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:15:44 +09:00
pg_basebackup Flexible options for CREATE_REPLICATION_SLOT. 2021-10-05 12:52:49 -04:00
pg_checksums Fix some issues with TAP tests for postgres -C 2021-09-22 10:13:38 +09:00
pg_config Translation updates 2021-06-21 12:33:50 +02:00
pg_controldata Unify PostgresNode's new() and get_new_node() methods 2021-07-29 05:58:08 -04:00
pg_ctl Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:15:44 +09:00
pg_dump Avoid core dump in pg_dump when dumping from pre-8.3 server. 2021-10-16 15:02:55 -04:00
pg_resetwal pg_resetwal: Improve numeric command-line argument parsing 2021-08-20 10:51:59 +02:00
pg_rewind Fix incorrect format placeholders 2021-09-15 09:19:01 +02:00
pg_test_fsync Support direct I/O on macOS. 2021-07-19 11:01:01 +12:00
pg_test_timing Translation updates 2021-06-21 12:33:50 +02:00
pg_upgrade Fix tests of pg_upgrade across different major versions 2021-10-13 09:22:00 +09:00
pg_verifybackup Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:15:44 +09:00
pg_waldump Remove some unnecessary casts in format arguments 2021-08-08 22:08:07 +02:00
pgbench Fix incorrect format placeholder 2021-10-13 08:20:59 +02:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Fix portability issues in new TAP tests of psql 2021-10-18 09:51:21 +09:00
scripts Unify PostgresNode's new() and get_new_node() methods 2021-07-29 05:58:08 -04:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00