Commit 0a48df6
Standardize pg_regress usage
Standard PGXS `make installcheck` usage depends on a existing postgres
server. Tests will run in a contrib_regression database created by
pg_regress.
The pg_regress option --use-existing makes pg_regress require an
existing contrib_regression database, but the Makefile does not create
it. Removing that option makes using the testsuite easier.
Similarly, the init.sql file was not loaded by the Makefile, but it is
required to run the tests. Move it into tests/sql/ and name it
00_init.sql so it gets run first.
With these changes, the testsuite runs without any further tweaking
during the Debian package builds for apt.postgresql.org.
Signed-off-by: Christoph Berg <myon@debian.org>1 parent d21a1da commit 0a48df6
3 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
File renamed without changes.
0 commit comments