Bas Couwenberg pushed to branch master at Debian GIS Project / ogdi-dfsg
Commits: 84e310f0 by Bas Couwenberg at 2024-04-28T09:08:35+02:00 Add autopkgtest to verify that ogdi_info works. - - - - - 3 changed files: - debian/changelog - + debian/tests/control - + debian/tests/ogdi-bin Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +ogdi-dfsg (4.1.1+ds-5) UNRELEASED; urgency=medium + + * Add autopkgtest to verify that ogdi_info works. + + -- Bas Couwenberg <[email protected]> Sun, 28 Apr 2024 09:08:07 +0200 + ogdi-dfsg (4.1.1+ds-4) unstable; urgency=medium * Team upload. ===================================== debian/tests/control ===================================== @@ -0,0 +1,5 @@ +Tests: ogdi-bin +Depends: ca-certificates, + ogdi-bin, + wget +Restrictions: needs-internet ===================================== debian/tests/ogdi-bin ===================================== @@ -0,0 +1,37 @@ +#!/bin/sh + +DATASET_URL="https://sourceforge.net/projects/ogdi/files/OGDI_Test_Suite/3.1/ogdits-3.1.0.tar.gz/download" +DATASET_FILE="ogdits.tar.gz" +DATASET_DIR="ogdits-3.1" + +TEMPDIR="$(mktemp -d)" + +cd "${TEMPDIR}" || exit 1 + +wget -q "${DATASET_URL}" -O "${DATASET_FILE}" +RC=$? + +if [ "${RC}" -ne 0 ]; then + cd "${OLDPWD}" || exit 1 + rm -rf "${TEMPDIR}" + + exit "${RC}" +fi + +tar xaf "${DATASET_FILE}" +RC=$? + +if [ "${RC}" -ne 0 ]; then + cd "${OLDPWD}" || exit 1 + rm -rf "${TEMPDIR}" + + exit "${RC}" +fi + +ogdi_info -u "gltp:/vrf/${TEMPDIR}/${DATASET_DIR}/data/vpf/vm2alv2/texash" +RC=$? + +cd "${OLDPWD}" || exit 1 +rm -rf "${TEMPDIR}" + +exit "${RC}" View it on GitLab: https://salsa.debian.org/debian-gis-team/ogdi-dfsg/-/commit/84e310f09a3c9f228b5a5242c5cf37be710d4d86 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/ogdi-dfsg/-/commit/84e310f09a3c9f228b5a5242c5cf37be710d4d86 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
