[med-svn] [Git][med-team/cgview][master] 4 commits: Add autopkgtests

Pranav Ballaney gitlab at salsa.debian.org
Sat May 9 17:17:04 BST 2020



Pranav Ballaney pushed to branch master at Debian Med / cgview


Commits:
41030c64 by Pranav Ballaney at 2020-05-09T10:41:43+05:30
Add autopkgtests

- - - - -
dd806b7c by Pranav Ballaney at 2020-05-09T10:43:12+05:30
Install docs

- - - - -
9c7f4c72 by Pranav Ballaney at 2020-05-09T10:43:53+05:30
Update changelog

- - - - -
5d454d2f by Pranav Ballaney at 2020-05-09T21:46:02+05:30
Add more autopkgtests

- - - - -


9 changed files:

- + debian/README.test
- debian/changelog
- debian/docs
- debian/examples
- + debian/tests/control
- + debian/tests/data/README.test_data
- + debian/tests/data/R_denitrificans.xml
- + debian/tests/data/R_denitrificans_b.xml
- + 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 running the provided test:
+
+    sh run-unit-test
+
+in order to confirm its integrity.


=====================================
debian/changelog
=====================================
@@ -1,8 +1,19 @@
 cgview (0.0.20100111-5) UNRELEASED; urgency=medium
 
+  [ Jelmer Vernooij ]
   * Use secure copyright file specification URI.
 
- -- Jelmer Vernooij <jelmer at debian.org>  Sat, 20 Oct 2018 13:37:58 +0000
+  [ Steffen Möller ]
+  * Added ref to conda
+  * Ooops? Adjusted ref to conda.
+
+  [ Steffen Moeller ]
+  * d/u/metadata: yamllint
+
+  [ Pranav Ballaney ]
+  * Add autopkgtests
+
+ -- Pranav Ballaney <ballaneypranav at gmail.com>  Sat, 09 May 2020 10:43:18 +0530
 
 cgview (0.0.20100111-4) unstable; urgency=medium
 


=====================================
debian/docs
=====================================
@@ -1 +1,4 @@
 README
+debian/README.test
+debian/tests/run-unit-test
+debian/tests/data/README.test_data
\ No newline at end of file


=====================================
debian/examples
=====================================
@@ -2,3 +2,4 @@ api_examples
 cybercell.xml
 example_3_features.tab
 NC_001849.ptt
+debian/tests/data/*
\ No newline at end of file


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


=====================================
debian/tests/data/README.test_data
=====================================
@@ -0,0 +1,2 @@
+The input files used for testing were generated using cgview_xml_builder.pl 
+provided along with this package, as described in the corresponding README.
\ No newline at end of file


=====================================
debian/tests/data/R_denitrificans.xml
=====================================
The diff for this file was not included because it is too large.

=====================================
debian/tests/data/R_denitrificans_b.xml
=====================================
The diff for this file was not included because it is too large.

=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,25 @@
+#!/bin/bash
+set -e
+
+pkg=cgview
+
+export LC_ALL=C.UTF-8
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+  # Double quote below to expand the temporary directory variable now versus
+  # later is on purpose.
+  # shellcheck disable=SC2064
+  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 *
+
+cgview -i cybercell.xml -o cybercell.png -f png
+
+cgview -i R_denitrificans.xml -o R_denitrificans.png -f png
+
+cgview -i R_denitrificans_b.xml -o R_denitrificans_b.png -f png 
\ No newline at end of file



View it on GitLab: https://salsa.debian.org/med-team/cgview/-/compare/e3e1d985ecb5993b240ae50ba8c42b29972304ce...5d454d2fdc4318e6e6af5f478edc8b1895a1c868

-- 
View it on GitLab: https://salsa.debian.org/med-team/cgview/-/compare/e3e1d985ecb5993b240ae50ba8c42b29972304ce...5d454d2fdc4318e6e6af5f478edc8b1895a1c868
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/20200509/3c2aeac0/attachment-0001.html>


More information about the debian-med-commit mailing list