[Git][debian-gis-team/osmosis][master] Make autopkgtest script more verbose.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Apr 17 20:07:48 BST 2025
Bas Couwenberg pushed to branch master at Debian GIS Project / osmosis
Commits:
be8592d2 by Bas Couwenberg at 2025-04-17T21:07:40+02:00
Make autopkgtest script more verbose.
- - - - -
2 changed files:
- debian/changelog
- debian/tests/pbf2osm
Changes:
=====================================
debian/changelog
=====================================
@@ -1,6 +1,7 @@
osmosis (0.49.2-3) UNRELEASED; urgency=medium
* Bump Standards-Version to 4.7.2, no changes.
+ * Make autopkgtest script more verbose.
-- Bas Couwenberg <sebastic at debian.org> Sun, 28 Jul 2024 19:48:58 +0200
=====================================
debian/tests/pbf2osm
=====================================
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
PBF_URL="https://download.geofabrik.de/europe/monaco-latest.osm.pbf"
PBF_FILE="monaco-latest.osm.pbf"
@@ -10,8 +10,8 @@ TEMPDIR="$(mktemp -d)"
cd "${TEMPDIR}" || exit 1
-echo "Downloading PBF file"
-wget -q "${PBF_URL}" -O "${PBF_FILE}"
+echo -e "\nDownloading PBF file: ${PBF_URL}"
+wget "${PBF_URL}" -O "${PBF_FILE}"
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -21,9 +21,10 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-echo
-echo "Converting PBF to XML"
-osmosis --read-pbf file="${PBF_FILE}" --write-xml file="${XML_FILE}"
+CMD=("osmosis" "--read-pbf" "file=${PBF_FILE}" "--write-xml" "file=${XML_FILE}")
+
+echo -e "\nConverting PBF to XML: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -33,9 +34,10 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-echo
-echo "Generating PBF report"
-osmosis --read-pbf file="${PBF_FILE}" --report-entity file="${PBF_REPORT}"
+CMD=("osmosis" "--read-pbf" "file=${PBF_FILE}" "--report-entity" "file=${PBF_REPORT}")
+
+echo -e "\nGenerating PBF report: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -45,9 +47,10 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-echo
-echo "Generating XML report"
-osmosis --read-xml file="${XML_FILE}" --report-entity file="${XML_REPORT}"
+CMD=("osmosis" "--read-xml" "file=${XML_FILE}" "--report-entity" "file=${XML_REPORT}")
+
+echo -e "\nGenerating XML report: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -57,9 +60,10 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-echo
-echo "Comparing PBF and XML reports"
-diff -u "${PBF_REPORT}" "${XML_REPORT}"
+CMD=("diff" "-u" "${PBF_REPORT}" "${XML_REPORT}")
+
+echo -e "\nComparing PBF and XML reports: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmosis/-/commit/be8592d29c81c46a94f6c485c2febb182128d1c8
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmosis/-/commit/be8592d29c81c46a94f6c485c2febb182128d1c8
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20250417/0778ec56/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list