[med-svn] [Git][med-team/paraclu][master] 4 commits: Add Autopkgtests

Shruti Sridhar (@shruti_sridhar) gitlab at salsa.debian.org
Mon Jul 12 14:38:06 BST 2021



Shruti Sridhar pushed to branch master at Debian Med / paraclu


Commits:
15eb7796 by Shruti Sridhar at 2021-07-12T18:57:21+05:30
Add Autopkgtests

- - - - -
8917ed9c by Shruti Sridhar at 2021-07-12T18:58:14+05:30
Add test data and examples

- - - - -
1be0c882 by Shruti Sridhar at 2021-07-12T18:58:25+05:30
Install docs

- - - - -
67be9a87 by Shruti Sridhar at 2021-07-12T19:07:37+05:30
Update changelog

- - - - -


7 changed files:

- + debian/README.test
- debian/changelog
- + debian/docs
- + debian/examples
- + debian/tests/control
- + debian/tests/data/input.fa
- + debian/tests/run-unit-test


Changes:

=====================================
debian/README.test
=====================================
@@ -0,0 +1,17 @@
+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.
+
+Notes on the files used for testing 
+────────────────────────────────────────
+Files: debian/tests/data/*
+
+The test data file was created for testing this package where the first column is the chromosome, 
+the second is the strandedness, the third is the starting position,
+and the fourth is the number of reads at this starting position with the same strandedness. 
+


=====================================
debian/changelog
=====================================
@@ -1,5 +1,6 @@
 paraclu (10-1) UNRELEASED; urgency=medium
 
+  [ Nilesh Patra ]
   * Team Upload.
   * Fix fetch URL - paraclu has moved to gitlab
   * New upstream version 10
@@ -10,7 +11,13 @@ paraclu (10-1) UNRELEASED; urgency=medium
   * d/p/do-not-override-cxxflags.patch: Do not override CXXFLAGS
   * Declare compliance with policy 4.5.1
 
- -- Nilesh Patra <nilesh at debian.org>  Sat, 05 Jun 2021 01:40:35 +0530
+  [ Shruti Sridhar ]
+  * Team Upload. 
+  * Add Autopkgtests
+  * Add test data and examples
+  * Install docs
+
+ -- Shruti Sridhar <shruti.sridhar99 at gmail.com>  Mon, 12 Jul 2021 19:06:53 +0530
 
 paraclu (9-3) unstable; urgency=medium
 


=====================================
debian/docs
=====================================
@@ -0,0 +1,3 @@
+README.txt
+debian/README*
+debian/tests/run-unit-test
\ No newline at end of file


=====================================
debian/examples
=====================================
@@ -0,0 +1 @@
+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/input.fa
=====================================
@@ -0,0 +1,17 @@
+chr1    +       10000   1
+chr1    -       10010   10
+chr1    +       10020   100
+chr1    +       10030   100
+chr1    -       10040   1000
+chr1    +       10050   100000
+chr1    +       10060   100
+chr1    -       10070   1000
+chr1    +       10080   1
+
+
+
+
+
+
+
+


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,25 @@
+#!/bin/bash
+set -e
+
+pkg=paraclu
+
+export LC_ALL=C.UTF-8
+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}"
+
+paraclu 10 input.fa > output
+if [ $(dpkg-architecture -qDEB_BUILD_ARCH) = "amd64" ]
+then
+	echo "a12f21cef993174184c7061b95046808  output" >> checksums
+    md5sum --check checksums
+	echo "Expected output and generated output are same: PASS Test 1"
+else
+	[ -s "output" ] || exit 1
+	echo "PASS Test"
+fi



View it on GitLab: https://salsa.debian.org/med-team/paraclu/-/compare/9dfef4b428ee4d3688b286f2acfb776635a75812...67be9a872eab0693821b149f2afd1d105068b1a8

-- 
View it on GitLab: https://salsa.debian.org/med-team/paraclu/-/compare/9dfef4b428ee4d3688b286f2acfb776635a75812...67be9a872eab0693821b149f2afd1d105068b1a8
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/20210712/8fb5db0b/attachment-0001.htm>


More information about the debian-med-commit mailing list