~ubuntu-branches/ubuntu/trusty/postgis/trusty-security

« back to all changes in this revision

Viewing changes to regress/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2009-12-11 13:10:34 UTC
  • mfrom: (1.1.9 upstream) (5.2.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20091211131034-wmsz69wxvt95pe5r
Tags: 1.4.0-2
* Upload to unstable.
* Better parameterized debian/rules against postgis $(VERSION).
* Added dblatex and libcunit1-dev among build-deps.
* Added postgis_comments.sql to contrib/ SQL templates.
* Dropping 8.3 support, no more supported for squeeze.
  (closes: #559587)
* Do not stop on error in postrm if the target dir does not exist.
  (closes: #560409)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TMPDIR?=/tmp
2
2
 
3
 
include ../Makefile.config
 
3
POSTGIS_PGSQL_VERSION=83
 
4
POSTGIS_GEOS_VERSION=32
 
5
POSTGIS_PROJ_VERSION=46
 
6
 
 
7
# MingW hack: rather than use PGSQL_BINDIR directly, we change
 
8
# to the directory and then use "pwd" to return the path. This
 
9
# ensures that the returned path is in MSYS format, otherwise
 
10
# colons in drive letters will break PATH.
 
11
PGSQL_BINDIR=$(shell pushd "/usr/local/pgsql/8.3/bin" > /dev/null && pwd && popd > /dev/null)
 
12
 
 
13
 
14
# Put path from pg_config into front of search path
 
15
#
 
16
PATH := "$(PGSQL_BINDIR):$(PATH)"
 
17
export PATH
 
18
 
4
19
 
5
20
TESTS = \
6
21
        loader/Point \
36
51
        sql-mm-general \
37
52
        sql-mm-multicurve \
38
53
        sql-mm-multisurface \
39
 
        geojson
40
 
 
41
 
PREPROC = \
42
 
        sql-mm-circularstring_expected \
43
 
        sql-mm-compoundcurve_expected \
44
 
        sql-mm-curvepoly_expected \
45
 
        sql-mm-multicurve_expected \
46
 
        sql-mm-multisurface_expected
47
 
 
48
 
 
49
 
# GEOS tests only if GEOS is available
50
 
ifeq ($(USE_GEOS),1)
51
 
        TESTS += regress_ogc regress_bdpoly 
 
54
        geojson \
 
55
        gml \
 
56
        svg \
 
57
        kml \
 
58
        regress_ogc \
 
59
        regress_bdpoly \
 
60
        regress_proj
52
61
 
53
62
# Covers/CoveredBy only if GEOS >= 3.0
54
 
ifeq ($(shell expr $(GEOS_VERNUM) ">=" 30),1)
 
63
ifeq ($(shell expr $(POSTGIS_GEOS_VERSION) ">=" 30),1)
55
64
        TESTS += regress_ogc_cover 
56
65
 
57
66
# PreparedGeometry only if GEOS >= 3.1
58
 
ifeq ($(shell expr $(GEOS_VERNUM) ">=" 31),1)
 
67
ifeq ($(shell expr $(POSTGIS_GEOS_VERSION) ">=" 31),1)
59
68
        TESTS += regress_ogc_prep
60
69
 
61
70
endif
62
71
endif
63
 
endif
64
72
 
65
 
ifeq ($(USE_PROJ),1)
66
 
        TESTS += regress_proj kml
67
 
endif
68
73
 
69
74
all: test 
70
75
 
71
 
test check: lwpostgis.sql ../lwgeom/liblwgeom.so ../loader/pgsql2shp ../loader/shp2pgsql $(PREPROC)
72
 
        @USE_VERSION="$(USE_VERSION)" ./run_test $(TESTS)
73
 
 
74
 
lwpostgis.sql: ../lwgeom/lwpostgis.sql.in 
75
 
        $(MAKE) -C ../lwgeom ../regress/lwpostgis.sql
76
 
 
77
 
../lwgeom/liblwgeom.so:
78
 
        $(MAKE) -C ../lwgeom all-shared-lib
79
 
 
80
 
../loader/pgsql2shp:
81
 
        $(MAKE) -C ../loader pgsql2shp
82
 
 
83
 
../loader/shp2pgsql:
84
 
        $(MAKE) -C ../loader shp2pgsql
85
 
 
86
 
$(PREPROC):
87
 
        cpp -P -traditional-cpp $@.in | grep -v "^$$" > $@
 
76
test check: ../postgis/postgis.so ../loader/pgsql2shp ../loader/shp2pgsql 
 
77
        cp ../postgis/postgis.sql .
 
78
        @USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS)
 
79
 
 
80
 
 
81
../postgis/postgis.so:
 
82
        $(MAKE) -C ../postgis
 
83
 
 
84
../loader/pgsql2shp ../loader/shp2pgsql:
 
85
        $(MAKE) -C ../loader
88
86
 
89
87
cleanup:
90
88
        @sleep 1
91
89
        @dropdb postgis_reg > /dev/null
92
90
 
93
91
clean:
94
 
        rm -f lwpostgis.sql $(PREPROC)
 
92
        rm -f postgis.sql