[med-svn] r17718 - in trunk/packages/mustang/trunk/debian: . testdata tests

Andreas Tille tille at moszumanska.debian.org
Wed Aug 13 13:38:43 UTC 2014


Author: tille
Date: 2014-08-13 13:38:43 +0000 (Wed, 13 Aug 2014)
New Revision: 17718

Added:
   trunk/packages/mustang/trunk/debian/README.test
   trunk/packages/mustang/trunk/debian/docs
   trunk/packages/mustang/trunk/debian/testdata/test_zf-CCHH-small
   trunk/packages/mustang/trunk/debian/tests/
   trunk/packages/mustang/trunk/debian/tests/control
   trunk/packages/mustang/trunk/debian/tests/run-unit-test
Removed:
   trunk/packages/mustang/trunk/debian/runtest
   trunk/packages/mustang/trunk/debian/test_zf-CCHH-small
Modified:
   trunk/packages/mustang/trunk/debian/changelog
   trunk/packages/mustang/trunk/debian/control
   trunk/packages/mustang/trunk/debian/mustang.examples
Log:
Add autopkgtest


Added: trunk/packages/mustang/trunk/debian/README.test
===================================================================
--- trunk/packages/mustang/trunk/debian/README.test	                        (rev 0)
+++ trunk/packages/mustang/trunk/debian/README.test	2014-08-13 13:38:43 UTC (rev 17718)
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.

Modified: trunk/packages/mustang/trunk/debian/changelog
===================================================================
--- trunk/packages/mustang/trunk/debian/changelog	2014-08-13 12:42:18 UTC (rev 17717)
+++ trunk/packages/mustang/trunk/debian/changelog	2014-08-13 13:38:43 UTC (rev 17718)
@@ -1,5 +1,6 @@
-mustang (3.2.1-4) UNRELEASED; urgency=medium
+mustang (3.2.2-1) UNRELEASED; urgency=medium
 
+  * New upstream version
   * Fixed watch file
   * moved debian/upstream to debian/upstream/metadata
   * cme fix dpkg-control
@@ -7,7 +8,7 @@
   * Add some test data manually since we can not download anything
     at build time (autopkgtest time)
 
- -- Andreas Tille <tille at debian.org>  Sun, 29 Jun 2014 15:20:23 +0200
+ -- Andreas Tille <tille at debian.org>  Wed, 13 Aug 2014 14:43:43 +0200
 
 mustang (3.2.1-3) unstable; urgency=low
 

Modified: trunk/packages/mustang/trunk/debian/control
===================================================================
--- trunk/packages/mustang/trunk/debian/control	2014-08-13 12:42:18 UTC (rev 17717)
+++ trunk/packages/mustang/trunk/debian/control	2014-08-13 13:38:43 UTC (rev 17718)
@@ -3,6 +3,7 @@
 Uploaders: Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
+Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9)
 Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/mustang/trunk/

Added: trunk/packages/mustang/trunk/debian/docs
===================================================================
--- trunk/packages/mustang/trunk/debian/docs	                        (rev 0)
+++ trunk/packages/mustang/trunk/debian/docs	2014-08-13 13:38:43 UTC (rev 17718)
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test

Modified: trunk/packages/mustang/trunk/debian/mustang.examples
===================================================================
--- trunk/packages/mustang/trunk/debian/mustang.examples	2014-08-13 12:42:18 UTC (rev 17717)
+++ trunk/packages/mustang/trunk/debian/mustang.examples	2014-08-13 13:38:43 UTC (rev 17718)
@@ -1,2 +1 @@
-debian/runtest
-debian/test_zf-CCHH-small
+debian/testdata/*

Deleted: trunk/packages/mustang/trunk/debian/runtest
===================================================================
--- trunk/packages/mustang/trunk/debian/runtest	2014-08-13 12:42:18 UTC (rev 17717)
+++ trunk/packages/mustang/trunk/debian/runtest	2014-08-13 13:38:43 UTC (rev 17718)
@@ -1,29 +0,0 @@
-#!/bin/sh
-# pdbget script for mustang that fetches
-# db entries to run test file.
-#
-set -e
-
-SERVER=www.pdb.org
-entries="1sp1 1sp2 3znf"
-
-pdb_fetch () {
-  for n in $* ; do
-      wget -nv http://${SERVER}/pdb/files/$n.pdb.gz
-  done
-}
-
-# The process will run in this directory:
-pkg=mustang
-if [ "$ADTTMP" = "" ] ; then
-  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
-fi
-savedir=$PWD
-cd $ADTTMP
-#  pdb_fetch $entries
-for f in $entries; do gzip -dc $f.pdb.gz > $f.pdb ; done
-
-mustang -f /usr/share/doc/mustang/examples/test_zf-CCHH-small
-cd $savedir
-
-echo Results are in $ADTTMP/results.html and $ADTTMP/results.pdb

Deleted: trunk/packages/mustang/trunk/debian/test_zf-CCHH-small
===================================================================
--- trunk/packages/mustang/trunk/debian/test_zf-CCHH-small	2014-08-13 12:42:18 UTC (rev 17717)
+++ trunk/packages/mustang/trunk/debian/test_zf-CCHH-small	2014-08-13 13:38:43 UTC (rev 17718)
@@ -1,22 +0,0 @@
-###############################################################################################
-## This is a valid desciption file.                                                          ##
-##                                                                                           ##
-## Line starting with '>' symbol is treated as PATH to the directory containing structures   ##
-## to be aligned.                                                                            ##
-##                                                                                           ##
-## Lines starting with '+' symbol are treated as file names. If PATH is specified (as in     ##
-## this case), then only the filenames should be provided. However, if PATH line is NOT      ##
-## provided, then the absolute/relative paths of the structure files should be provided.     ##
-##                                                                                           ##
-## All the lines NOT starting with '>' and '+' are simply ignored.                           ##
-##                                                                                           ##
-## Do NOT use comments in the same lines containg PATH and FILENAMES.                        ##
-##                                                                                           ##
-## Whitespaces are intentionally inserted before and/or after '>' and --in some cases-- '+'  ##
-## symbols to show that the whitespaces are ignored                                          ##
-###############################################################################################
-
- >  /tmp/mustang
-
-+1sp1.pdb
-+1sp2.pdb

Added: trunk/packages/mustang/trunk/debian/testdata/test_zf-CCHH-small
===================================================================
--- trunk/packages/mustang/trunk/debian/testdata/test_zf-CCHH-small	                        (rev 0)
+++ trunk/packages/mustang/trunk/debian/testdata/test_zf-CCHH-small	2014-08-13 13:38:43 UTC (rev 17718)
@@ -0,0 +1,22 @@
+###############################################################################################
+## This is a valid desciption file.                                                          ##
+##                                                                                           ##
+## Line starting with '>' symbol is treated as PATH to the directory containing structures   ##
+## to be aligned.                                                                            ##
+##                                                                                           ##
+## Lines starting with '+' symbol are treated as file names. If PATH is specified (as in     ##
+## this case), then only the filenames should be provided. However, if PATH line is NOT      ##
+## provided, then the absolute/relative paths of the structure files should be provided.     ##
+##                                                                                           ##
+## All the lines NOT starting with '>' and '+' are simply ignored.                           ##
+##                                                                                           ##
+## Do NOT use comments in the same lines containg PATH and FILENAMES.                        ##
+##                                                                                           ##
+## Whitespaces are intentionally inserted before and/or after '>' and --in some cases-- '+'  ##
+## symbols to show that the whitespaces are ignored                                          ##
+###############################################################################################
+
+ >  /tmp/mustang
+
++1sp1.pdb
++1sp2.pdb

Added: trunk/packages/mustang/trunk/debian/tests/control
===================================================================
--- trunk/packages/mustang/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/mustang/trunk/debian/tests/control	2014-08-13 13:38:43 UTC (rev 17718)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr

Added: trunk/packages/mustang/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/mustang/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/mustang/trunk/debian/tests/run-unit-test	2014-08-13 13:38:43 UTC (rev 17718)
@@ -0,0 +1,30 @@
+#!/bin/sh -e
+#  That way the test data were fetched
+#SERVER=www.pdb.org
+#entries="1sp1 1sp2 3znf"
+#
+#pdb_fetch () {
+#  for n in $* ; do
+#      wget -nv http://${SERVER}/pdb/files/$n.pdb.gz
+#  done
+#}
+
+# The process will run in this directory:
+pkg=mustang
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+
+cp -a /usr/share/doc/${pkg}/examples/* .
+find . -name "*.gz" -exec gunzip \{\} \;
+
+# Stupidly the downloaded data files need to be copied to /tmp/mustang
+mkdir -p /tmp/mustang
+mv [13]*.pdb /tmp/mustang
+
+mustang -f ./test_zf-CCHH-small
+
+echo Results are in $ADTTMP/results.html and $ADTTMP/results.pdb
+
+# rm -f $ADTTMP/*




More information about the debian-med-commit mailing list