regress: allow to specify directory containing expected files, for ecpg
authorAndres Freund <[email protected]>
Sat, 20 Aug 2022 17:59:01 +0000 (10:59 -0700)
committerAndres Freund <[email protected]>
Sat, 20 Aug 2022 17:59:01 +0000 (10:59 -0700)
commitc855872074b5bf44ecea033674d22fac831cfc31
treec78c8a77665ca88ec294b0a96b228601f1af657e
parent1509abe2c5da6002620718d18031f5b5234c15cd
regress: allow to specify directory containing expected files, for ecpg

The ecpg tests have their input directory in the build directory, as the tests
need to be built. Until now that required copying the expected/ directory to
the build directory in VPATH builds. To avoid needing to implement the same
for the meson build, add support for specifying the location of the expected
directory.

Now that that's not needed anymore, remove the copying of ecpg's expected
directory to the build directory in VPATH builds.

Author: Nazir Bilal Yavuz <[email protected]>
Author: Andres Freund <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: https://postgr.es/m/20220718202327[email protected]
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/pg_regress_ecpg.c
src/test/regress/pg_regress.c
src/test/regress/pg_regress.h