[med-svn] [Git][med-team/gff2aplot][master] 4 commits: Recommends: graphicsmagick | imagemagick (+Test-Depends: graphicsmagick | imagemagick)

Andreas Tille gitlab at salsa.debian.org
Mon Dec 10 11:08:12 GMT 2018


Andreas Tille pushed to branch master at Debian Med / gff2aplot


Commits:
656c5e4f by Andreas Tille at 2018-12-10T10:18:40Z
Recommends: graphicsmagick | imagemagick (+Test-Depends: graphicsmagick | imagemagick)

- - - - -
792ae563 by Andreas Tille at 2018-12-10T10:47:40Z
Also recommend ghostscript

- - - - -
6b623545 by Andreas Tille at 2018-12-10T10:55:40Z
Adapt pathes in README shell scripts and make it less noisy

- - - - -
dcd11ad0 by Andreas Tille at 2018-12-10T11:07:43Z
Make output of autopkgtest better readable by suppressing noise

- - - - -


5 changed files:

- debian/changelog
- debian/control
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -5,7 +5,8 @@ gff2aplot (2.0-11) UNRELEASED; urgency=medium
     Closes: #890789
   * Fix issue with Perl 5.28
   * Fix definition of CP in upstream makefile
-  * Make sure sprint buffers have proper size
+  * Try hard to make sprint buffers have proper size
+  * Recommends: graphicsmagick | imagemagick, ghostscript (+ Test-Depends)
 
  -- Andreas Tille <tille at debian.org>  Mon, 10 Dec 2018 07:36:57 +0100
 


=====================================
debian/control
=====================================
@@ -15,6 +15,8 @@ Architecture: any
 Depends: ${shlibs:Depends},
          ${perl:Depends},
          ${misc:Depends}
+Recommends: graphicsmagick | imagemagick,
+            ghostscript
 Suggests: postscript-viewer,
           gff2ps
 Description: pair-wise alignment-plots for genomic sequences in PostScript


=====================================
debian/rules
=====================================
@@ -16,4 +16,8 @@ override_dh_auto_install:
 
 override_dh_installexamples:
 	dh_installexamples
-	find debian/*/usr/share/doc/*/examples -name README -exec sed -i 's?^$$BIN/gff2aplot.pl?gff2aplot?' \{\} \;
+	# Fix path names, silence GS
+	find debian/*/usr/share/doc/*/examples -name README -exec sed -i \
+	                                                                 -e 's?^$$BIN/\([0-9a-z]\+\)\.pl?\1?' \
+	                                                                 -e 's?^$$BIN/\([0-9a-z]\+\) ?\1 ?'   \
+	                                                                 -e 's?^GS=.*;?GS="gs -q" ;?' \{\} \;


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: @
+Depends: @, graphicsmagick | imagemagick, ghostscript
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,5 +1,6 @@
 #!/bin/bash
 set -e
+export LC_ALL=C.UTF-8
 
 pkg=gff2aplot
 
@@ -11,10 +12,28 @@ fi
 cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
 
 cd $AUTOPKGTEST_TMP
+rm -rf imgs
 gunzip -r *
 
+ERR=0
 for script in `find . -name README` ; do
    cd $(dirname $script)
-   sh README
+   # Suppress verbose output for testing
+   sed -i -e '/^[[:space:]]\+--verbose[[:space:]]\+\\$/d' -e 's/--verbose//' -e 's/MG *-verbose/MG -quiet/' README
+   sh README | grep -v -e '^KCRB.GT.hs-mm.log' -e '^#'
+   if grep -q -v -e '^#' -e '^|' *.log ; then
+     ERR=1
+     echo "Some errors were found in logfiles"
+     grep -H -v -e '^#' -e '^|' *.log
+   fi
+   for ps in `find . -name "*.ps" -size 0` ; do
+     ERR=1
+     echo "PostScript file $ps has zero bytes."
+   done
    cd ..
 done
+
+if [ $ERR -eq 1 ] ; then
+  echo "Errors in log files occured"
+  exit 1
+fi



View it on GitLab: https://salsa.debian.org/med-team/gff2aplot/compare/4e7aefe1271969e6b27353bf32d3827c7483f589...dcd11ad0d7b565f2527f102be186f39126770cb3

-- 
View it on GitLab: https://salsa.debian.org/med-team/gff2aplot/compare/4e7aefe1271969e6b27353bf32d3827c7483f589...dcd11ad0d7b565f2527f102be186f39126770cb3
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/debian-med-commit/attachments/20181210/9dc287df/attachment-0001.html>


More information about the debian-med-commit mailing list