[libfile-sharedir-par-perl] 01/01: Add debian/tests/pkg-perl/smoke-setup

Alex Muntada alexm at alexm.org
Fri May 19 16:18:18 UTC 2017


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

alexm-guest pushed a commit to branch master
in repository libfile-sharedir-par-perl.

commit 8b283ce002f3faa79ce88dbb38fd6b5a45260faa
Author: Alex Muntada <alexm at alexm.org>
Date:   Fri May 19 17:50:23 2017 +0200

    Add debian/tests/pkg-perl/smoke-setup
    
    smoke-files was trying to copy blib from the binary package,
    which does not actually exist there. Now smoke-setup is
    copying the system File/ShareDir/PAR.pm to blib.
    
    Gbp-Dch: Ignore
---
 debian/changelog                  | 2 +-
 debian/tests/pkg-perl/smoke-files | 3 ---
 debian/tests/pkg-perl/smoke-setup | 5 +++++
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9350436..d3f2530 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -36,7 +36,7 @@ libfile-sharedir-par-perl (0.06-2) UNRELEASED; urgency=low
   * debian/control: Update Standards-Version to 3.9.8, Build-Depends
     on debhelper to (>= 9).
   * debian/patches/fix-pod-spelling.patch: Forward upstream.
-  * Add debian/tests/pkg-perl/smoke-files
+  * Add debian/tests/pkg-perl/smoke-setup
 
  -- Alex Muntada <alexm at alexm.org>  Mon, 01 May 2017 18:22:01 +0200
 
diff --git a/debian/tests/pkg-perl/smoke-files b/debian/tests/pkg-perl/smoke-files
deleted file mode 100644
index 9e27749..0000000
--- a/debian/tests/pkg-perl/smoke-files
+++ /dev/null
@@ -1,3 +0,0 @@
-t/
-# The PAR test file is built from blib contents.
-blib/
diff --git a/debian/tests/pkg-perl/smoke-setup b/debian/tests/pkg-perl/smoke-setup
new file mode 100755
index 0000000..b225938
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-setup
@@ -0,0 +1,5 @@
+#!/bin/sh
+# t/03_with_par.t and t/23_global_with_par.t will try to build a
+# PAR file with blib/lib/File/ShareDir/PAR.pm
+mkdir -p "${TDIR}/blib/lib/File/ShareDir"
+cp /usr/share/perl5/File/ShareDir/PAR.pm "${TDIR}/blib/lib/File/ShareDir/PAR.pm"

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



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