Your message dated Mon, 26 Dec 2022 18:54:04 +0000
with message-id <[email protected]>
and subject line Bug#871622: fixed in hello 2.10-3
has caused the Debian Bug report #871622,
regarding hello: please include a trivial autopkgtest for this trivial package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
871622: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871622
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hello
Version: 2.10-1+deb9u1
Severity: wishlist
Tags: patch

In the spirit of having the hello package be a good example for new
maintainers, it would be nice for it to have (very simple) automated
as-installed test coverage that is picked up by infrastructure like
ci.debian.net. Lintian is now encouraging maintainers to add
autopkgtest metadata and it would be useful to be able to point to
hello as an easy example to copy from, in the same way it provides an
easy example for using dh.

I attach a patch, which is about as small as it can be while still
demonstrating both the Tests and Test-Command styles of declaring tests.

You can test this test (if you see what I mean) from a hello source
tree with, for example,

    autopkgtest -B . -- null

(requires autopkgtest and hello), or with

    sadt --verbose

(requires devscripts and python3-debian).

Regards,
    S
    accidentally writing autopkgtests at DebConf 17
>From f46e957b741cf7cce314eddfdcaa53b6190a3543 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Wed, 9 Aug 2017 21:45:14 -0400
Subject: [PATCH] Add a very basic autopkgtest

---
 debian/tests/control               | 5 +++++
 debian/tests/it-prints-the-message | 7 +++++++
 2 files changed, 12 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100755 debian/tests/it-prints-the-message

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..5138fc3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Test-Command: hello
+Depends: hello
+
+Tests: it-prints-the-message
+Depends: @
diff --git a/debian/tests/it-prints-the-message b/debian/tests/it-prints-the-message
new file mode 100755
index 0000000..e9b47ea
--- /dev/null
+++ b/debian/tests/it-prints-the-message
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+message=`LC_ALL=C hello`
+echo "This should be a friendly greeting: '$message'"
+test "$message" = "Hello, world!"
-- 
2.13.3


--- End Message ---
--- Begin Message ---
Source: hello
Source-Version: 2.10-3
Done: Santiago Vila <[email protected]>

We believe that the bug you reported is fixed in the latest version of
hello, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <[email protected]> (supplier of updated hello package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 26 Dec 2022 16:30:00 +0100
Source: hello
Architecture: source
Version: 2.10-3
Distribution: unstable
Urgency: medium
Maintainer: Santiago Vila <[email protected]>
Changed-By: Santiago Vila <[email protected]>
Closes: 871622 893083
Changes:
 hello (2.10-3) unstable; urgency=medium
 .
   * Add some autopkgtests. Closes: #871622.
   * Add Vcs-Git and Vcs-Browser fields to debian/control. Closes: #893083.
   * Raise debhelper compat level from 9 to 13. This enables autoreconf,
     and as a result, some additional build-dependencies are required:
   - Add texinfo to Build-Depends, for a normal build.
   - Add help2man to Build-Depends, for a build using git.
   * Use secure URI in Homepage field.
   * Set upstream metadata fields Bug-Submit, Name and Repository-Browse.
   * Add upstream signing-key.
   * Use a common debian/watch file which is valid for most GNU packages.
   * Sort control fields using wrap-and-sort.
   * Update standards version to 4.6.2.
Checksums-Sha1:
 bdde02bde362a17135d10f15469119716f786fe9 1721 hello_2.10-3.dsc
 f7bebf6f9c62a2295e889f66e05ce9bfaed9ace3 725946 hello_2.10.orig.tar.gz
 9dc7a584db576910856ac7aa5cffbaeefe9cf427 819 hello_2.10.orig.tar.gz.asc
 a2d122fd090dbab3d40b219a237fbb7d74f8023a 12684 hello_2.10-3.debian.tar.xz
 4243da18fd977c9103f732e502289e42c13164a0 5619 hello_2.10-3_source.buildinfo
Checksums-Sha256:
 75296f5ef618ae2f1849e22b142a2b5ab52c452ebefa4e7b0564c44617db3790 1721 
hello_2.10-3.dsc
 31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b 725946 
hello_2.10.orig.tar.gz
 4ea69de913428a4034d30dcdcb34ab84f5c4a76acf9040f3091f0d3fac411b60 819 
hello_2.10.orig.tar.gz.asc
 60ee7a466808301fbaa7fea2490b5e7a6d86f598956fb3e79c71b3295dc1f249 12684 
hello_2.10-3.debian.tar.xz
 9e3036d0ca17d45ccd40e6eee50ebcb4fcf66c3531beb96cafe0e64efb505073 5619 
hello_2.10-3_source.buildinfo
Files:
 af0c4d1ec4eb1af8e20843cee44bbcde 1721 devel optional hello_2.10-3.dsc
 6cd0ffea3884a4e79330338dcc2987d6 725946 devel optional hello_2.10.orig.tar.gz
 e6074bb23a0f184e00fdfb5c546b3bc2 819 devel optional hello_2.10.orig.tar.gz.asc
 27ab798c1d8d9048ffc8127e9b8dbfca 12684 devel optional 
hello_2.10-3.debian.tar.xz
 7f838ac27984b12e2bcf93630d1c43b2 5619 devel optional 
hello_2.10-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmOp5tAACgkQQc5/C58b
izJ2nAgAnS7zdEgHRMZaMfHxNsFtfLcNUqsRXvGE8gY7IxRaW2wVAeEJjF4qimVv
4bpKAcEfrsTgKe3AWv5WGV5PP0dJWt9UOvN153557HMROSbNSPwrLxyvqF/tfbyW
XYgIx0g9uDc3AvSYVus8IMB81uwWnK7ufPnzsdkOjcXVcARSjtfapvABwZVzp8VC
X1bMRtjxgs1XsFuLlHciUUjiMVJcMynkizhY8s4IOPdESS1FSixKX63FJx4Bx9tg
6etjdY/bdVrFmaBdze5ayHx/rjPcpn3uqUVaq3J1FMiVTx4RVUje7+s02PesWf0l
QnvfJ67uNQ6LUU4/Dt/eyWuuE8vNug==
=RhJP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to