[med-svn] r23570 - in trunk/packages/tifffile/trunk/debian: . tests
Sascha Steinbiss
satta at moszumanska.debian.org
Sat Jan 14 08:21:24 UTC 2017
Author: satta
Date: 2017-01-14 08:21:23 +0000 (Sat, 14 Jan 2017)
New Revision: 23570
Added:
trunk/packages/tifffile/trunk/debian/tests/
trunk/packages/tifffile/trunk/debian/tests/control
trunk/packages/tifffile/trunk/debian/tests/python-import
Log:
add autopkgtests
Added: trunk/packages/tifffile/trunk/debian/tests/control
===================================================================
--- trunk/packages/tifffile/trunk/debian/tests/control (rev 0)
+++ trunk/packages/tifffile/trunk/debian/tests/control 2017-01-14 08:21:23 UTC (rev 23570)
@@ -0,0 +1,2 @@
+Tests: python-import
+Depends: @, python, imagemagick
Property changes on: trunk/packages/tifffile/trunk/debian/tests/control
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/packages/tifffile/trunk/debian/tests/python-import
===================================================================
--- trunk/packages/tifffile/trunk/debian/tests/python-import (rev 0)
+++ trunk/packages/tifffile/trunk/debian/tests/python-import 2017-01-14 08:21:23 UTC (rev 23570)
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# autopkgtest check: Try importing tiffile module
+# Author: Sascha Steinbiss <satta at debian.org>
+
+import tifffile
+import os
+import tempfile
+
+print(tifffile.__version__)
+
+tmpdir = tempfile.mkdtemp()
+filename = "%s/foo.tiff" % (tmpdir)
+os.system("convert -size 100x100 xc:white %s" % (filename))
+with tifffile.TiffFile(filename) as tif:
+ images = tif.asarray()
+ for page in tif:
+ for tag in page.tags.values():
+ t = tag.name, tag.value
+ print(t)
+os.unlink(filename)
+os.removedirs(tmpdir)
Property changes on: trunk/packages/tifffile/trunk/debian/tests/python-import
___________________________________________________________________
Added: svn:executable
+ *
More information about the debian-med-commit
mailing list