[pyshp] 05/06: Override dh_auto_test to run custom test command.

Bas Couwenberg sebastic at debian.org
Sat Sep 24 20:55:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository pyshp.

commit 46eafe04d1da2cd67a450df660a06915665abf8b
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Sep 24 22:21:17 2016 +0200

    Override dh_auto_test to run custom test command.
---
 debian/changelog | 1 +
 debian/rules     | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 88d2a42..5660df5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ pyshp (1.2.10-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release.
   * Drop missing-files.patch, fixed upstream.
+  * Override dh_auto_test to run custom test command.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 24 Sep 2016 22:01:51 +0200
 
diff --git a/debian/rules b/debian/rules
index 7ce83f0..fdcf588 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,10 @@ export PYBUILD_NAME=pyshp
 		--with python3 \
 		--parallel
 
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_BEFORE_TEST="cp -r {dir}/README.md {dir}/shapefiles {build_dir}" \
+	PYBUILD_TEST_ARGS="cd {build_dir} && {interpreter} shapefile.py" \
+	PYBUILD_AFTER_TEST="rm -rf {build_dir}/README.md {build_dir}/shapefiles {build_dir}/*.pyc {build_dir}/*.dbf {build_dir}/*.sbn {build_dir}/*.sbx {build_dir}/*.shp {build_dir}/*.shx" \
+	dh_auto_test
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pyshp.git



More information about the Pkg-grass-devel mailing list