[Git][debian-gis-team/python-cartopy][master] Improve autopkgtest scripts
Antonio Valentino
gitlab at salsa.debian.org
Sun Feb 24 09:25:41 GMT 2019
Antonio Valentino pushed to branch master at Debian GIS Project / python-cartopy
Commits:
7a4c8c30 by Antonio Valentino at 2019-02-24T09:18:49Z
Improve autopkgtest scripts
- - - - -
4 changed files:
- debian/changelog
- debian/tests/control
- + debian/tests/python2
- + debian/tests/python3
Changes:
=====================================
debian/changelog
=====================================
@@ -4,6 +4,7 @@ python-cartopy (0.17.0+dfsg-4) UNRELEASED; urgency=medium
* Link examples into the doc directory.
* debian/patches:
- refresh and renumber all patches.
+ * Improve autopkgtest scripts.
[ Bas Couwenberg ]
* Sort & align links.
=====================================
debian/tests/control
=====================================
@@ -1,9 +1,7 @@
-Test-Command: cd $AUTOPKGTEST_TMP ;
- python -m pytest --pyargs cartopy.tests.crs cartopy.tests.test_crs cartopy.tests.test_geodesic
+Test-Command: python2
Depends: python-cartopy, python-pytest, python-mock
Restrictions: allow-stderr
-Test-Command: cd $AUTOPKGTEST_TMP ;
- python3 -m pytest --pyargs cartopy.tests.crs cartopy.tests.test_crs cartopy.tests.test_geodesic
+Test-Command: python3
Depends: python3-cartopy, python3-pytest
Restrictions: allow-stderr
=====================================
debian/tests/python2
=====================================
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+
+cd $AUTOPKGTEST_TMP
+
+for py in $PYS; do
+ echo "=== $py ==="
+ $py -m pytest --pyargs cartopy.tests.crs cartopy.tests.test_crs cartopy.tests.test_geodesic
+done
=====================================
debian/tests/python3
=====================================
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+
+
+for py in $PYS; do
+ echo "=== $py ==="
+ $py -m pytest --pyargs cartopy.tests.crs cartopy.tests.test_crs cartopy.tests.test_geodesic
+done
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/commit/7a4c8c30f19fadba2fe782d15abbd00acf5e8cf6
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/commit/7a4c8c30f19fadba2fe782d15abbd00acf5e8cf6
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/20190224/995ec9d1/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list