[med-svn] [Git][med-team/python-sinfo][master] 4 commits: Add autopkgtest
Nilesh Patra
gitlab at salsa.debian.org
Wed Feb 24 14:32:48 GMT 2021
Nilesh Patra pushed to branch master at Debian Med / python-sinfo
Commits:
2b5183d3 by Nilesh Patra at 2021-02-24T19:54:29+05:30
Add autopkgtest
- - - - -
4d01a006 by Nilesh Patra at 2021-02-24T19:57:11+05:30
sinfo seems to need a build-deps on python3-stdlib-list
- - - - -
86263f02 by Nilesh Patra at 2021-02-24T19:59:47+05:30
Declare compliance with policy 4.5.1
- - - - -
468d8fe4 by Nilesh Patra at 2021-02-24T20:01:45+05:30
Add "{python3: Depends}"
- - - - -
3 changed files:
- debian/control
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/control
=====================================
@@ -6,8 +6,9 @@ Uploaders: Robbi Nespu <robbinespu at gmail.com>
Build-Depends: debhelper-compat (= 13),
dh-python,
python3-all,
- python3-setuptools
-Standards-Version: 4.3.0
+ python3-setuptools,
+ python3-stdlib-list
+Standards-Version: 4.5.1
Vcs-Browser: https://salsa.debian.org/med-team/python-sinfo
Vcs-Git: https://salsa.debian.org/med-team/python-sinfo.git
Homepage: https://gitlab.com/joelostblom/sinfo
@@ -15,7 +16,7 @@ Rules-Requires-Root: no
Package: python3-sinfo
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
Description: Print version information for loaded modules in the current session, Python, and the OS
sinfo outputs version information for modules loaded in the current session,
Python, the OS, and the CPU. It is designed as a minimum measure to increase
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @
+Depends: @, python3-numpy, python3-natsort, python3-stdlib-list
Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -1,16 +1,30 @@
#!/bin/bash
set -e
-pkg=#PACKAGENAME#
-
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}"
+ls
+echo "BEGIN"
+python3>&1 <<HERE
+import math
+
+import natsort
+import numpy
+import re
+from sinfo import sinfo
+
+import sys
+sys.stdout = open("testresult", "w")
+sinfo(std_lib=True)
+sys.stdout.close()
+HERE
-#do_stuff_to_test_package#
+cat testresult
+numlines=3
+[ "$(cat testresult | grep 'natsort\|numpy\|re[[:space:]]' | wc -l)" = "$numlines" ] || exit 1
+echo "PASS"
View it on GitLab: https://salsa.debian.org/med-team/python-sinfo/-/compare/a93cada9347278937e4d172d7f1119fadec25e79...468d8fe4af05d6cf72ffc6365e73e51980682103
--
View it on GitLab: https://salsa.debian.org/med-team/python-sinfo/-/compare/a93cada9347278937e4d172d7f1119fadec25e79...468d8fe4af05d6cf72ffc6365e73e51980682103
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/20210224/3bc70558/attachment-0001.htm>
More information about the debian-med-commit
mailing list