mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-04 12:02:55 +00:00
## Problem We didn't test the h3 extension in our test suite. ## Summary of changes Added tests for h3 and h3-postgis extensions Includes upgrade test for h3 --------- Co-authored-by: Tristan Partin <tristan@neon.tech>
17 lines
726 B
Bash
Executable File
17 lines
726 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
cd "$(dirname "${0}")"
|
|
PG_REGRESS=$(dirname "$(pg_config --pgxs)")/../test/regress/pg_regress
|
|
dropdb --if-exists contrib_regression
|
|
createdb contrib_regression
|
|
cd h3_postgis/test
|
|
psql -d contrib_regression -c "CREATE EXTENSION postgis" -c "CREATE EXTENSION postgis_raster" -c "CREATE EXTENSION h3" -c "CREATE EXTENSION h3_postgis"
|
|
TESTS=$(echo sql/* | sed 's|sql/||g; s|\.sql||g')
|
|
${PG_REGRESS} --use-existing --dbname contrib_regression ${TESTS}
|
|
cd ../../h3/test
|
|
TESTS=$(echo sql/* | sed 's|sql/||g; s|\.sql||g')
|
|
dropdb --if-exists contrib_regression
|
|
createdb contrib_regression
|
|
psql -d contrib_regression -c "CREATE EXTENSION h3"
|
|
${PG_REGRESS} --use-existing --dbname contrib_regression ${TESTS}
|