...
 
Commits (4)
......@@ -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@debian.org> Mon, 10 Dec 2018 07:36:57 +0100
......
......@@ -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
......
......@@ -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" ;?' \{\} \;
Tests: run-unit-test
Depends: @
Depends: @, graphicsmagick | imagemagick, ghostscript
Restrictions: allow-stderr
#!/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