[Git][debian-gis-team/osmpbf][master] Make autopkgtest script more verbose.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Apr 17 20:32:37 BST 2025
Bas Couwenberg pushed to branch master at Debian GIS Project / osmpbf
Commits:
71ddc8ef by Bas Couwenberg at 2025-04-17T21:32:28+02:00
Make autopkgtest script more verbose.
- - - - -
3 changed files:
- debian/changelog
- debian/tests/java
- debian/tests/osmpbf-outline
Changes:
=====================================
debian/changelog
=====================================
@@ -1,6 +1,7 @@
osmpbf (1.5.1-2) 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:49:07 +0200
=====================================
debian/tests/java
=====================================
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
TESTS_DIR="$(realpath "$(dirname "$0")")"
@@ -13,7 +13,10 @@ TEMPDIR="$(mktemp -d)"
cd "${TEMPDIR}" || exit 1
-wget -q "${DATASET_URL}" -O "${DATASET_FILE}"
+CMD=("wget" "-q" "${DATASET_URL}" "-O" "${DATASET_FILE}")
+
+echo "Downloading dataset: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -23,7 +26,12 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-cp -rv "${TESTS_DIR}"/*.java .
+echo
+
+CMD=("cp" "-rv" "${TESTS_DIR}"/*.java .)
+
+echo "Copying java sources: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -33,7 +41,12 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-javac -cp "${CLASSPATH}" ReadPBF.java
+echo
+
+CMD=("javac" "-cp" "${CLASSPATH}" "ReadPBF.java")
+
+echo "Compiling java sources: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -43,7 +56,12 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-java -cp "${CLASSPATH}" ReadPBF "${DATASET_FILE}"
+echo
+
+CMD=("java" "-cp" "${CLASSPATH}" "ReadPBF" "${DATASET_FILE}")
+
+echo "Executing: ${CMD[@]}"
+${CMD[@]}
RC=$?
cd "${OLDPWD}" || exit 1
=====================================
debian/tests/osmpbf-outline
=====================================
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
DATASET_URL="https://download.geofabrik.de/europe/monaco-latest.osm.pbf"
DATASET_FILE="monaco-latest.osm.pbf"
@@ -7,7 +7,10 @@ TEMPDIR="$(mktemp -d)"
cd "${TEMPDIR}" || exit 1
-wget -q "${DATASET_URL}" -O "${DATASET_FILE}"
+CMD=("wget" "-q" "${DATASET_URL}" "-O" "${DATASET_FILE}")
+
+echo "Downloading dataset: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -17,7 +20,10 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-osmpbf-outline --color "${DATASET_FILE}"
+CMD=("osmpbf-outline" "--color" "${DATASET_FILE}")
+
+echo -e "\nExecuting: ${CMD[@]}"
+${CMD[@]}
RC=$?
cd "${OLDPWD}" || exit 1
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmpbf/-/commit/71ddc8efd0cbe9f2e6dc8dd1d5861ed6b21e7487
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmpbf/-/commit/71ddc8efd0cbe9f2e6dc8dd1d5861ed6b21e7487
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/507413fd/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list