Convert src/interfaces/libpq/test to a tap test.
authorAndres Freund <andres@anarazel.de>
Sun, 27 Feb 2022 00:51:47 +0000 (16:51 -0800)
committerAndres Freund <andres@anarazel.de>
Sun, 27 Feb 2022 00:51:47 +0000 (16:51 -0800)
commitac25173cdbc40b310a7e72d9557c45a699f1f7b3
tree79571290be6698ada25a77c154e76ab879c15c48
parent1155d8b8d52ed8705fd8386eaa64fb05c04170c6
Convert src/interfaces/libpq/test to a tap test.

The old form of the test needed a bunch of custom infrastructure. These days
tap tests provide the necessary infrastructure to do better.

We discussed whether to move this test to src/test/modules, alongside
libpq_pipeline, but concluded that the opposite direction would be
better. libpq_pipeline will be moved at a later date, once the buildfarm and
msvc build infrastructure is ready for it.

The invocation of the tap test will be added in the next commit. It involves
just enough buildsystem changes to be worth commiting separately. Can't happen
the other way round because prove errors out when invoked without tests.

Discussion: https://postgr.es/m/20220223203031.ezrd73ohvjgfksow@alap3.anarazel.de
src/interfaces/libpq/t/001_uri.pl [new file with mode: 0644]
src/interfaces/libpq/test/.gitignore
src/interfaces/libpq/test/Makefile
src/interfaces/libpq/test/README [deleted file]
src/interfaces/libpq/test/expected.out [deleted file]
src/interfaces/libpq/test/regress.in [deleted file]
src/interfaces/libpq/test/regress.pl [deleted file]