Mercurial > gemma
comparison schema/run_tests.sh @ 5095:e21cbb9768a2
Prevent duplicate fairway areas
In principal, there can be only one or no fairway area at each point
on the map. Since polygons from real data will often be topologically
inexact, just disallow equal geometries. This will also help to
avoid importing duplicates with concurrent imports, once the history
of fairway dimensions will be preserved.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 25 Mar 2020 18:10:02 +0100 |
parents | 4c658a8f34da |
children | 722b7c305319 |
comparison
equal
deleted
inserted
replaced
5094:f59ba73ff692 | 5095:e21cbb9768a2 |
---|---|
78 # Drop test roles, add test data and run tests | 78 # Drop test roles, add test data and run tests |
79 psql -qXv ON_ERROR_STOP= -v -d "$db" -p "$port" \ | 79 psql -qXv ON_ERROR_STOP= -v -d "$db" -p "$port" \ |
80 -c 'SET client_min_messages TO WARNING' \ | 80 -c 'SET client_min_messages TO WARNING' \ |
81 -c "DROP ROLE IF EXISTS $TEST_ROLES" \ | 81 -c "DROP ROLE IF EXISTS $TEST_ROLES" \ |
82 -f "$BASEDIR"/tap_tests_data.sql \ | 82 -f "$BASEDIR"/tap_tests_data.sql \ |
83 -c "SELECT plan(85 + ( | 83 -c "SELECT plan(88 + ( |
84 SELECT count(*)::int | 84 SELECT count(*)::int |
85 FROM information_schema.tables | 85 FROM information_schema.tables |
86 WHERE table_schema = 'waterway'))" \ | 86 WHERE table_schema = 'waterway'))" \ |
87 -f "$BASEDIR"/gemma_tests.sql \ | 87 -f "$BASEDIR"/gemma_tests.sql \ |
88 -f "$BASEDIR"/isrs_tests.sql \ | 88 -f "$BASEDIR"/isrs_tests.sql \ |