commit: 06c1fc890edaefc35e43fca7d8b5b0eebe08a192
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 20 01:10:58 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 20 01:10:58 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c1fc89
sci-libs/libgeotiff: small src_test tweaks
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild
b/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild
index 73a2d0594283..27e1af474c68 100644
--- a/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild
+++ b/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild
@@ -51,16 +51,18 @@ src_compile() {
fi
}
-# check if needed: https://github.com/OSGeo/libgeotiff/issues/126
src_test() {
- # Source: https://github.com/OSGeo/libgeotiff?tab=readme-ov-file#testing
+ # https://github.com/OSGeo/libgeotiff?tab=readme-ov-file#testing
+ # Check if still needed: https://github.com/OSGeo/libgeotiff/issues/126
pushd "${BUILD_DIR}"/bin || die
+
# prepare file
./makegeo || die "makegeo failed"
[[ -f "newgeo.tif" ]] || die "makegeo did not produce a file"
+
# test
./listgeo newgeo.tif > metadata.txt || die "listgeo metadata extraction
failed"
./geotifcp -g metadata.txt newgeo.tif newer.tif > /dev/null || die
cmp new{geo,er}.tif || die "geotifcp produces different files"
- popd
+ popd || die
}