ecpg: Add TAP test for the ecpg command.
authorFujii Masao <fujii@postgresql.org>
Tue, 4 Mar 2025 05:58:46 +0000 (14:58 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 4 Mar 2025 05:58:46 +0000 (14:58 +0900)
commit28f04984f0c240b76e61f00cd247554fbc850056
treeb4c8aa8ef43ab5613d3604d35ac15a842344e8a5
parentc76db55c9085d0b7984ea337576e45a7d1268b97
ecpg: Add TAP test for the ecpg command.

This commit adds a TAP test to verify that the ecpg command correctly
detects unsupported or disallowed statements in input files and reports
the appropriate error or warning messages.

This test helps catch bugs like the one introduced in commit 3d009e45bd,
which broke ecpg's handling of unsupported COPY FROM STDIN statements,
later fixed by commit 94b914f601b.

Author: Ryo Kanbayashi <kanbayashi.dev@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CANOn0EzoMyxA1m-quDS1UeQUq6FNki6+GGiGucgr9tm2R78rKw@mail.gmail.com
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/meson.build
src/interfaces/ecpg/preproc/t/001_ecpg_err_warn_msg.pl [new file with mode: 0644]
src/interfaces/ecpg/preproc/t/002_ecpg_err_warn_msg_informix.pl [new file with mode: 0644]
src/interfaces/ecpg/preproc/t/err_warn_msg.pgc [new file with mode: 0644]
src/interfaces/ecpg/preproc/t/err_warn_msg_informix.pgc [new file with mode: 0644]