Add regression tests for psql's \o and \g on files
authorMichael Paquier <michael@paquier.xyz>
Wed, 30 Nov 2022 05:46:43 +0000 (14:46 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 30 Nov 2022 05:46:43 +0000 (14:46 +0900)
commitd2a4490401f2ddc878134a1fd75ef4482e403e47
treedf647227acba533cc46849b1e8915f0737cfcb38
parent66bc9d2d3e57acca20bcb0b6deb225abb01384bf
Add regression tests for psql's \o and \g on files

This adds coverage for a few scenarios not checked yet in psql, with
multiple query combined across files defined by \o, \g or both at the
same time.  The results are saved in the output files defined, then
reloaded back to check what has been written to them.

Author: Daniel Verite
Discussion: https://postgr.es/m/25c2bb5b-9012-40f8-8088-774cb764046d@manitou-mail.org
src/test/regress/expected/psql.out
src/test/regress/sql/psql.sql