From 75f611a9e3fafd15c3c847cbcfdf38b2e66a1a87 Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Thu, 15 Oct 2026 13:40:23 -0300 Subject: [PATCH] Remove test/gmt_remote/dataserver_alias.sh Co-Authored-By: Claude Sonnet 5.5 --- test/gmt_remote/dataserver_alias.sh | 34 ----------------------------- 1 file changed, 34 deletions(-) delete mode 100755 test/gmt_remote/dataserver_alias.sh diff --git a/test/gmt_remote/dataserver_alias.sh b/test/gmt_remote/dataserver_alias.sh deleted file mode 100755 index 66383094d58..00000000000 --- a/test/gmt_remote/dataserver_alias.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash -# Regression test for GMT_DATA_SERVER alias redirect resolution. -# -# Background: Alias server names (e.g., remotedata, china, australia) expand to -# Hover DNS URL-forwards that redirect to the real mirror but strip the file path. -# Before the fix, GMT constructed download URLs using the alias base (e.g., -# http://china.generic-mapping-tools.org/server/earth/earth_relief/file.grd), -# which Hover would redirect to the mirror root — discarding the file path and -# returning an HTML directory listing instead of the requested file. -# -# The fix (gmtremote_resolve_redirect in gmt_remote.c) follows redirects once -# at session start to discover the real mirror base URL, then constructs all -# file paths against that resolved URL. -# -# With GMT_DATA_SERVER=static (CI default) this test uses a locally cached -# grid and verifies the grdinfo output is sane. With a live alias server it -# also exercises the redirect resolver; a broken resolver would return an HTML -# body that GMT cannot parse as a netCDF grid, causing the test to fail. - -# Remove any cached copy to force a real download from the server -rm -f "${HOME}/.gmt/server/earth/earth_relief/earth_relief_01d_p.grd" - -# Use the short alias form to exercise alias expansion and the redirect resolver. -# GMT expands "remotedata" to "remotedata.generic-mapping-tools.org", follows the -# Hover redirect to discover the real mirror URL, then builds file paths against it. -export GMT_DATA_SERVER=remotedata - -# Download (or use cached) global 1 arc-degree relief grid and get its range -gmt grdinfo @earth_relief_01d_p.grd -I- > got.txt 2>err.txt - -# A valid global grid must report exactly this region -echo "-R-180/180/-90/90" > expected.txt - -diff expected.txt got.txt > fail