summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-11-09 15:51:19 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-11-09 17:14:09 +0200
commitb666b297dd3bce7fd3ccd8d350858bc2a737315f (patch)
treed98ef0fcf504a58b96a2bf9ebcfb0760aab9d907
parent78e1bab77662b9a23a699320d9dd18a7cab4a8d7 (diff)
downloadmailutils-b666b297dd3bce7fd3ccd8d350858bc2a737315f.tar.gz
mailutils-b666b297dd3bce7fd3ccd8d350858bc2a737315f.tar.bz2
Reorganize testsuite
Simplify Makefile.am's in tests subdirectories by moving the common part in a separate file and including it where necessary. Build only one copy of package.m4. Both package.m4 and include file testsuite.am reside in the testsuite directory. Also provide configure options for selecting mda components to build: --disable-build-mda do not build mda --disable-build-lmtpd do not build lmtpd --disable-build-putmail do not build putmail * .gitignore: Update. * Makefile.am [MU_COND_MDA]: Change to MU_COND_MDA_TOOLS * configure.ac: Provide a way to enable/disable building of mda, lmtpd and putmail separately. Build testsuite/package.m4 * testsuite/testsuite.am * testsuite/Makefile.am: Distribute both package.m4.in and package.m4. Include main part from testsuite.am * testsuite/package.m4.in: New file. * comsat/tests/Makefile.am: Include main part from testsuite.am * frm/tests/Makefile.am: Likewise. * imap4d/tests/Makefile.am: Likewise. * libmailutils/tests/Makefile.am: Likewise. * libmu_scm/tests/Makefile.am: Likewise. * libproto/dotmail/tests/Makefile.am: Likewise. * mail/tests/Makefile.am: Likewise. * messages/tests/Makefile.am: Likewise. * mh/tests/Makefile.am: Likewise. * mimeview/tests/Makefile.am: Likewise. * readmsg/tests/Makefile.am: Likewise. * sieve/tests/Makefile.am: Likewise. * mda/.gitignore: Remove. * mda/tests/Makefile.am: Remove. * mda/tests/testsuite.at: Remove. * mda/tests/.gitignore: Remove. * mda/tests/atlocal.in: Remove. * mda/tests/mda.inc: New file. * mda/Makefile.am: Add extra directory level. Add subdirs depending on whether the corresponding component is selected for building. * mda/lmtpd/.gitignore: New file. * mda/lmtpd/Makefile.am: New file. * mda/lmtpd.c: Move to mda/lmtpd/lmtpd.c * mda/lmtpd/tests/.gitignore: New file. * mda/lmtpd/tests/Makefile.am: New file. * mda/lmtpd/tests/atlocal.in: New file. * mda/tests/lmtpd.at: Move to mda/lmtpd/tests/lmtpd.at * mda/lmtpd/tests/testsuite.at: New file. * mda/mda/.gitignore: New file. * mda/mda/Makefile.am: New file. * mda/mda.c: Move to mda/mda/mda.c * mda/mda/tests/.gitignore: New file. * mda/mda/tests/Makefile.am: New file. * mda/mda/tests/atlocal.in: New file. * mda/tests/forward.at: Move to mda/mda/tests/forward.at * mda/tests/mda.at: Move to mda/mda/tests/mda.at * mda/mda/tests/testsuite.at: New file. * mda/putmail/.gitignore: New file. * mda/putmail/Makefile.am: New file. * mda/putmail.c: Move to mda/putmail/putmail.c * mda/putmail/tests/.gitignore: New file. * mda/putmail/tests/Makefile.am: New file. * mda/putmail/tests/atlocal.in: New file. * mda/tests/putmail.at: Move to mda/putmail/tests/putmail.at * mda/putmail/tests/testsuite.at: New file * po/POTFILES.in: Update pathnames * maint/fullcheck.mk: Minor fixes.
-rw-r--r--.gitignore3
-rw-r--r--Makefile.am2
-rw-r--r--comsat/tests/Makefile.am65
-rw-r--r--configure.ac14
-rw-r--r--frm/tests/Makefile.am65
-rw-r--r--imap4d/tests/Makefile.am48
-rw-r--r--libmailutils/tests/Makefile.am53
-rw-r--r--libmailutils/tests/testsuite.at3
-rw-r--r--libmu_scm/tests/Makefile.am47
-rw-r--r--libproto/dotmail/tests/Makefile.am39
-rw-r--r--mail/tests/Makefile.am48
-rw-r--r--maint/fullcheck.mk11
-rw-r--r--mda/.gitignore3
-rw-r--r--mda/Makefile.am64
-rw-r--r--mda/lmtpd/.gitignore1
-rw-r--r--mda/lmtpd/Makefile.am48
-rw-r--r--mda/lmtpd/lmtpd.c (renamed from mda/lmtpd.c)0
-rw-r--r--mda/lmtpd/tests/.gitignore5
-rw-r--r--mda/lmtpd/tests/Makefile.am19
-rw-r--r--mda/lmtpd/tests/atlocal.in6
-rw-r--r--mda/lmtpd/tests/lmtpd.at (renamed from mda/tests/lmtpd.at)0
-rw-r--r--mda/lmtpd/tests/testsuite.at22
-rw-r--r--mda/mda/.gitignore1
-rw-r--r--mda/mda/Makefile.am50
-rw-r--r--mda/mda/mda.c (renamed from mda/mda.c)0
-rw-r--r--mda/mda/tests/.gitignore (renamed from mda/tests/.gitignore)1
-rw-r--r--mda/mda/tests/Makefile.am55
-rw-r--r--mda/mda/tests/atlocal.in6
-rw-r--r--mda/mda/tests/forward.at (renamed from mda/tests/forward.at)0
-rw-r--r--mda/mda/tests/mda.at (renamed from mda/tests/mda.at)0
-rw-r--r--mda/mda/tests/testsuite.at (renamed from mda/tests/testsuite.at)15
-rw-r--r--mda/putmail/.gitignore1
-rw-r--r--mda/putmail/Makefile.am43
-rw-r--r--mda/putmail/putmail.c (renamed from mda/putmail.c)0
-rw-r--r--mda/putmail/tests/.gitignore5
-rw-r--r--mda/putmail/tests/Makefile.am20
-rw-r--r--mda/putmail/tests/atlocal.in6
-rw-r--r--mda/putmail/tests/putmail.at (renamed from mda/tests/putmail.at)0
-rw-r--r--mda/putmail/tests/testsuite.at21
-rw-r--r--mda/tests/Makefile.am102
-rw-r--r--mda/tests/atlocal.in35
-rw-r--r--mda/tests/mda.inc30
-rw-r--r--messages/tests/Makefile.am65
-rw-r--r--mh/tests/Makefile.am50
-rw-r--r--mimeview/tests/Makefile.am50
-rw-r--r--po/POTFILES.in6
-rw-r--r--readmsg/tests/Makefile.am71
-rw-r--r--sieve/tests/Makefile.am53
-rw-r--r--testsuite/Makefile.am55
-rw-r--r--testsuite/cwdrepl.c2
-rw-r--r--testsuite/package.m4.in7
-rw-r--r--testsuite/testsuite.am47
52 files changed, 467 insertions, 896 deletions
diff --git a/.gitignore b/.gitignore
index e4d9c7afc..5271624b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
10*.pyo 10*.pyo
11*.so 11*.so
12*~ 12*~
13*.bak
13.bootstrap 14.bootstrap
14.deps 15.deps
15.emacs* 16.emacs*
@@ -39,3 +40,5 @@ stamp-h1
39tmp/ 40tmp/
40/patch/ 41/patch/
41.gdbinit 42.gdbinit
43conf.*.sh
44_fullcheck
diff --git a/Makefile.am b/Makefile.am
index 716be7a72..2b4920004 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,7 @@ if MU_COND_IMAP4D
32 IMAP4D_DIR = imap4d 32 IMAP4D_DIR = imap4d
33endif 33endif
34 34
35if MU_COND_MDA 35if MU_COND_MDA_TOOLS
36 MDA_DIR = mda 36 MDA_DIR = mda
37endif 37endif
38 38
diff --git a/comsat/tests/Makefile.am b/comsat/tests/Makefile.am
index 57c8bd325..cc1e08b02 100644
--- a/comsat/tests/Makefile.am
+++ b/comsat/tests/Makefile.am
@@ -1,64 +1 @@
1# This file is part of GNU Mailutils. include $(top_srcdir)/testsuite/testsuite.am
2# Copyright (C) 2010-2019 Free Software Foundation, Inc.
3#
4# GNU Mailutils is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License as
6# published by the Free Software Foundation; either version 3, or (at
7# your option) any later version.
8#
9# GNU Mailutils is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
16
17EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4
18DISTCLEANFILES = atconfig $(check_SCRIPTS)
19MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
20
21## ------------ ##
22## package.m4. ##
23## ------------ ##
24
25$(srcdir)/package.m4: $(top_srcdir)/configure.ac
26 $(AM_V_GEN){ \
27 echo '# Signature of the current package.'; \
28 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
29 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
30 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
31 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
32 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
33 } >$(srcdir)/package.m4
34
35#
36
37## ------------ ##
38## Test suite. ##
39## ------------ ##
40
41TESTSUITE_AT = testsuite.at
42
43TESTSUITE = $(srcdir)/testsuite
44M4=m4
45
46AUTOTEST = $(AUTOM4TE) --language=autotest
47$(TESTSUITE): package.m4 $(TESTSUITE_AT) $(top_srcdir)/testsuite/testsuite.inc
48 $(AM_V_GEN)$(AUTOTEST) -I $(srcdir) -I $(top_srcdir)/testsuite testsuite.at -o $@.tmp
49 $(AM_V_at)mv $@.tmp $@
50
51atconfig: $(top_builddir)/config.status
52 cd $(top_builddir) && ./config.status tests/$@
53
54clean-local:
55 @test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
56
57check-local: atconfig atlocal $(TESTSUITE)
58 @$(SHELL) $(TESTSUITE)
59
60# Run the test suite on the *installed* tree.
61#installcheck-local:
62# $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
63
64
diff --git a/configure.ac b/configure.ac
index 175214576..f74b10e02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1326,8 +1326,12 @@ MU_ENABLE_BUILD(pop3d,,,["$mu_build_servers" = yes],,[server_list])
1326MU_ENABLE_BUILD(imap4d,,,["$mu_build_servers" = yes],,[server_list]) 1326MU_ENABLE_BUILD(imap4d,,,["$mu_build_servers" = yes],,[server_list])
1327MU_ENABLE_BUILD(comsat,,,["$mu_build_servers" = yes],,[server_list]) 1327MU_ENABLE_BUILD(comsat,,,["$mu_build_servers" = yes],,[server_list])
1328 1328
1329MU_ENABLE_BUILD(mda,[mu_build_mda_tools=yes],,["$mu_build_servers" = yes],,[server_list])
1330MU_ENABLE_BUILD(lmtpd,[mu_build_mda_tools=yes],,["$mu_build_servers" = yes],,[server_list])
1331MU_ENABLE_BUILD(putmail,[mu_build_mda_tools=yes],,["$mu_build_clients" = yes],,[client_list])
1332AM_CONDITIONAL([MU_COND_MDA_TOOLS],[test "$mu_build_mda_tools" = yes])
1333
1329MU_ENABLE_BUILD(frm,,,["$mu_build_clients" = yes],,[client_list]) 1334MU_ENABLE_BUILD(frm,,,["$mu_build_clients" = yes],,[client_list])
1330MU_ENABLE_BUILD(mda,,,["$mu_build_clients" = yes],,[client_list])
1331 1335
1332MU_ENABLE_BUILD(mail,,,["$mu_build_clients" = yes],,[client_list]) 1336MU_ENABLE_BUILD(mail,,,["$mu_build_clients" = yes],,[client_list])
1333AC_SUBST([MAILBINDIR],'${bindir}') 1337AC_SUBST([MAILBINDIR],'${bindir}')
@@ -1364,9 +1368,12 @@ test -z "$client_list" && client_list=" [NONE]"
1364AC_CONFIG_TESTDIR(testsuite) 1368AC_CONFIG_TESTDIR(testsuite)
1365AC_CONFIG_FILES([testsuite/Makefile testsuite/atlocal]) 1369AC_CONFIG_FILES([testsuite/Makefile testsuite/atlocal])
1366 1370
1371AC_CONFIG_FILES([testsuite/package.m4])
1367MU_CONFIG_TESTSUITE(libmailutils) 1372MU_CONFIG_TESTSUITE(libmailutils)
1368MU_CONFIG_TESTSUITE(frm) 1373MU_CONFIG_TESTSUITE(frm)
1369MU_CONFIG_TESTSUITE(mda) 1374MU_CONFIG_TESTSUITE(mda/lmtpd)
1375MU_CONFIG_TESTSUITE(mda/mda)
1376MU_CONFIG_TESTSUITE(mda/putmail)
1370MU_CONFIG_TESTSUITE(mail) 1377MU_CONFIG_TESTSUITE(mail)
1371MU_CONFIG_TESTSUITE(messages) 1378MU_CONFIG_TESTSUITE(messages)
1372MU_CONFIG_TESTSUITE(readmsg) 1379MU_CONFIG_TESTSUITE(readmsg)
@@ -1523,6 +1530,9 @@ AC_CONFIG_FILES([
1523</