Add regression tests for psql's \o and \g on files

Michael Paquier <michael@paquier.xyz>

Commit: d2a4490401f2ddc878134a1fd75ef4482e403e47
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-11-30T05:46:43Z
Releases: 16.0
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

Files

PathChange+/−
src/test/regress/expected/psql.out modified +131 −0
src/test/regress/sql/psql.sql modified +64 −0

Discussion