commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-2.2-704-gb6e0ad6


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-704-gb6e0ad6
Date: Tue, 05 May 2015 05:45:25 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=b6e0ad60c137cde4f70a897710a9597b68e52f6f

The branch, master has been updated
       via  b6e0ad60c137cde4f70a897710a9597b68e52f6f (commit)
      from  eea2c4aa6f4383f3288ddc0c9e5084e36d31d9ac (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b6e0ad60c137cde4f70a897710a9597b68e52f6f
Author: Sergey Poznyakoff <address@hidden>
Date:   Tue May 5 08:39:24 2015 +0300

    mail: add tests in a non-interactive mode
    
    * configure.ac: Configure mail/tests subdirectory.
    * mail/Makefile.am (SUBDIRS): Add tests.
    * mail/tests/testsuite.at: New file.
    * mail/tests/Makefile.am: New file.
    * mail/tests/.gitignore: New file.
    * mail/tests/atlocal.in: New file.
    * mail/tests/cols00.at: New file.
    * mail/tests/cols01.at: New file.
    * mail/tests/copy00.at: New file.
    * mail/tests/nohome.at: New file.
    * mail/tests/version.at: New file.

-----------------------------------------------------------------------

Summary of changes:
 configure.ac                               |    3 ++
 mail/Makefile.am                           |    2 +-
 {imap4d => mail}/tests/.gitignore          |    0
 {messages => mail}/tests/Makefile.am       |    8 ++++-
 {libmailutils => mail}/tests/atlocal.in    |    3 +-
 sieve/tests/ext.at => mail/tests/cols00.at |   34 ++++++++-----------
 sieve/tests/ext.at => mail/tests/cols01.at |   34 ++++++++-----------
 mail/tests/copy00.at                       |   51 ++++++++++++++++++++++++++++
 sieve/tests/ext.at => mail/tests/nohome.at |   32 ++++++-----------
 {libmu_compat => mail}/tests/testsuite.at  |    9 ++++-
 {sieve => mail}/tests/version.at           |    2 +-
 11 files changed, 113 insertions(+), 65 deletions(-)
 copy {imap4d => mail}/tests/.gitignore (100%)
 copy {messages => mail}/tests/Makefile.am (95%)
 copy {libmailutils => mail}/tests/atlocal.in (65%)
 copy sieve/tests/ext.at => mail/tests/cols00.at (57%)
 copy sieve/tests/ext.at => mail/tests/cols01.at (58%)
 create mode 100644 mail/tests/copy00.at
 copy sieve/tests/ext.at => mail/tests/nohome.at (60%)
 copy {libmu_compat => mail}/tests/testsuite.at (84%)
 copy {sieve => mail}/tests/version.at (97%)

diff --git a/configure.ac b/configure.ac
index 57cebb8..6485227 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1316,6 +1316,7 @@ AC_CONFIG_TESTDIR(testsuite)
 AC_CONFIG_TESTDIR(libmu_compat/tests)
 AC_CONFIG_TESTDIR(frm/tests)
 AC_CONFIG_TESTDIR(maidag/tests)
+AC_CONFIG_TESTDIR(mail/tests)
 AC_CONFIG_TESTDIR(messages/tests)
 AC_CONFIG_TESTDIR(readmsg/tests)
 AC_CONFIG_TESTDIR(sieve/tests)
@@ -1337,6 +1338,8 @@ AC_CONFIG_FILES([libmailutils/tests/Makefile
                  imap4d/tests/atlocal
                 maidag/tests/Makefile
                 maidag/tests/atlocal
+                mail/tests/Makefile
+                mail/tests/atlocal
                 messages/tests/Makefile
                 messages/tests/atlocal
                 readmsg/tests/Makefile
diff --git a/mail/Makefile.am b/mail/Makefile.am
index 564fda8..85d1a20 100644
--- a/mail/Makefile.am
+++ b/mail/Makefile.am
@@ -100,5 +100,5 @@ mail_SOURCES = \
  write.c\
  z.c
 
-SUBDIRS = testsuite
+SUBDIRS = testsuite tests
 
diff --git a/imap4d/tests/.gitignore b/mail/tests/.gitignore
similarity index 100%
copy from imap4d/tests/.gitignore
copy to mail/tests/.gitignore
diff --git a/messages/tests/Makefile.am b/mail/tests/Makefile.am
similarity index 95%
copy from messages/tests/Makefile.am
copy to mail/tests/Makefile.am
index a2e867a..166532e 100644
--- a/messages/tests/Makefile.am
+++ b/mail/tests/Makefile.am
@@ -38,7 +38,13 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
 ## Test suite.  ##
 ## ------------ ##
 
-TESTSUITE_AT = testsuite.at
+TESTSUITE_AT =\
+ cols00.at\
+ cols01.at\
+ copy00.at\
+ nohome.at\
+ testsuite.at\
+ version.at
 
 TESTSUITE = $(srcdir)/testsuite
 M4=m4
diff --git a/libmailutils/tests/atlocal.in b/mail/tests/atlocal.in
similarity index 65%
copy from libmailutils/tests/atlocal.in
copy to mail/tests/atlocal.in
index d1b85ee..ee031b5 100644
--- a/libmailutils/tests/atlocal.in
+++ b/mail/tests/atlocal.in
@@ -3,4 +3,5 @@
 # Copyright (C) 2004, 2010-2012, 2014-2015 Free Software Foundation,
 # Inc.
 
address@hidden@:@abs_top_builddir@/libmailutils/tests:$top_srcdir:$srcdir:$PATH
address@hidden@:@abs_top_builddir@/mail:$top_srcdir:$srcdir:$PATH
address@hidden@/testsuite
diff --git a/sieve/tests/ext.at b/mail/tests/cols00.at
similarity index 57%
copy from sieve/tests/ext.at
copy to mail/tests/cols00.at
index 7221803..f7497ec 100644
--- a/sieve/tests/ext.at
+++ b/mail/tests/cols00.at
@@ -1,5 +1,5 @@
 # This file is part of GNU Mailutils. -*- Autotest -*-
-# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+# Copyright (C) 2015 Free Software Foundation, Inc.
 #
 # GNU Mailutils is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
@@ -14,30 +14,24 @@
 # You should have received a copy of the GNU General Public License
 # along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
 
-AT_SETUP([loadable extensions: numaddr])
-AT_KEYWORDS([ext])
+AT_SETUP([setting columns from environment])
+AT_KEYWORDS([columns cols00])
 
-AT_CHECK([
-MUT_PREREQ_CAPA([HAVE_LIBLTDL])
-
-AT_DATA([prog],[
-require "test-numaddr";
-
-if numaddr [[ "to", "cc" ]] :over 5
-  {
-    discard;
-  }
-])
+# Description: Check if COLUMNS setting is honored.
+# Reported-By: Dan Jacobson <address@hidden>
+# References: <address@hidden>,
+#    http://lists.gnu.org/archive/html/bug-mailutils/2015-04/msg00002.html
 
-MUT_MBCOPY($abs_top_srcdir/testsuite/spool/bigto.mbox)
-
-sieve MUT_SIEVE_CMDLINE dnl
- --clearpath -L "${abs_top_builddir}/examples" -f ./bigto.mbox prog
+AT_CHECK([
+unset MAILRC
+COLUMNS=26 mail -nH -E 'set columns=26' -f $testsuitedir/spool/mbox
+COLUMNS=31 mail -nH -f $testsuitedir/spool/mbox
 ],
 [0],
-[],
-[DISCARD on msg uid 1: marking as deleted
+[>N   1 Sergey Poznyakoff
+>N   1 Sergey Poznyakoff  Tue
 ])
 
 AT_CLEANUP
 
+
diff --git a/sieve/tests/ext.at b/mail/tests/cols01.at
similarity index 58%
copy from sieve/tests/ext.at
copy to mail/tests/cols01.at
index 7221803..cefda57 100644
--- a/sieve/tests/ext.at
+++ b/mail/tests/cols01.at
@@ -1,5 +1,5 @@
 # This file is part of GNU Mailutils. -*- Autotest -*-
-# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+# Copyright (C) 2015 Free Software Foundation, Inc.
 #
 # GNU Mailutils is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
@@ -14,30 +14,24 @@
 # You should have received a copy of the GNU General Public License
 # along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
 
-AT_SETUP([loadable extensions: numaddr])
-AT_KEYWORDS([ext])
+AT_SETUP([setting columns])
+AT_KEYWORDS([columns cols01])
 
-AT_CHECK([
-MUT_PREREQ_CAPA([HAVE_LIBLTDL])
-
-AT_DATA([prog],[
-require "test-numaddr";
-
-if numaddr [[ "to", "cc" ]] :over 5
-  {
-    discard;
-  }
-])
+# Description: Mailutils 2.99.98 ignored columns setting
+# Reported-By: Dan Jacobson <address@hidden>
+# References: <address@hidden>,
+#   http://lists.gnu.org/archive/html/bug-mailutils/2015-04/msg00000.html
 
-MUT_MBCOPY($abs_top_srcdir/testsuite/spool/bigto.mbox)
-
-sieve MUT_SIEVE_CMDLINE dnl
- --clearpath -L "${abs_top_builddir}/examples" -f ./bigto.mbox prog
+AT_CHECK([
+unset MAILRC
+mail -nH -E 'set columns=26' -f $testsuitedir/spool/mbox
+mail -nH -E 'set columns=31' -f $testsuitedir/spool/mbox
 ],
 [0],
-[],
-[DISCARD on msg uid 1: marking as deleted
+[>N   1 Sergey Poznyakoff
+>N   1 Sergey Poznyakoff  Tue
 ])
 
 AT_CLEANUP
 
+
diff --git a/mail/tests/copy00.at b/mail/tests/copy00.at
new file mode 100644
index 0000000..c8c9608
--- /dev/null
+++ b/mail/tests/copy00.at
@@ -0,0 +1,51 @@
+# This file is part of GNU Mailutils. -*- Autotest -*-
+# Copyright (C) 2015 Free Software Foundation, Inc.
+#
+# GNU Mailutils is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3, or (at
+# your option) any later version.
+#
+# GNU Mailutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP([copy to stdout])
+AT_KEYWORDS([copy copy00])
+
+# Description: Check if COLUMNS setting is honored
+# Reported-By: Dan Jacobson <address@hidden>
+# References: <address@hidden>,
+#    http://lists.gnu.org/archive/html/bug-mailutils/2015-04/msg00002.html
+
+AT_CHECK([
+test -f /dev/stdout || AT_SKIP_TEST
+unset MAILRC
+echo 'copy 1 /dev/stdout' | mail -N -E 'set readonly' -f 
$testsuitedir/spool/mbox | sed 's/  *$//;/^Held 1 message/d';
+],
+[0],
+[From address@hidden Tue Jul 16 12:11:35 2002
+Organization: Mailutils-tests
+Received: from example.net (localhost [[127.0.0.1]]) 
+       by example.net with ESMTP id g6G9BZb00791
+       for <address@hidden>; Tue, 16 Jul 2002 12:11:35 +0300
+Message-Id: <address@hidden>
+To: Bar <address@hidden>
+Subject: MBOX
+Date: Tue, 16 Jul 2002 12:11:35 +0300
+From: Sergey Poznyakoff <address@hidden>
+
+
+This is a sample user's mbox.
+
+"/dev/stdout"  14/438
+
+])
+
+AT_CLEANUP
+
+
diff --git a/sieve/tests/ext.at b/mail/tests/nohome.at
similarity index 60%
copy from sieve/tests/ext.at
copy to mail/tests/nohome.at
index 7221803..31d9b47 100644
--- a/sieve/tests/ext.at
+++ b/mail/tests/nohome.at
@@ -1,5 +1,5 @@
 # This file is part of GNU Mailutils. -*- Autotest -*-
-# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc.
+# Copyright (C) 2015 Free Software Foundation, Inc.
 #
 # GNU Mailutils is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
@@ -14,29 +14,21 @@
 # You should have received a copy of the GNU General Public License
 # along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
 
-AT_SETUP([loadable extensions: numaddr])
-AT_KEYWORDS([ext])
+AT_SETUP([reading mail with HOME unset])
+AT_KEYWORDS([nohome])
 
-AT_CHECK([
-MUT_PREREQ_CAPA([HAVE_LIBLTDL])
-
-AT_DATA([prog],[
-require "test-numaddr";
-
-if numaddr [[ "to", "cc" ]] :over 5
-  {
-    discard;
-  }
-])
-
-MUT_MBCOPY($abs_top_srcdir/testsuite/spool/bigto.mbox)
+# Description: Unsetting HOME caused undesirable effects in mail
+# Reported-By: Dan Jacobson <address@hidden>
+# References: <address@hidden>,
+#    http://lists.gnu.org/archive/html/bug-mailutils/2015-04/msg00002.html 
 
-sieve MUT_SIEVE_CMDLINE dnl
- --clearpath -L "${abs_top_builddir}/examples" -f ./bigto.mbox prog
+AT_CHECK([
+unset MAILRC
+unset HOME
+MAIL=$testsuitedir/spool/mbox mail -nH
 ],
 [0],
-[],
-[DISCARD on msg uid 1: marking as deleted
+[>N   1 Sergey Poznyakoff  Tue Jul 16 12:11  12/390   MBOX
 ])
 
 AT_CLEANUP
diff --git a/libmu_compat/tests/testsuite.at b/mail/tests/testsuite.at
similarity index 84%
copy from libmu_compat/tests/testsuite.at
copy to mail/tests/testsuite.at
index 5710c56..9254a2c 100644
--- a/libmu_compat/tests/testsuite.at
+++ b/mail/tests/testsuite.at
@@ -15,5 +15,12 @@
 # along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
 
 m4_include([testsuite.inc])
+
 AT_INIT
-m4_include([argcv.at])
+AT_TESTED([mail])
+
+m4_include([version.at])
+m4_include([nohome.at])
+m4_include([cols00.at])
+m4_include([cols01.at])
+m4_include([copy00.at])
\ No newline at end of file
diff --git a/sieve/tests/version.at b/mail/tests/version.at
similarity index 97%
copy from sieve/tests/version.at
copy to mail/tests/version.at
index 9cbff81..5f817d8 100644
--- a/sieve/tests/version.at
+++ b/mail/tests/version.at
@@ -16,4 +16,4 @@
 
 dnl m4_include([testsuite.inc])
 
-MUT_VERSION(sieve)
+MUT_VERSION(mail)


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]