[med-svn] [Git][med-team/igor][master] 2 commits: Add autopkgtests

Nilesh Patra gitlab at salsa.debian.org
Tue Apr 14 09:52:21 BST 2020



Nilesh Patra pushed to branch master at Debian Med / igor


Commits:
cddef540 by Nilesh Patra at 2020-04-14T14:10:14+05:30
Add autopkgtests

- - - - -
c67100dd by Nilesh Patra at 2020-04-14T14:12:14+05:30
Fix permissions of fasta files

- - - - -


4 changed files:

- + debian/igor.examples
- debian/rules
- + debian/tests/control
- + debian/tests/run-unit-test


Changes:

=====================================
debian/igor.examples
=====================================
@@ -0,0 +1 @@
+demo/*


=====================================
debian/rules
=====================================
@@ -26,3 +26,9 @@ override_dh_auto_clean:
 	rm -rf docs/latex
 	rm -rf docs/html
 	rm -rf config.guess config.sub
+
+
+override_dh_fixperms:
+	dh_fixperms
+	find debian -name "*.fasta" -exec chmod -x \{\} \;
+


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,26 @@
+#!/bin/bash
+set -e
+
+pkg="igor"
+
+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
+gunzip -r *
+
+TMP_DIR=`mktemp -d /tmp/${pkg}-test-output.XXXXXX`
+ls
+
+for f in *;
+do
+	echo "=================== BEGIN TEST $f =============================="
+	igor -set_wd $TMP_DIR -batch foo -read_seqs $f
+	igor -set_wd $TMP_DIR -batch foo -species human -chain beta -align --all
+	rm -rf $TMP_DIR/*
+	echo "==========================PASSED================================"
+done



View it on GitLab: https://salsa.debian.org/med-team/igor/-/compare/edcf1ed40371aff5bb8024af868c1679f636ed1e...c67100dd5004cf7dd7420a63c65ecff1f35c76c7

-- 
View it on GitLab: https://salsa.debian.org/med-team/igor/-/compare/edcf1ed40371aff5bb8024af868c1679f636ed1e...c67100dd5004cf7dd7420a63c65ecff1f35c76c7
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/20200414/52dcb3d0/attachment-0001.html>


More information about the debian-med-commit mailing list