[med-svn] [Git][med-team/dssp][master] update autopkgtest to use libcifpp-dev example file

Maarten L. Hekkelman gitlab at salsa.debian.org
Fri Nov 27 08:45:45 GMT 2020



Maarten L. Hekkelman pushed to branch master at Debian Med / dssp


Commits:
81d4273b by Maarten L. Hekkelman at 2020-11-27T09:44:50+01:00
update autopkgtest to use libcifpp-dev example file

- - - - -


6 changed files:

- debian/README.test
- debian/copyright
- debian/docs
- − debian/tests/1cbs.cif
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/README.test
=====================================
@@ -3,11 +3,11 @@ Notes on how this package can be tested.
 
 This package can be tested by executing
 
-    sh installation-test
+    sh run-unit-test
 
 in order to confirm its integrity.
 
-Test in `installation-test` checks the following:
+Test in `run-unit-test` checks the following:
 
 1. runs mkdssp on a typical PDB file in mmCIF format
 creating a default output in mmCIF format.


=====================================
debian/copyright
=====================================
@@ -13,26 +13,6 @@ Copyright: © 2012, Maarten L. Hekkelman <m.hekkelman at cmbi.ru.nl>,
   © 2020 NKI/AVL, Netherlands Cancer Institute
 License: BSD-2-Clause
 
-Files: debian/tests/1cbs.cif
-Copyright: © 2016, Kleywegt, G.J, Bergfors, T, Jones, T.A
-License: PDB
-Comment: full protein structure in PDB format from RCSB PDB database
- PDB ID: 1cbs, available at: http://www.rcsb.org
-
-License: PDB
- PDB File License - as described in RCSB PDB site - June 17, 2016
- .
- Data files contained in the PDB archive (ftp://ftp.wwpdb.org) are free of all
- copyright restrictions and made fully and freely available for both
- non-commercial and commercial use. Users of the data should attribute the
- original authors of that structural data. By using the materials available in
- the PDB archive, the user agrees to abide by the conditions described in the
- PDB Advisory Notice (http://www.rcsb.org/pdb/static.do?p=general_information/about_pdb/pdb_advisory.html).
- .
- License's text is available on RCSB PDB database site (http://www.rcsb.org), on page named
- "RCSB PDB Policies & References".
- URL: http://www.rcsb.org/pdb/static.do?p=general_information/about_pdb/policies_references.html
-
 License: BSD-2-Clause
  Copyright (c) 2020 NKI/AVL, Netherlands Cancer Institute
  .


=====================================
debian/docs
=====================================
@@ -1,3 +1,3 @@
 README.md
 debian/README.test
-debian/tests/installation-test
+debian/tests/run-unit-test


=====================================
debian/tests/1cbs.cif deleted
=====================================
The diff for this file was not included because it is too large.

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


=====================================
debian/tests/run-unit-test
=====================================
@@ -3,19 +3,18 @@ set -e
 set -x
 
 pkg="dssp"
+testfile="/usr/share/doc/libcifpp-dev/examples/1cbs.cif.gz"
 
 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 debian/tests/1cbs.cif $AUTOPKGTEST_TMP
-
 cd $AUTOPKGTEST_TMP
 
 # simply run mkdssp on 1cbs, should produce an output file
-mkdssp 1cbs.cif 1cbs-dssp.cif
+mkdssp ${testfile} 1cbs-dssp.cif
 [ -s 1cbs-dssp.cif ]
 
-mkdssp 1cbs.cif 1cbs-dssp.dssp
+mkdssp ${testfile} 1cbs-dssp.dssp
 [ -s 1cbs-dssp.dssp ]



View it on GitLab: https://salsa.debian.org/med-team/dssp/-/commit/81d4273b3c7c3bb9f39c3653fef95fccc1056833

-- 
View it on GitLab: https://salsa.debian.org/med-team/dssp/-/commit/81d4273b3c7c3bb9f39c3653fef95fccc1056833
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/20201127/cfdd08c8/attachment-0001.html>


More information about the debian-med-commit mailing list