[med-svn] [Git][med-team/python-ciso8601][master] 2 commits: Adding a simple package test

Malihe Asemani gitlab at salsa.debian.org
Tue Apr 21 20:09:29 BST 2020



Malihe Asemani pushed to branch master at Debian Med / python-ciso8601


Commits:
46c530c0 by Malihe Asemani at 2020-04-21T23:33:11+04:30
Adding a simple package test

- - - - -
15720c60 by Malihe Asemani at 2020-04-21T23:39:02+04:30
Removing d/README.test

- - - - -


3 changed files:

- − debian/README.test
- debian/tests/control
- − debian/tests/run-unit-test


Changes:

=====================================
debian/README.test deleted
=====================================
@@ -1,8 +0,0 @@
-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.


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
-Tests: run-unit-test
-Depends: @
+Test-Command: python -c "import ciso8601 ; x=ciso8601.parse_datetime('2020-04-21T21:16:45.123456-04:30'); print x, type(x).__name__; y=ciso8601.parse_datetime('20200421T211645'); print y, type(y).__name__"
+Depends: python3-ciso8601
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test deleted
=====================================
@@ -1,19 +0,0 @@
-#!/bin/bash
-set -e
-
-pkg=#PACKAGENAME#
-
-export LC_ALL=C.UTF-8
-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 -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
-
-cd "${AUTOPKGTEST_TMP}"
-
-#do_stuff_to_test_package#



View it on GitLab: https://salsa.debian.org/med-team/python-ciso8601/-/compare/82861f13a85f9f59d93938796ac4c49a6a52e1d7...15720c6021db16eac19317f19816052dd1225834

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-ciso8601/-/compare/82861f13a85f9f59d93938796ac4c49a6a52e1d7...15720c6021db16eac19317f19816052dd1225834
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/20200421/1e71da3c/attachment-0001.html>


More information about the debian-med-commit mailing list