branch: elpa/pg
commit 15428de16845f60d82ce145891796660c5b7645d
Author: Eric Marsden <eric.mars...@risk-engineering.org>
Commit: Eric Marsden <eric.mars...@risk-engineering.org>

    Add test recipe for Geldata
---
 test/Makefile | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/test/Makefile b/test/Makefile
index 1349f63640..e9460029e3 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -15,7 +15,7 @@ install-deps:
 
 test: test-pg.el install-deps
        ${EMACS} -Q --batch -L .. -L . -l load-deps.el ../pg.el \
-          -l pg.el -l pg-geometry.el -l pg-gis.el -l test-pg.el -f pg-test
+          -l pg.el -l pg-geometry.el -l pg-gis.el -l pg-lo.el -l test-pg.el -f 
pg-test
 
 test-interactive: test-pg.el install-deps
        ${EMACS} -Q -L .. -L . -l load-deps.el ../pg.el \
@@ -575,6 +575,26 @@ test-agensgraph: test-pg.el
        ${DOCKER} stop agensgraph
 
 
+# https://docs.geldata.com/reference/running/deployment/docker
+# https://docs.geldata.com/reference/running/configuration
+# https://hub.docker.com/r/geldata/gel
+# https://github.com/geldata/gel
+#
+# We don't bother detecting this as a specific PostgreSQL variant, because the 
SQL syntax it accepts
+# is too different from standard PostgreSQL (no support for CREATE, for DROP, 
for EXPLAIN
+test-geldata: test-pg.el
+       ${DOCKER} run --rm --name geldata \
+          --publish 127.0.0.1:5656:5656 \
+          -e GEL_SERVER_USER=pgeltestuser \
+          -e GEL_SERVER_PASSWORD=pgeltest \
+          -e GEL_SERVER_PORT=5656 \
+          -e GEL_SERVER_SECURITY=insecure_dev_mode \
+          -d docker.io/geldata/gel:nightly
+       sleep 20
+       
PGURI="postgresql://pgeltestuser:pgeltest@127.0.0.1:5656/edgedb?sslmode=require"
 $(MAKE) test-tls
+       ${DOCKER} stop geldata
+
+
 # Microsoft DocumentDB (PostgreSQL-based). This is not the same product as 
Amazon DocumentDB.
 #
 # https://github.com/microsoft/documentdb

Reply via email to