[med-svn] [Git][med-team/cdbfasta][master] Add first uni tests sceleton

Saira Hussain gitlab at salsa.debian.org
Wed Jul 31 14:57:37 BST 2019



Saira Hussain pushed to branch master at Debian Med / cdbfasta


Commits:
e809186d by Saira Hussain at 2019-07-31T13:57:20Z
Add first uni tests sceleton

- - - - -


1 changed file:

- + debian/tests/run-unit-tests


Changes:

=====================================
debian/tests/run-unit-tests
=====================================
@@ -0,0 +1,35 @@
+#!/bin/bash
+set -e
+
+pkg=cdbfasta
+
+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 /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+gunzip -r *
+
+# Just for debugging
+set -x
+
+# Create the index file for a multi-FASTA
+cdbfasta 
+
+# Pull records based on the index file
+cdbyank
+
+# Retrieve records from the database file
+cdbyank -a ''
+
+# Retrieve specific sequence ranges
+cdbyank -a '' <right_coo> <left_coo>
+
+# Test the compression
+



View it on GitLab: https://salsa.debian.org/med-team/cdbfasta/commit/e809186d8be09994ea9e61cad45d1bed2c59d91f

-- 
View it on GitLab: https://salsa.debian.org/med-team/cdbfasta/commit/e809186d8be09994ea9e61cad45d1bed2c59d91f
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/20190731/449e3824/attachment-0001.html>


More information about the debian-med-commit mailing list