[med-svn] [Git][med-team/cct][master] Add autopkgtest to find out the broken parts

Andreas Tille gitlab at salsa.debian.org
Thu Aug 30 14:19:18 BST 2018


Andreas Tille pushed to branch master at Debian Med / cct


Commits:
e66803a6 by Andreas Tille at 2018-08-30T13:19:06Z
Add autopkgtest to find out the broken parts

- - - - -


9 changed files:

- + debian/README.test
- + debian/cct-examples.install
- + debian/cct.docs
- debian/install → debian/cct.install
- debian/manpages → debian/cct.manpages
- debian/control
- debian/createmanpages
- + debian/tests/control
- + debian/tests/run-unit-test


Changes:

=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by installing the package cct-examples and running the provided test:
+
+    sh run-unit-test
+
+in order to confirm its integrity.


=====================================
debian/cct-examples.install
=====================================
@@ -0,0 +1,3 @@
+test.sh				usr/share/doc/cct/examples
+sample_projects			usr/share/doc/cct/examples
+debian/tests/run-unit-test	usr/share/doc/cct


=====================================
debian/cct.docs
=====================================
@@ -0,0 +1 @@
+debian/README.test


=====================================
debian/install → debian/cct.install
=====================================


=====================================
debian/manpages → debian/cct.manpages
=====================================


=====================================
debian/control
=====================================
@@ -4,7 +4,7 @@ Uploaders: Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 11~)
-Standards-Version: 4.2.0
+Standards-Version: 4.2.1
 Vcs-Browser: https://salsa.debian.org/med-team/cct
 Vcs-Git: https://salsa.debian.org/med-team/cct.git
 Homepage: http://stothard.afns.ualberta.ca/downloads/CCT/
@@ -32,3 +32,30 @@ Description: visually comparing bacterial, plasmid, chloroplast, or mitochondria
  setup, a CCT virtual machine that includes all dependencies preinstalled
  is available. Detailed tutorials illustrating the use of CCT are
  included with the CCT documentation.
+
+Package: cct-examples
+Architecture: any
+Depends: ${perl:Depends},
+         ${misc:Depends},
+         bioperl,
+         cgview
+Description: example data for testing the package cct
+ The CGView Comparison Tool (CCT) is a package for visually comparing
+ bacterial, plasmid, chloroplast, or mitochondrial sequences of interest
+ to existing genomes or sequence collections. The comparisons are
+ conducted using BLAST, and the BLAST results are presented in the form
+ of graphical maps that can also show sequence features, gene and protein
+ names, COG category assignments, and sequence composition
+ characteristics. CCT can generate maps in a variety of sizes, including
+ 400 Megapixel maps suitable for posters. Comparisons can be conducted
+ within a particular species or genus, or all available genomes can be
+ used. The entire map creation process, from downloading sequences to
+ redrawing zoomed maps, can be completed easily using scripts included
+ with the CCT. User-defined features or analysis results can be included
+ on maps, and maps can be extensively customized. To simplify program
+ setup, a CCT virtual machine that includes all dependencies preinstalled
+ is available. Detailed tutorials illustrating the use of CCT are
+ included with the CCT documentation.
+ .
+ This package provides the data which can be used as example.  These are
+ the same data as used in autopkgtest.


=====================================
debian/createmanpages
=====================================
@@ -74,7 +74,7 @@ echo $AUTHOR >> $MANDIR/${progname}.1
 
 sed -i -e 's/perl \([^ ]\+\)\.pl/\1/' -e 's/\.pl / /' -e 's/\.sh / /' $MANDIR/*
 
-echo "$MANDIR/*.1" > debian/manpages
+echo "$MANDIR/*.1" > debian/cct.manpages
 
 cat <<EOT
 Please enhance the help2man output.


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,17 @@
+#!/bin/bash
+set -e
+
+pkg=cct
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP
+
+gunzip -r *
+
+CCT_HOME=/usr/share/cct ./test.sh



View it on GitLab: https://salsa.debian.org/med-team/cct/commit/e66803a67b8f7d6cbd822c36f295e8c56e2d1612

-- 
View it on GitLab: https://salsa.debian.org/med-team/cct/commit/e66803a67b8f7d6cbd822c36f295e8c56e2d1612
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/20180830/fc00bc79/attachment-0001.html>


More information about the debian-med-commit mailing list