Skip to content

Commit 902ba8d

Browse files
committed
Add version.sql test
Current version check was moved from init.sql into version.sql because init.sql it is not executed with the 'test' target.
1 parent f229b2e commit 902ba8d

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DATA_built = $(RELEASE_SQL) \
3535
pg_sphere--1.3.1--1.4.0.sql
3636

3737
DOCS = README.pg_sphere COPYRIGHT.pg_sphere
38-
TESTS = tables points euler circle line ellipse poly path box \
38+
TESTS = version tables points euler circle line ellipse poly path box \
3939
index contains_ops contains_ops_compat bounding_box_gist gnomo \
4040
epochprop contains overlaps spoint_brin sbox_brin selectivity
4141
REGRESS = init $(TESTS)

Diff for: expected/init.out

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
--
2-
-- first, define the datatype. Turn off echoing so that expected file
3-
-- does not depend on contents of pg_sphere.sql.
2+
-- Initialize the extension.
43
--
54
CREATE EXTENSION pg_sphere;
6-
select pg_sphere_version();
7-
pg_sphere_version
8-
-------------------
9-
1.4.0
10-
(1 row)
11-

Diff for: expected/version.out

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Check current pgsphere version
2+
SELECT pg_sphere_version();
3+
pg_sphere_version
4+
-------------------
5+
1.4.0
6+
(1 row)
7+

Diff for: sql/init.sql

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
--
2-
-- first, define the datatype. Turn off echoing so that expected file
3-
-- does not depend on contents of pg_sphere.sql.
2+
-- Initialize the extension.
43
--
54
CREATE EXTENSION pg_sphere;
6-
7-
select pg_sphere_version();

Diff for: sql/version.sql

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Check current pgsphere version
2+
SELECT pg_sphere_version();
3+

0 commit comments

Comments
 (0)