Your message dated Fri, 17 Jun 2016 01:48:31 +0000
with message-id <[email protected]>
and subject line Bug#826650: fixed in clitest 0.2.0-2
has caused the Debian Bug report #826650,
regarding src:clitest: [PATCH] add a simple test suite
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.)


-- 
826650: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826650
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:clitest
Severity: wishlist
Tags: patch

Hi,

I just came across clitest and I found it to be an amazing tool to write
tests with, but it is a shame that clitest itself is not being tested.
:-)

The attached patch does that by reusing the examples that come with
clitest itself, except the ones that hits the network. I can commit
directly to collab-maint if you prefer.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Antonio Terceiro <[email protected]>
From 79c6d0157a374503990d12f32d70b0c4d617209a Mon Sep 17 00:00:00 2001
From: Antonio Terceiro <[email protected]>
Date: Tue, 7 Jun 2016 10:29:23 -0300
Subject: [PATCH] Add a simple test suite

It will run both during package build and on CI/autopkgtest
---
 debian/rules             |  3 +++
 debian/tests/control     |  1 +
 debian/tests/smoke-tests | 15 +++++++++++++++
 3 files changed, 19 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100755 debian/tests/smoke-tests

diff --git a/debian/rules b/debian/rules
index ed58acc..cad729e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,3 +3,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	PATH=$(CURDIR):$(PATH) debian/tests/smoke-tests
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..894bbbb
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: smoke-tests
diff --git a/debian/tests/smoke-tests b/debian/tests/smoke-tests
new file mode 100755
index 0000000..cb79c77
--- /dev/null
+++ b/debian/tests/smoke-tests
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+# these should pass
+clitest examples/cut.txt
+clitest --prefix tab examples/cut.md
+clitest examples/hello-world.txt
+clitest examples/intro.txt
+
+# this should fail
+rc=0
+clitest examples/will-fail.txt || rc=$?
+test $rc -ne 0
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: clitest
Source-Version: 0.2.0-2

We believe that the bug you reported is fixed in the latest version of
clitest, 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.
Giovani Augusto Ferreira <[email protected]> (supplier of updated clitest 
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: SHA1

Format: 1.8
Date: Wed, 15 Jun 2016 18:17:46 -0300
Source: clitest
Binary: clitest
Architecture: source all
Version: 0.2.0-2
Distribution: unstable
Urgency: medium
Maintainer: Giovani Augusto Ferreira <[email protected]>
Changed-By: Giovani Augusto Ferreira <[email protected]>
Description:
 clitest    - performs automatic testing in command lines
Closes: 826650
Changes:
 clitest (0.2.0-2) unstable; urgency=medium
 .
   * Added a simple test suite. Thanks to Antonio Terceiro
       for patch. (Closes: #826650)
   * debian/control:
       - Bumped Standards-Version to 3.9.8.
   * debian/copyright:
       - Renamed MIT to Expat license.
       - Updated packaging copyright years.
Checksums-Sha1:
 81c32e72ce2573d44491001d799fbd9f0e0da646 1853 clitest_0.2.0-2.dsc
 68d42e533c719f82bda7e55f4edd6711226e022c 4348 clitest_0.2.0-2.debian.tar.xz
 468571738cfc02e83c538331cc416e97806d0dc5 17388 clitest_0.2.0-2_all.deb
Checksums-Sha256:
 5b46d82a04c1560ef225ace66ec1539e373f057a8be708d33b7449ea414b72be 1853 
clitest_0.2.0-2.dsc
 9fa9c0020b3058545ef5317cd4aa211bd5b7c9ebd5a6a6739b8b5a31ca07f7a0 4348 
clitest_0.2.0-2.debian.tar.xz
 c58a28a45055f355a4c43ce17c3ca029df76336cb2fb86520cef53219e4a8880 17388 
clitest_0.2.0-2_all.deb
Files:
 d025d1ee7b9784380e93f7606a333ed4 1853 misc optional clitest_0.2.0-2.dsc
 319801b4edff93a9f4204546145f2df0 4348 misc optional 
clitest_0.2.0-2.debian.tar.xz
 7bedc08ac1f83884f7336f309089dd7b 17388 misc optional clitest_0.2.0-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXY1Y5AAoJEHhJTvcjdaZsCBAQAIdJJ+ay3kM+a5wnaKnYdNAn
diixObkzEF38WdvYgA6uWP9ZLPfmnan4WpzarjJSVg1vsN1or2DiI6/1nYBJK842
yeXmerbnixn+AK6CKFvgiscQ9usq7LwdQeIfMfC5USkpkxMSSH/8P+i8N2TSV23A
rF3OeOEep8iUxOkInCXPgDf19mFYYvcx3MN4HfVot3qmXYXtLS45Brrw6CnzI+S6
Y4FAgPsSD4EsPKhC+K9YtlBimyXj+wblKMQniOJ2RD5hT4iVjP0xLgFelNi/Lq5u
KS0upUQe5thKHynZ9MxwyluS6dqH9NO1JChYElusoVlN5INKWJ2h9dzXJ6DrTN/n
nk4I750z14A72ozYqRNkgIKITha3IKQ8Vp+/ou7f/4HqOUuwSpCTE3mVW/XsLGgp
HwiJ8cQckcVxZ9Y7EPxYqACwqvl3Veb/R7+OpEczBEItDIoB32jTA1VLjfUYR/Fx
y2wbnYstTWt7TUwKLgjW+nV6YYUnP1F+zq14Wz8ra06gY8Iq820/f+BoUX3kUc/j
8N5bxNk7VTFsfGa9b9k+N+lHjuddJhci46+XfEk2OSu13dxhkppKFxwdimPpt9sT
1WttrV77SbTXvIluyHWyOF11q8uiEJ5G8mDuX4om3ZR9/rr75Yy9CE2UxIT72M4A
w+bFUW849r6X8itiCJ1V
=2gyL
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to