DH_PGXS_TEST(1)

πŸ’– DH_PGXS_TEST(1) πŸ’–

okay bestie, gather round, because this one's from the Debian PostgreSQL infrastructure manual suite and it is so niche but so useful 🫢


✨ NAME ✨

dh_pgxs_test β€” run the testsuite during a PGXS PostgreSQL extension build πŸ§ͺ🐘


🌸 SYNOPSIS 🌸

dh_pgxs_test [loop]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie β˜• β€” PostgreSQL extensions have to be installed before you can test them. like, they literally cannot be tested before that happens. which means the normal debhelper way of kicking off tests, the one from dh_auto_test(1), just... does not work here. it's giving ✨incompatible✨.

enter dh_pgxs_test, the main character πŸ‘‘. it's a dh(1) sequence point created by the pgxs and pgxs_loop debhelper extensions, and it runs after dh_auto_install(1). what does it actually do? it calls pg_buildext installcheck once a PostgreSQL extension module has been built and installed into the debian/packagename/ directory. periodt. πŸ’…

now, if you're the type of person who wants to change the action that dh_pgxs_test calls β€” and honestly, same β€” you should call pg_buildext or similar commands yourself. like this:

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

look at that. iconic. πŸ”₯


πŸŽ€ OPTIONS πŸŽ€

  • loop β€” okay so when you do dh --with pgxs, packages get built inside build-%v subdirectories. the loop option is the counterpart to dh --with pgxs_loop and it builds in the top-level directory instead. no cap 🧚

🌈 SEE ALSO 🌈

debhelper(7), dh(1), dh_make_pgxs(1), pg_buildext(1). go read them, iykyk πŸ’œ


πŸ’Œ AUTHOR πŸ’Œ

Christoph Berg <myon@debian.org> β€” tysm for your service πŸ«‘πŸ’–


okay that's the whole page bestie, you ate that πŸ“ this was the Debian PostgreSQL infrastructure manual, version dated 2026-07-28, and yes it really is DH_PGXS_TEST(1) β€” slay, bye πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from