mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 22:29:58 +00:00
## Problem We currently don't run the tests shipped with `pg_graphql`. ## Summary of changes The tests for `pg_graphql` are added.
14 lines
423 B
Bash
Executable File
14 lines
423 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
cd "$(dirname "${0}")"
|
|
dropdb --if-exists contrib_regression
|
|
createdb contrib_regression
|
|
PGXS="$(dirname "$(pg_config --pgxs)" )"
|
|
REGRESS="${PGXS}/../test/regress/pg_regress"
|
|
TESTDIR="test"
|
|
TESTS=$(ls "${TESTDIR}/sql" | sort )
|
|
TESTS=${TESTS//\.sql/}
|
|
psql -v ON_ERROR_STOP=1 -f test/fixtures.sql -d contrib_regression
|
|
${REGRESS} --use-existing --dbname=contrib_regression --inputdir=${TESTDIR} ${TESTS}
|
|
|