Shruti Sridhar pushed to branch master at Debian Med / salmid
Commits: 09292a69 by Shruti Sridhar at 2021-06-30T20:21:10+05:30 Add autopkgtests - - - - - f809a84a by Shruti Sridhar at 2021-06-30T20:21:43+05:30 Add test data and copyright - - - - - 03154f1c by Shruti Sridhar at 2021-06-30T20:24:26+05:30 Update changelog - - - - - 8 changed files: - + debian/README.test - debian/changelog - debian/copyright - + debian/docs - + debian/examples - + debian/tests/control - + debian/tests/data/SRX11266476.fastq - + debian/tests/run-unit-test Changes: ===================================== debian/README.test ===================================== @@ -0,0 +1,16 @@ +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. + +Notes on the files used for testing +──────────────────────────────────────── +Files: debian/tests/data/* +Source: https://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?exp=SRX11266476&cmd=search&m=downloads&s=seq + +First 1000 lines of the FASTQ file was taken for the run-unit-test data. + ===================================== debian/changelog ===================================== @@ -1,3 +1,11 @@ +salmid (0.1.23-3) UNRELEASED; urgency=medium + + * Team Upload. + * Add autopkgtests + * Add test data and copyright + + -- Shruti Sridhar <[email protected]> Wed, 30 Jun 2021 20:23:43 +0530 + salmid (0.1.23-2) unstable; urgency=medium * Standards-Version: 4.5.1 (routine-update) ===================================== debian/copyright ===================================== @@ -28,3 +28,7 @@ License: MIT LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: debian/tests/data/* +Copyright: NCBI +License: public-domain \ No newline at end of file ===================================== debian/docs ===================================== @@ -0,0 +1,2 @@ +README.md +debian/README* ===================================== debian/examples ===================================== @@ -0,0 +1 @@ +debian/tests/data/* \ No newline at end of file ===================================== debian/tests/control ===================================== @@ -0,0 +1,3 @@ +Tests: run-unit-test +Depends: @ +Restrictions: allow-stderr ===================================== debian/tests/data/SRX11266476.fastq ===================================== The diff for this file was not included because it is too large. ===================================== debian/tests/run-unit-test ===================================== @@ -0,0 +1,17 @@ +#!/bin/bash +set -e + +pkg=salmid + +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}" + +SalmID -i SRX11266476.fastq > output +[ -s "output" ] && echo "PASS Test" View it on GitLab: https://salsa.debian.org/med-team/salmid/-/compare/47f1197802497447f967e2d31559d28b2fc890b6...03154f1c3a4b8372e12903298a714160275438b1 -- View it on GitLab: https://salsa.debian.org/med-team/salmid/-/compare/47f1197802497447f967e2d31559d28b2fc890b6...03154f1c3a4b8372e12903298a714160275438b1 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
