From 6ae7591f3d1b946d5776aff43d421c567f031591 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Wed, 23 Aug 2023 12:48:49 +0200 Subject: [PATCH] Update tests reduce check to postgres version to remove architecture from check --- tests/sql/summary.sql | 4 +++- tests/sql/summary.sql.output | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/sql/summary.sql b/tests/sql/summary.sql index 146810e..4f52a5e 100644 --- a/tests/sql/summary.sql +++ b/tests/sql/summary.sql @@ -12,7 +12,9 @@ select current_database(); \x on -- List PostgreSQL version -SELECT version(); +--SELECT version(); +-- check only version number to remove arch details +SHOW server_version; -- List Postgis version SELECT postgis_full_version(); diff --git a/tests/sql/summary.sql.output b/tests/sql/summary.sql.output index bcb9fbd..c6cb2f7 100644 --- a/tests/sql/summary.sql.output +++ b/tests/sql/summary.sql.output @@ -5,8 +5,8 @@ You are now connected to database "signalk" as user "username". Expanded display is on. --[ RECORD 1 ]------------------------------------------------------------------------------------------------------------------------------ -version | PostgreSQL 15.4 (Debian 15.4-1.pgdg110+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit +-[ RECORD 1 ]--+------------------------------- +server_version | 15.4 (Debian 15.4-1.pgdg110+1) -[ RECORD 1 ]--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- postgis_full_version | POSTGIS="3.4.0 0874ea3" [EXTENSION] PGSQL="150" GEOS="3.9.0-CAPI-1.16.2" PROJ="7.2.1 NETWORK_ENABLED=OFF URL_ENDPOINT=https://cdn.proj.org USER_WRITABLE_DIRECTORY=/var/lib/postgresql/.local/share/proj DATABASE_PATH=/usr/share/proj/proj.db" LIBXML="2.9.10" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)"