Closed adamguo0 closed 11 months ago
Is it possible to set up CI to test for installing these example?
Is it possible to set up CI to test for installing these example?
I'm trying to setup make installcheck
in a way that lets you seamlessly run normal regression tests in a pg_tle
context without any changes, that would be ideal to reduce friction. pg_regress
is somewhat limiting though so I'm not sure this is possible
Integrating regression tests in a seamless way will take more effort since pg_regress doesn't provide a way to run a setup script first before the tests (my working example uses an ugly psql wrapper script), so let's address that in a follow up. Rebased against main, no further changes made
Forgot to mention, I think this is a really good idea -- nice work!
Issue #, if available:
Description of changes: Adds a
pgtle.mk
Makefile and acreate_pgtle_scripts.sh
to automatically install regular trusted language Postgres extensions usingmake install
. Reorganize the examples directory so that each example is a regular Postgres extension with sql files, control file, and Makefile that can be installed with either PGXS or pg_tle Make targets.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.