Your message dated Sun, 22 Sep 2013 22:03:42 +0000
with message-id <[email protected]>
and subject line Bug#710881: fixed in spamassassin 3.3.2-7
has caused the Debian Bug report #710881,
regarding spamassassin: Added autopkgtests
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.)


-- 
710881: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710881
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: spamassassin
Version: 3.3.2-6
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu  ubuntu-patch

Added autopkgtests


*** /tmp/tmpszzVtv/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

Improve QA of packages


  * debian/tests: Added autopkgtests


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8.0-14-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog'

=== modified file 'debian/control'
--- debian/control	2012-09-07 12:05:50 +0000
+++ debian/control	2013-06-03 08:31:36 +0000
@@ -11,6 +11,7 @@
 Homepage: http://www.spamassassin.org/
 Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/spamassassin/trunk
 Vcs-Browser: http://svn.debian.org/viewsvn/collab-maint/deb-maint/spamassassin/trunk/
+XS-Testsuite: autopkgtest
 
 Package: spamassassin
 Architecture: all

=== added directory 'debian/tests'
=== added file 'debian/tests/control'
--- debian/tests/control	1970-01-01 00:00:00 +0000
+++ debian/tests/control	2013-06-03 08:30:26 +0000
@@ -0,0 +1,3 @@
+Tests: spamassassin_nospam spamassassin_spam daemon
+Depends: spamassassin, procps
+Restrictions: needs-root

=== added file 'debian/tests/daemon'
--- debian/tests/daemon	1970-01-01 00:00:00 +0000
+++ debian/tests/daemon	2013-06-03 08:30:26 +0000
@@ -0,0 +1,18 @@
+#!/bin/bash
+#----------------------------
+# Testing spamassassin daemon
+#----------------------------
+set -e
+
+# modify /etc/default/spamassassin to enable the daemon
+CONFIG_FILE=/etc/default/spamassassin
+sed -i -e "s/ENABLED=0/ENABLED=1/g" $CONFIG_FILE
+/etc/init.d/spamassassin restart >/dev/null 2>&1
+
+if pgrep spamd > /dev/null; then
+    echo "OK"
+    exit 0
+else
+    echo "ERROR: SPAMD IS NOT RUNNING"
+    exit 1
+fi

=== added file 'debian/tests/get_spam_points.py'
--- debian/tests/get_spam_points.py	1970-01-01 00:00:00 +0000
+++ debian/tests/get_spam_points.py	2013-06-03 08:30:26 +0000
@@ -0,0 +1,23 @@
+import sys
+import subprocess
+
+
+if __name__ == '__main__':
+    try:
+        file_name = sys.argv[1]
+
+        # call spamassassin with the given file and return the points
+        output = subprocess.check_output("spamassassin --test-mode < " + file_name, shell=True, stderr=subprocess.STDOUT)
+        if output:
+            lines = output.split('\n')
+            if lines and lines[-4]:
+                results = lines[-4].split(' ')
+                if results and len(results)>0:
+                    points = results[0]
+                    print "%d" % round(float(points))
+                    exit()
+        print "0"
+    except Exception as e:
+        print "ERROR"
+
+

=== added file 'debian/tests/spamassassin_nospam'
--- debian/tests/spamassassin_nospam	1970-01-01 00:00:00 +0000
+++ debian/tests/spamassassin_nospam	2013-06-03 08:30:26 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+#----------------------------
+# Testing spamassassin nospam
+#----------------------------
+set -e
+
+if python `dirname $0`/get_spam_points.py `dirname $0`/../../sample-nonspam.txt 2>&1; then
+    echo "OK"
+    exit 0
+else
+    echo "ERROR: POINTS SHOULD BE ZERO"
+    exit 1
+fi

=== added file 'debian/tests/spamassassin_spam'
--- debian/tests/spamassassin_spam	1970-01-01 00:00:00 +0000
+++ debian/tests/spamassassin_spam	2013-06-03 08:30:26 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+#----------------------------
+# Testing spamassassin nospam
+#----------------------------
+set -e
+
+if python `dirname $0`/get_spam_points.py `dirname $0`/../../sample-spam.txt 2>&1; then
+    echo "OK"
+    exit 0
+else
+    echo "ERROR: POINTS SHOULD BE HIGHER THAN ZERO"
+    exit 1
+fi


--- End Message ---
--- Begin Message ---
Source: spamassassin
Source-Version: 3.3.2-7

We believe that the bug you reported is fixed in the latest version of
spamassassin, 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.
[email protected] (supplier of updated spamassassin 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: Sun, 22 Sep 2013 14:44:37 -0700
Source: spamassassin
Binary: spamassassin spamc
Architecture: source all amd64
Version: 3.3.2-7
Distribution: unstable
Urgency: low
Maintainer: Noah Meyerhans <[email protected]>
Changed-By: [email protected]
Description: 
 spamassassin - Perl-based spam filter using text analysis
 spamc      - Client for SpamAssassin spam filtering daemon
Closes: 710881 720499 721565
Changes: 
 spamassassin (3.3.2-7) unstable; urgency=low
 .
   * Incorporate upstream's fix for syntax warnings when running
     under perl 5.18 (Closes: #721565)
   * Bump standards version to 3.9.4 (no changes)
   * Incorporate Ubuntu's dep-8 autopkgtests. (Closes: 710881)
 .
 spamassassin (3.3.2-6.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Fix "FTBFS with perl 5.18: POD failure":
     add patch 97_bug720499-pod-5.18 from Damyan Ivanov: fix POD errors with
     perl 5.18
     (Closes: #720499)
Checksums-Sha1: 
 c149802c3917c924da5e7e37e4f405b3dc67d8f2 1486 spamassassin_3.3.2-7.dsc
 68abd39d1a877cc2b30164e1c62f5c528eca8766 45814 
spamassassin_3.3.2-7.debian.tar.gz
 aa245bfddf0774751752ce59bc6fd2c2c9182398 1060928 spamassassin_3.3.2-7_all.deb
 8efb129c00f9f741f70af34400b24471a4748ac7 72972 spamc_3.3.2-7_amd64.deb
Checksums-Sha256: 
 edb55c67000f9fbe7dc817d3d5161c5f5d5db784ab3c5ff3ea53de5282de060a 1486 
spamassassin_3.3.2-7.dsc
 ad33adf1468ed44a8ee1aea5a0304eeb30a82ecc45949eff9ab9c0d532012063 45814 
spamassassin_3.3.2-7.debian.tar.gz
 fc5b341d2656604fd8b475eeb5998e1fbcd29d491ba28d6e75ce40938280e7dc 1060928 
spamassassin_3.3.2-7_all.deb
 7610aed21ec2ac1a9efd77e13a9ca37f6989255e92f50a742438a25ee356fb7a 72972 
spamc_3.3.2-7_amd64.deb
Files: 
 527ea16508ced96777bc85806a314b41 1486 mail optional spamassassin_3.3.2-7.dsc
 88dab4d8bc15e18a28ba412715a255bf 45814 mail optional 
spamassassin_3.3.2-7.debian.tar.gz
 3bf6c4e593a7028ccc1193c409c1abe9 1060928 mail optional 
spamassassin_3.3.2-7_all.deb
 ec010628204e575676a96fee664e1c15 72972 mail optional spamc_3.3.2-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFSP2XEYrVLjBFATsMRAlryAJ0Z9HJ8EURgwX8ko/Fjc1SdRzj1DgCfUt8b
JGkAdj3oAgIoWNyfz+XMfvg=
=p7Wz
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to