[med-svn] [Git][med-team/glam2][add/autopkgtest] Add autopkgtests folder and tests

Saira Hussain gitlab at salsa.debian.org
Sat Mar 16 21:09:24 GMT 2019


Saira Hussain pushed to branch add/autopkgtest at Debian Med / glam2


Commits:
36d94d77 by Saira Hussain at 2019-03-16T21:09:18Z
Add autopkgtests folder and tests

- - - - -


3 changed files:

- + debian/tests/check-no-args
- + debian/tests/control
- + debian/tests/find-motifs


Changes:

=====================================
debian/tests/check-no-args
=====================================
@@ -0,0 +1,19 @@
+#/bin/sh -e
+
+TMP="$(mktemp)"
+
+# run glam2 with no arguments
+STDOUT="$(glam2 2> ${TMP})"
+
+# check for exit status of 1
+[ "$?" -eq 1 ]
+
+# save help text
+HELP_TEXT="$(glam2 -h)"
+
+# now diff them
+grep -q "{HELP_TEXT}" "${TMP}"
+echo "SUCCESS: Help text is there!"
+
+# clean-up
+rm ${TMP}
\ No newline at end of file


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: check-no-args
+
+Tests: find-motifs


=====================================
debian/tests/find-motifs
=====================================
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+
+pkg="glam2"
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+   AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* ${AUTOPKGTEST_TMP}
+
+cd ${AUTOPKGTEST_TMP}
+
+glam2 p lipocalin.s
+glam2 -r 1 -n 1000 crp0.s
+
+echo "PASS"
+
+



View it on GitLab: https://salsa.debian.org/med-team/glam2/commit/36d94d770dbf01678e4a1a905d1982b328083e17

-- 
View it on GitLab: https://salsa.debian.org/med-team/glam2/commit/36d94d770dbf01678e4a1a905d1982b328083e17
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/20190316/4a50a1ae/attachment-0001.html>


More information about the debian-med-commit mailing list