[med-svn] [Git][med-team/ncbi-seg][master] 5 commits: Add autopkgtests
Pranav Ballaney
gitlab at salsa.debian.org
Wed Jul 22 00:39:18 BST 2020
Pranav Ballaney pushed to branch master at Debian Med / ncbi-seg
Commits:
d11f8439 by Pranav Ballaney at 2020-07-22T05:01:32+05:30
Add autopkgtests
- - - - -
70040424 by Pranav Ballaney at 2020-07-22T05:02:24+05:30
Install docs
- - - - -
94d54325 by Pranav Ballaney at 2020-07-22T05:03:26+05:30
Add Pranav Ballaney to Uploaders
- - - - -
85985a58 by Pranav Ballaney at 2020-07-22T05:07:16+05:30
Checksums should not go with examples
- - - - -
4f971a57 by Pranav Ballaney at 2020-07-22T05:08:24+05:30
Update changelog
- - - - -
7 changed files:
- + debian/README.test
- debian/changelog
- debian/control
- + debian/docs
- debian/ncbi-seg.examples
- + 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 running the provided test:
+
+ sh run-unit-test
+
+in order to confirm its integrity.
=====================================
debian/changelog
=====================================
@@ -1,3 +1,16 @@
+ncbi-seg (0.0.20000620-6) UNRELEASED; urgency=medium
+
+ [ Steffen Moeller ]
+ * d/u/metadata: yamllint
+
+ [ Pranav Ballaney ]
+ * Add autopkgtests
+ * Install docs
+ * Add Pranav Ballaney to Uploaders
+ * Checksums should not go with examples
+
+ -- Pranav Ballaney <ballaneypranav at gmail.com> Wed, 22 Jul 2020 05:07:40 +0530
+
ncbi-seg (0.0.20000620-5) unstable; urgency=medium
* debhelper 11
=====================================
debian/control
=====================================
@@ -1,7 +1,8 @@
Source: ncbi-seg
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Laszlo Kajan <lkajan at debian.org>,
- Andreas Tille <tille at debian.org>
+ Andreas Tille <tille at debian.org>,
+ Pranav Ballaney <ballaneypranav at gmail.com>
Section: science
Priority: optional
Build-Depends: debhelper (>= 11~)
=====================================
debian/docs
=====================================
@@ -0,0 +1,4 @@
+README
+seg.doc
+debian/tests/run-unit-test
+debian/README*
\ No newline at end of file
=====================================
debian/ncbi-seg.examples
=====================================
@@ -1 +1 @@
-prion.fa
+prion.fa
\ No newline at end of file
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,35 @@
+#!/bin/bash
+set -e
+
+pkg=ncbi-seg
+
+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 *
+
+# Run tests
+ncbi-seg prion.fa > test1.out
+ncbi-seg prion.fa 45 3.4 3.75 > test2.out
+ncbi-seg prion.fa -x > test3.out
+
+# Output precomputed checksums to file
+echo 40c4e4cdf4709b8ba57614d6997494f0 test1.out >> checksums
+echo ec12511a16410778052761f4af9ae06b test2.out >> checksums
+echo 5d984bb25ff54f7a04c519fb878d68c1 test3.out >> checksums
+
+# Check
+md5sum --check checksums
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
View it on GitLab: https://salsa.debian.org/med-team/ncbi-seg/-/compare/103ada7691f5fbccaf3961cf8764973a512077fd...4f971a57a746ad29a3f919f4305bcf511e19c30b
--
View it on GitLab: https://salsa.debian.org/med-team/ncbi-seg/-/compare/103ada7691f5fbccaf3961cf8764973a512077fd...4f971a57a746ad29a3f919f4305bcf511e19c30b
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/20200721/7b3955a9/attachment-0001.html>
More information about the debian-med-commit
mailing list