Opened 11 years ago
Closed 10 years ago
#2358 closed defect (fixed)
Add post-check phase to PostGIS build (installcheck)
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | high | Milestone: | PostGIS 2.2.0 |
Component: | build | Version: | 2.0.x |
Keywords: | Cc: |
Description (last modified by )
Right now we are probalby the only extension that does our check before install. This is great because it allows you to do a quick check before you screw up your postgresql system, but is bad because there is no way verify the install actually works and will install all the necessary plumbing. It also means we have no way of verifying CREATE EXTENSION or even doing a true check of upgrade.
I propose a post-check option to solve this that is a check done after install. Since it is done after install it has a couple of benefits
- It can be run with CREATE EXTENSION thus testing our extension building
- We can easily squeeze in a true upgrade test in here since our model allows for installing multiple versions of postgis in the same instance.
So a switch something like —with-upgrade-from=2.0.4SVN
Will in post-check phase do a:
CREATE EXTENSION postgis VERSION "2.0.4SVN"; ALTER EXTENSION postgis UPDATE TO "2.1.0";
Since both winnie and debbie are doing make installs (have to double-check on debbie, but winnie definitely is), they'll be able to take advantage of this new flag to do a true upgrade regression test.
Change History (9)
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 11 years ago
comment:4 by , 11 years ago
Summary: | Add post-check phase to PostGIS build → Add post-check phase to PostGIS build (installcheck) |
---|
comment:5 by , 10 years ago
run_test.pl is already able to perform post-install check via the —extension switch. Do we want to also test for script-based post-install checks ?
comment:6 by , 10 years ago
r13475 adds a simple "installcheck" that runs all regression tests after an extension-based install. It already serves the purpose of exposing some issues to be cleaned up.
Regina: I'll let you decide if you want to keep this ticket open or close it and file others for single issues that arise or enhancement that you want to add (like testing upgrades).
comment:7 by , 10 years ago
comment:8 by , 10 years ago
Owner: | changed from | to
---|
comment:9 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I'll close and file separately if needed.
For simplicity, I suggest we embed support for this to the existing run_test.pl, with a special switch.