make build-results+
From 4916368a8fb8477616f80d26549b0617cced7395 Mon Sep 17 00:00:00 2001
From: jnasbyupgrade PGXNtool
Runs your extension’s test suite: installs the extension and runs it through PGXS’s
installcheck, first pulling in anything you’ve hooked into testdeps and, if enabled, sanity-checking your test SQL via test-build.
make test runs pg_regress in up to two separate passes:
If test-build is enabled, it runs first, in its own isolated pass over test/build/*.sql. If it fails, the second pass never happens — there’s no point checking install/query behavior against a build that doesn’t even come up cleanly.
The main pass follows: any test/install files, then your regular test/sql/*.sql files, together in a single pg_regress invocation (so state the install files create persists into the regular tests).
Within each pass, files run in alphabetical order by filename.
+Whether test-build runs is controlled by the PGXNTOOL_ENABLE_TEST_BUILD variable — see test-build for what it does and how to turn it on/off.
test exits non-zero (after printing regression.diffs) if any test fails. Previously it always exited 0 regardless of test results, silently masking failures from CI and other automation that relies on the exit code.
+