[med-svn] [Git][med-team/flexbar][master] Add first tests

Saira Hussain gitlab at salsa.debian.org
Fri Aug 2 11:33:28 BST 2019



Saira Hussain pushed to branch master at Debian Med / flexbar


Commits:
b9230b6f by Saira Hussain at 2019-08-02T10:32:18Z
Add first tests

- - - - -


4 changed files:

- + debian/test
- debian/tests/control
- − debian/tests/run-unit-test
- + debian/tests/run-unit-tests


Changes:

=====================================
debian/test
=====================================
@@ -0,0 +1 @@
+test/*
\ No newline at end of file


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


=====================================
debian/tests/run-unit-test deleted
=====================================
@@ -1,12 +0,0 @@
-#!/bin/sh -e
-
-pkg="flexbar"
-
-if [ "$AUTOPKGTEST_TMP" = "" ]; then
-    AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
-    trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
-fi
-cd $AUTOPKGTEST_TMP
-cp /usr/share/doc/${pkg}/examples/* .
-
-./flexbar_test.sh


=====================================
debian/tests/run-unit-tests
=====================================
@@ -0,0 +1,25 @@
+#!/bin/bash
+set -e
+
+pkg=flexbar
+
+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
+
+# Perform the test suite
+
+# Perform the fasta test suite
+



View it on GitLab: https://salsa.debian.org/med-team/flexbar/commit/b9230b6fb321b07aab5353a3e7e622956a6f4566

-- 
View it on GitLab: https://salsa.debian.org/med-team/flexbar/commit/b9230b6fb321b07aab5353a3e7e622956a6f4566
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/20190802/0843cd9e/attachment-0001.html>


More information about the debian-med-commit mailing list