[pkg-perl-tools] 02/03: examples/check-build: add option to run reprotest.

gregor herrmann gregoa at debian.org
Fri Aug 18 15:48:46 UTC 2017


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

gregoa pushed a commit to branch master
in repository pkg-perl-tools.

commit de91ec0b83e23b34d7492209f568557c23b0bc89
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Aug 18 17:47:43 2017 +0200

    examples/check-build: add option to run reprotest.
---
 examples/check-build | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/examples/check-build b/examples/check-build
index 3049d1e..cdc59f7 100755
--- a/examples/check-build
+++ b/examples/check-build
@@ -83,6 +83,22 @@ if [ "$PIU" = "y" ]; then
 fi
 echo
 
+read -n 1 -p "reprotest? y/N " REPRO
+if [ "$REPRO" = "y" ]; then
+	REPROTESTLOG="${CHANGES%.changes}_autopkgtest.log"
+	if [ -x /usr/bin/schroot ] && schroot -l | grep -q default; then
+		REPROTEST_VIRT_SERVER=schroot
+		REPROTEST_VIRT_SERVER_ARGS=default
+	fi
+	if [ -n "$REPROTEST_VIRT_SERVER" ]; then
+		reprotest --dont-vary build_path auto . -- $REPROTEST_VIRT_SERVER $REPROTEST_VIRT_SERVER_ARGS 2>&1 | \
+			tee $REPROTESTLOG
+	else
+		echo "W: Could not find reprotest virtualization server."
+	fi
+fi
+echo
+
 if grep -q 'Testsuite: autopkgtest' debian/control; then
 	read -n 1 -p "autopkgtest? y/N " AUTOPKGTEST
 	if [ "$AUTOPKGTEST" = "y" ]; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list