[med-svn] [Git][med-team/daligner][master] 2 commits: added autopkgtests

Shruti Sridhar gitlab at salsa.debian.org
Wed Aug 12 15:52:14 BST 2020



Shruti Sridhar pushed to branch master at Debian Med / daligner


Commits:
a189ea94 by Shruti Sridhar at 2020-08-12T20:18:06+05:30
added autopkgtests

- - - - -
64bebc73 by Shruti Sridhar at 2020-08-12T20:19:07+05:30
Install docs

- - - - -


4 changed files:

- + debian/README.test
- debian/docs
- + 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/docs
=====================================
@@ -1 +1,2 @@
 README.md
+debian/README.*
\ No newline at end of file


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,33 @@
+#!/bin/bash
+set -e
+
+pkg=daligner
+
+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}"
+
+#do_stuff_to_test_package#
+rangen 1.0 -r2020 >R.fasta           
+fasta2DAM R R.fasta           
+dsimulator R -c20. -r2020 >G.fasta   
+fasta2DB G G.fasta            
+rm G.fasta                    
+DBsplit -s11 G                
+DBdust G.1                    
+DBdust G.2                
+DBstats -mdust G              
+cat G.db
+ 
+HPC.daligner -mdust -t5 G | tcsh -v
+LAshow -c G -w50 G.1 | head
+
+# Since the output is not consistent.
+#It cannot be compared with the reference. 
+



View it on GitLab: https://salsa.debian.org/med-team/daligner/-/compare/d21f1ee257a2ce3982a84e44c3c8a9f63b33b921...64bebc730ba7cd8ade0bc27331b6485cf9ae34ab

-- 
View it on GitLab: https://salsa.debian.org/med-team/daligner/-/compare/d21f1ee257a2ce3982a84e44c3c8a9f63b33b921...64bebc730ba7cd8ade0bc27331b6485cf9ae34ab
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/20200812/012f6200/attachment-0001.html>


More information about the debian-med-commit mailing list