logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dh_pgxs_test - Run testsuite during a PGXS PostgreSQL extension build

Author

       Christoph Berg <myon@debian.org>

Debian                                             2025-02-20                                    DH_PGXS_TEST(1)

Description

PostgreSQL extensions need to be installed before they can be tested and hence the usual debhelper way of
       invoking tests from dh_auto_test(1) does not work.

       dh_pgxs_test is a dh(1) sequence point created by the pgxs and pgxs_loopdebhelper extensions that is
       executed after dh_auto_install(1).  It calls pg_buildextinstallcheck after a PostgreSQL extension module
       has been built and installed into the debian/packagename/ directory.

       Users wishing to change the action called by dh_pgxs_test should call pg_buildext or similar commands.

         override_dh_pgxs_test:
                 echo "CREATE EXTENSION foo" | pg_buildext psql . . postgresql-%v-foo

Name

       dh_pgxs_test - Run testsuite during a PGXS PostgreSQL extension build

Options

loopdh--withpgxs builds packages in build-%v subdirectories. The loop options corresponds to dh--withpgxs_loop and builds in the top-level directory.

See Also

debhelper(7), dh(1), dh_make_pgxs(1), pg_buildext(1).

Synopsis

dh_pgxs_test [loop]

See Also