Package: gzip
Version: 1.5-1.1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch

Dear Maintainer,

it'd be great to enable autopkgtest tests for gzip as it's an essential part 
of any system. I took the liberty to write an (admittedly) very simple
autopkgtest and add it to the package.

Especially as these are enabled by default now in Ubuntu
(https://jenkins.qa.ubuntu.com/view/Raring/view/AutoPkgTest/) and work
going on in Debian to enable them
(http://lists.alioth.debian.org/pipermail/autopkgtest-devel/2012-November/000264.html)
it'd be nice to have gzip be part of this.

http://dep.debian.net/deps/dep8/ gives more background on the
infrastructure.

*** /tmp/tmpz6qiac/bug_body

The following change was not uploaded to Ubuntu yet, as it will make
more sense to have it in Debian too and not be a delta.

  * debian/tests, debian/control: enable autopkgtest tests, add simple
    test to check if gzip/gunzip works. 


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal-proposed'), (500, 'quantal'), (100, 'quantal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5.0-19-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru gzip-1.5/debian/changelog gzip-1.5/debian/changelog
diff -Nru gzip-1.5/debian/control gzip-1.5/debian/control
--- gzip-1.5/debian/control	2012-06-20 05:27:50.000000000 +0200
+++ gzip-1.5/debian/control	2012-11-19 11:37:56.000000000 +0100
@@ -6,6 +6,7 @@
 Build-Depends: debhelper (>= 5), texinfo, autoconf, automake, autotools-dev, less
 Build-Depends-Indep: mingw-w64
 Standards-Version: 3.9.3
+XS-Testsuite: autopkgtest
 Vcs-Git: git://git.gag.com/debian/gzip
 Vcs-Browser: http://git.gag.com/?p=debian/gzip
 
diff -Nru gzip-1.5/debian/tests/control gzip-1.5/debian/tests/control
--- gzip-1.5/debian/tests/control	1970-01-01 01:00:00.000000000 +0100
+++ gzip-1.5/debian/tests/control	2012-11-19 11:37:41.000000000 +0100
@@ -0,0 +1,2 @@
+Tests: simple-gzip
+Depends: gzip
diff -Nru gzip-1.5/debian/tests/simple-gzip gzip-1.5/debian/tests/simple-gzip
--- gzip-1.5/debian/tests/simple-gzip	1970-01-01 01:00:00.000000000 +0100
+++ gzip-1.5/debian/tests/simple-gzip	2012-11-19 11:37:41.000000000 +0100
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+echo "Bla" > bla.file
+cp bla.file bla.file.orig
+gzip bla.file
+gunzip bla.file.gz
+cmp bla.file bla.file.orig
+rm bla.file bla.file.orig

Reply via email to