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

Mohd Bilal (@rmb) gitlab at salsa.debian.org
Wed Aug 31 12:37:57 BST 2022



Mohd  Bilal pushed to branch master at Debian Med / libncl


Commits:
0343e63f by Mohammed Bilal at 2022-08-31T16:56:51+05:30
Add autopkgtests

- - - - -
5de57baa by Mohammed Bilal at 2022-08-31T11:37:34+00:00
Update changelog

- - - - -


3 changed files:

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


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+libncl (2.1.21+git20210811.b1213a7-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add autopkgtests
+
+ -- Mohammed Bilal <mdbilal at disroot.org>  Wed, 31 Aug 2022 11:37:09 +0000
+
 libncl (2.1.21+git20210811.b1213a7-2) unstable; urgency=medium
 
   * Adapt symbols to gcc-12


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,28 @@
+#!/bin/bash
+set -e
+
+pkg=libncl
+CUR_DIR=`pwd`
+
+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 ${CUR_DIR}/data/characters.nex "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+echo "11a796433cf5a199d87fffc98aae2c82  out.xml" >> checksums
+echo "92eaabee974bfb67ff6c2fb92a491949  norm.out" >> checksums
+
+echo "Running tests"
+
+NCLconverter characters.nex
+
+NEXUSnormalizer characters.nex > norm.out
+
+NEXUSvalidator characters.nex
+
+md5sum --check checksums
+echo -e "PASS"



View it on GitLab: https://salsa.debian.org/med-team/libncl/-/compare/a61ae624db96ab463c009ea3fe984ab6a90eaa89...5de57baa0c08aae068effc19103576385e0d7bad

-- 
View it on GitLab: https://salsa.debian.org/med-team/libncl/-/compare/a61ae624db96ab463c009ea3fe984ab6a90eaa89...5de57baa0c08aae068effc19103576385e0d7bad
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/20220831/9fdf4d04/attachment-0001.htm>


More information about the debian-med-commit mailing list