[med-svn] [Git][med-team/openslide][master] 6 commits: Use multi orig tarball

Mohd Bilal (@rmb) gitlab at salsa.debian.org
Mon May 23 19:12:02 BST 2022



Mohd  Bilal pushed to branch master at Debian Med / openslide


Commits:
2da93c7e by Mohammed Bilal at 2022-05-23T17:43:08+00:00
Use multi orig tarball

- - - - -
ce68a607 by Mohammed Bilal at 2022-05-23T17:44:25+00:00
New upstream version 3.4.1+dfsg
- - - - -
cbbade7d by Mohammed Bilal at 2022-05-23T17:44:28+00:00
Update upstream source from tag 'upstream/3.4.1+dfsg'

Update to upstream version '3.4.1+dfsg'
with Debian dir 886994b6f5c007867f53780b61414d1e0eca1cc2
- - - - -
1848b2fc by Mohammed Bilal at 2022-05-23T18:00:57+00:00
Add autopkgtests

- - - - -
402a1b0f by Mohammed Bilal at 2022-05-23T18:04:35+00:00
Add copyright for test data

- - - - -
ca62b8fe by Mohammed Bilal at 2022-05-23T23:40:55+05:30
Update changelog

- - - - -


8 changed files:

- + debian-tests-data/CMU-1-Small-Region.tiff
- debian/changelog
- debian/copyright
- + debian/gbp.conf
- + debian/tests/README
- + debian/tests/control
- + debian/tests/get-test-data
- + debian/tests/run-unit-test


Changes:

=====================================
debian-tests-data/CMU-1-Small-Region.tiff
=====================================
Binary files /dev/null and b/debian-tests-data/CMU-1-Small-Region.tiff differ


=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+openslide (3.4.1+dfsg-5) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Use multi orig tarball
+  * New upstream version 3.4.1+dfsg
+  * Add autopkgtests
+  * Add copyright for test data
+
+ -- Mohammed Bilal <mdbilal at disroot.org>  Mon, 23 May 2022 23:40:33 +0530
+
 openslide (3.4.1+dfsg-4) unstable; urgency=medium
 
   [ Mathieu Malaterre ]


=====================================
debian/copyright
=====================================
@@ -59,3 +59,19 @@ License: LGPL-2.1
  .
  On Debian systems the full text of the GNU Library General Public License can
  be found in the `/usr/share/common-licenses/LGPL-2.1' file.
+
+Files: debian-tests-data/*
+Copyright: 2022 Mohammed Bilal <mdbilal at disroot.org>
+License: CC0-1.0
+
+License: CC0-1.0
+ To the extent possible under law, the author(s) have dedicated all copyright
+ and related and neighboring rights to this software to the public domain
+ worldwide. This software is distributed without any warranty.
+ .
+ You should have received a copy of the CC0 Public Domain Dedication along
+ with this software. If not, see 
+ <https://creativecommons.org/publicdomain/zero/1.0/>.
+ --
+ On Debian systems, the complete text of the CC0 Public Domain Dedication
+ can be found in `/usr/share/common-licenses/CC0-1.0’.


=====================================
debian/gbp.conf
=====================================
@@ -0,0 +1,4 @@
+[DEFAULT]
+pristine-tar=True
+filter=[ '.gitignore', '.travis.yml', '.git*' ]
+component=['debian-tests-data']


=====================================
debian/tests/README
=====================================
@@ -0,0 +1,6 @@
+Tests for openslide-tools
+=================
+
+The data for tests has been referenced from:
+	https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/
+


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


=====================================
debian/tests/get-test-data
=====================================
@@ -0,0 +1,4 @@
+wget https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/CMU-1-Small-Region.svs
+tarball=$(dpkg-parsechangelog --file ../changelog | awk '/^Source:/ {print $2}')_$(dpkg-parsechangelog --file ../changelog | awk '/^Version:/ {print $2}' | cut -f1 -d-).orig-debian-tests-data.tar.gz
+tar --owner=root --group=root --mode=a+rX -cvzSf $tarball  CMU-1-Small-Region.svs
+echo "Now move $tarball next to the new upstream tarball and gbp import it as usual"


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,32 @@
+set -e
+
+pkg=openslide-tools
+
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+mkdir -p ${AUTOPKGTEST_TMP}/data
+cp debian-tests-data/* -a "${AUTOPKGTEST_TMP}/"
+
+cd "${AUTOPKGTEST_TMP}"
+
+echo "80617723e7f5f25e6b07762279c27e17  properties" >> checksums
+echo "76dfe28f4cad05a9b9d2c4f1404bc143  output-openslide.png" >> checksums
+
+echo -e "\e[93m\e[1mRunning Tests\e[0m"
+
+echo "Test 1"
+openslide-show-properties CMU-1-Small-Region.tiff > properties
+
+echo "Test 2"
+openslide-write-png CMU-1-Small-Region.tiff 256 256 0 100 100 output-openslide.png
+
+echo "Test 3"
+openslide-quickhash1sum CMU-1-Small-Region.tiff
+
+md5sum --check checksums
+echo -e "\e[92m\e[1mPASS\e[0m"
+
+



View it on GitLab: https://salsa.debian.org/med-team/openslide/-/compare/bffc7c13eaa0506aa54dd3ef5afada92b48f217f...ca62b8fef90a4dbf4bb54043a9fca73e87f32436

-- 
View it on GitLab: https://salsa.debian.org/med-team/openslide/-/compare/bffc7c13eaa0506aa54dd3ef5afada92b48f217f...ca62b8fef90a4dbf4bb54043a9fca73e87f32436
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/20220523/1e6b6f8d/attachment-0001.htm>


More information about the debian-med-commit mailing list