Your message dated Thu, 25 Aug 2016 23:48:53 +0000
with message-id <[email protected]>
and subject line Bug#823979: fixed in autodep8 0.8
has caused the Debian Bug report #823979,
regarding autodep8: Support for ELPA testsuites
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.)


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

Dear maintainers,

Please consider applying the following patch which adds support for the
testsuites of Emacs Lisp addon packages.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)

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

Versions of packages autodep8 depends on:
ii  dctrl-tools  2.24-2
ii  python3      3.5.1-3

autodep8 recommends no packages.

autodep8 suggests no packages.

-- no debconf information

-- 
Sean Whitton
From 2bee7dc0e3f008312774acc04a94df167e804fa1 Mon Sep 17 00:00:00 2001
From: Sean Whitton <[email protected]>
Date: Tue, 10 May 2016 13:10:27 -0700
Subject: [PATCH] ELPA testsuite detection & update copyright years

---
 debian/changelog      |  8 ++++++++
 debian/control        |  1 +
 debian/copyright      |  2 +-
 support/elpa/detect   | 18 +++++++++++++++++
 support/elpa/generate | 19 ++++++++++++++++++
 test/elpa_test.sh     | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 102 insertions(+), 1 deletion(-)
 create mode 100755 support/elpa/detect
 create mode 100755 support/elpa/generate
 create mode 100644 test/elpa_test.sh

diff --git a/debian/changelog b/debian/changelog
index 20fc757..faeb535 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+autodep8 (0.6) UNRELEASED; urgency=medium
+
+  * Add support for ELPA package testsuites run by dh_elpa_test.
+  * Add test suite for ELPA package testsuite detection.
+  * Bump copyright years in d/copyright.
+
+ -- Sean Whitton <[email protected]>  Tue, 10 May 2016 11:51:14 -0700
+
 autodep8 (0.5.1) unstable; urgency=medium
 
   * test/helper.sh: include extra information on failed tests to help
diff --git a/debian/control b/debian/control
index 6a44ec8..9d0b81b 100644
--- a/debian/control
+++ b/debian/control
@@ -24,3 +24,4 @@ Description: DEP-8 test control file generator
   - NodeJS packages
   - Kernel module packages using DKMS
   - R packages
+  - Emacs Lisp ELPA packages
diff --git a/debian/copyright b/debian/copyright
index 99b3620..dabe791 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,7 +3,7 @@ Upstream-Name: autodep8
 Source: http://git.debian.org/?p=collab-maint/autodep8.git;a=summary
 
 Files: *
-Copyright: 2014 the contributing authors. See `git log` for details.
+Copyright: 2014-2016 the contributing authors. See `git log` for details.
 License: GPL-3.0+
 
 License: GPL-3.0+
diff --git a/support/elpa/detect b/support/elpa/detect
new file mode 100755
index 0000000..7fd6287
--- /dev/null
+++ b/support/elpa/detect
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Maintainer: Sean Whitton <[email protected]>
+
+# We check that: this package uses dh_elpa, debhelper compat level is
+# at least 10 (see dh_elpa_test(1)), and the user hasn't disabled
+# dh_elpa_test, and that there is actually a testsuite to run
+
+set -e
+
+# check that the file exists first, so that if it doesn't cat doesn't
+# produce stderr output which disrupts other test/*_test.sh
+test -e debian/compat
+test "$(cat debian/compat)" -ge 10
+(! grep -q ".*DH_ELPA_TEST_DISABLE.*" debian/rules)
+grep-dctrl -q -F Build-Depends dh-elpa debian/control
+( grep -q -r ".*(ert-deftest.*" . || \
+        grep-dctrl -q -F Build-Depends elpa-buttercup debian/control )
diff --git a/support/elpa/generate b/support/elpa/generate
new file mode 100755
index 0000000..3d89bc7
--- /dev/null
+++ b/support/elpa/generate
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Maintainer: Sean Whitton <[email protected]>
+
+# Remarks:
+
+# 1. Many ELPA test suites write to the build tree, so we need that
+#    restriction in the general case.
+
+# 2. We invoke `debian/rules build' rather than simply `dh_elpa_test'
+#    because that ensures that any DH_ELPA_TEST_* environment
+#    variables the user has specifies in debian/rules are exported
+#    such that dh_elpa_test can see them.  See dh_elpa_test(1).
+
+cat <<EOF
+Test-Command: debian/rules build
+Depends: @, @builddeps@
+Restrictions: rw-build-tree
+EOF
diff --git a/test/elpa_test.sh b/test/elpa_test.sh
new file mode 100644
index 0000000..1666888
--- /dev/null
+++ b/test/elpa_test.sh
@@ -0,0 +1,55 @@
+. $(dirname $0)/helper.sh
+
+test_Testsuite_autopkgtest_pkg_elpa() {
+  has debian/control 'Testsuite: autopkgtest-pkg-elpa'
+  check_run autodep8
+}
+
+test_XS_Testsuite_autopkgtest_pkg_elpa() {
+  has debian/control 'XS-Testsuite: autopkgtest-pkg-elpa'
+  check_run autodep8
+}
+
+test_elpa_test_ert() {
+  has debian/control 'Build-Depends: dh-elpa'
+  has debian/rules 'foo'
+  has debian/compat '10'
+  has test.el '(ert-deftest foo)'
+  check_run autodep8
+}
+
+test_elpa_test_buttercup() {
+  has debian/control 'Build-Depends: dh-elpa, elpa-buttercup'
+  has debian/rules 'foo'
+  has debian/compat '10'
+  check_run autodep8
+}
+
+test_elpa_test_disabled() {
+  has debian/control 'Build-Depends: dh-elpa, elpa-buttercup'
+  has debian/rules 'export DH_ELPA_TEST_DISABLE'
+  has debian/compat '10'
+  run autodep8
+  assertEquals 1 "$exitstatus"
+  assertEquals "" "$(cat stdout stderr)"
+}
+
+test_elpa_test_non_elpa() {
+  has debian/control 'Build-Depends: dh-fake-elpa, elpa-buttercup'
+  has debian/rules 'foo'
+  has debian/compat '10'
+  run autodep8
+  assertEquals 1 "$exitstatus"
+  assertEquals "" "$(cat stdout stderr)"
+}
+
+test_elpa_test_bad_compat() {
+  has debian/control 'Build-Depends: dh-elpa, elpa-buttercup'
+  has debian/rules 'foo'
+  has debian/compat '9'
+  run autodep8
+  assertEquals 1 "$exitstatus"
+  assertEquals "" "$(cat stdout stderr)"
+}
+
+. shunit2
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: autodep8
Source-Version: 0.8

We believe that the bug you reported is fixed in the latest version of
autodep8, 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.
Antonio Terceiro <[email protected]> (supplier of updated autodep8 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: Thu, 25 Aug 2016 20:36:02 -0300
Source: autodep8
Binary: autodep8
Architecture: source
Version: 0.8
Distribution: unstable
Urgency: medium
Maintainer: Autopkgtest team <[email protected]>
Changed-By: Antonio Terceiro <[email protected]>
Description:
 autodep8   - DEP-8 test control file generator
Closes: 823979
Changes:
 autodep8 (0.8) unstable; urgency=medium
 .
   [ Sean Whitton ]
   * Add support for ELPA package testsuites run by dh_elpa_test
     (Closes: #823979).
   * Add test suite for ELPA package testsuite detection.
   * Bump copyright years in d/copyright.
Checksums-Sha1:
 e5a0f6985e7dac1e682d79b5399d0c004ec55450 1678 autodep8_0.8.dsc
 7675793e7c8d5698e1e3717f2c245ef1dcb205c7 8496 autodep8_0.8.tar.xz
Checksums-Sha256:
 0310fe72830ee75c82ef8b74c2e807874f2278c953bb0e7b91106d9fd528fdf2 1678 
autodep8_0.8.dsc
 e8bd6a8c64b95603c4717ee3589ff8255e2a338105571dbadfb8c48cbbe1d997 8496 
autodep8_0.8.tar.xz
Files:
 02584d3e19db570edfd0d642cd5e7a2d 1678 devel optional autodep8_0.8.dsc
 ff5809fd3089fadbd05774604fc07deb 8496 devel optional autodep8_0.8.tar.xz

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

iQIcBAEBCAAGBQJXv4IFAAoJEPwNsbvNRgver0gQAJvRlldgqf8PM8BaMgbUJ/dh
0OFCdmYnRnkTxpFnXcq9O4AvQK/v+8SKf56bYN1FvIs9e3V+r1R7R+jd+O8JARRE
I0aplzN9PBI+wf2VjKJbCeBzrx3199Nxt5GAovUolYLPPODbWSjFWWErk2CNJQkI
VTxThmoQeSdPyZo/ayu+ui1B3kaO+IheiVgYIKmtHumJWUvXLmm1wdplucoIA865
978RCY9GsCTCsaSyT621ItdYCXi+AsfdxfwficdM5I176Hp77jvhWnwc8qe4Ce64
8f6jt3AtTRRK35mAl95q4VKfcGH8mp5Ef65VJ6vInvtynpsi7VlU3pWb3YWjBsHg
0amD56uWPKkCiW23BRcI+7iUz4V5iIYli176/LtnKZr6zk82ACea94WIeNcp5Pp8
qCoJiJLGJ9yhBBuLoAtzZrkr5aBRIpkDMtYLTUhieHUMjPpB8APDhQ2RGdQD+Kcn
fh5PR21NbEitNWOKCYKs5GRZ3CSLH0PNGh4g4uX2ND0HvjeTgXvLvcsBMyYQKB69
GNCEzVJER7yw0LnviB4LWms52aIjfUH1pEuAbho2YCZVQ/korcAIN/uv/S+PBare
/lJ9Nm7GPAcZMGxRob7enM9f0P13QA6YlVZq0z0fZvh3JLDioxdT9yCS5NV9b5PE
yzFINs+YP0PqlRQQSoWO
=STZJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to