]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
global: Move most unit test runs to Makefile.test.include
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 5 Nov 2025 10:50:46 +0000 (12:50 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 10 Nov 2025 12:12:12 +0000 (12:12 +0000)
The special cases are changed by the next commit.

47 files changed:
Makefile.test.include [new file with mode: 0644]
src/anvil/Makefile.am
src/auth/Makefile.am
src/config/Makefile.am
src/doveadm/Makefile.am
src/doveadm/dsync/Makefile.am
src/imap/Makefile.am
src/indexer/Makefile.am
src/lib-auth-client/Makefile.am
src/lib-auth/Makefile.am
src/lib-charset/Makefile.am
src/lib-compression/Makefile.am
src/lib-dcrypt/Makefile.am
src/lib-dict-backend/Makefile.am
src/lib-dict-extra/Makefile.am
src/lib-dict/Makefile.am
src/lib-dns-client/Makefile.am
src/lib-dns/Makefile.am
src/lib-fs/Makefile.am
src/lib-http/Makefile.am
src/lib-imap-client/Makefile.am
src/lib-imap/Makefile.am
src/lib-index/Makefile.am
src/lib-json/Makefile.am
src/lib-language/Makefile.am
src/lib-ldap/Makefile.am
src/lib-login/Makefile.am
src/lib-lua/Makefile.am
src/lib-mail/Makefile.am
src/lib-master/Makefile.am
src/lib-oauth2/Makefile.am
src/lib-regex/Makefile.am
src/lib-sasl/Makefile.am
src/lib-settings/Makefile.am
src/lib-sql/Makefile.am
src/lib-ssl-iostream/Makefile.am
src/lib-storage/Makefile.am
src/lib-var-expand-crypt/Makefile.am
src/lib-var-expand/Makefile.am
src/lib/Makefile.am
src/plugins/acl/Makefile.am
src/plugins/fts-solr/Makefile.am
src/plugins/mail-crypt/Makefile.am
src/plugins/mail-lua/Makefile.am
src/plugins/pop3-migration/Makefile.am
src/plugins/quota/Makefile.am
src/stats/Makefile.am

diff --git a/Makefile.test.include b/Makefile.test.include
new file mode 100644 (file)
index 0000000..8d1b71c
--- /dev/null
@@ -0,0 +1,6 @@
+noinst_PROGRAMS = $(test_programs)
+
+check-local:
+       for bin in $(test_programs); do \
+         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
+       done
index 54d5b1db05f1df7bd8352b965ce749392249c7a3..42edeca73224361c26a99b0c689bec565b8ae8f4 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkglibexecdir = $(libexecdir)/dovecot
 
 pkglibexec_PROGRAMS = anvil
@@ -38,8 +40,6 @@ test_programs = \
        test-connect-limit \
        test-penalty
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../lib-test/libtest.la \
        ../lib/liblib.la
@@ -51,8 +51,3 @@ test_connect_limit_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)
 test_penalty_SOURCES = test-penalty.c
 test_penalty_LDADD = penalty.o $(test_libs)
 test_penalty_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index e9dff950d6a93056cb81efb66799bd9b6e858201..9b9bbdec16a80c61122d77a8d22ba19cb67ab5a1 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 auth_moduledir = $(moduledir)/auth
 
 # automake seems to force making this unconditional..
@@ -221,8 +223,6 @@ test_programs = \
        test-auth \
        test-mech
 
-noinst_PROGRAMS = $(test_programs)
-
 noinst_HEADERS = test-auth.h db-lua.h test-auth-master.h
 
 test_auth_cache_SOURCES = auth-cache.c test-auth-cache.c
@@ -270,9 +270,3 @@ test_auth_master_SOURCES = \
 
 test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(LUA_LIBS)
 test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
-
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index efedcb93ca2b692623cafacc87525f8978fb9cd1..025ba04aa54333485591caf7a0be1d61433c09d9 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkgsysconfdir = $(sysconfdir)/dovecot
 pkglibexecdir = $(libexecdir)/dovecot
 exampledir = $(docdir)/example-config
@@ -96,8 +98,6 @@ EXTRA_DIST = \
 test_programs = \
        test-config-parser
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        $(noinst_LTLIBRARIES) \
        $(LIBDOVECOT)
@@ -106,8 +106,3 @@ test_config_parser_CFLAGS = $(AM_CFLAGS)
 test_config_parser_SOURCES = test-config-parser.c
 test_config_parser_LDADD = $(test_libs)
 test_config_parser_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index f4c8434ceba0e21e2fe4897aa43639d683d7dfc7..b89b88d60c5356473fd85b0076faf6d05ec7e90a 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 doveadm_moduledir = $(moduledir)/doveadm
 pkglibexecdir = $(libexecdir)/dovecot
 
@@ -193,7 +195,6 @@ noinst_HEADERS = \
 test_programs = \
        test-doveadm-cmd \
        test-doveadm-util
-noinst_PROGRAMS = $(test_programs)
 
 test_libs = $(LIBDOVECOT)
 test_deps = $(noinst_LTLIBRARIES) $(LIBDOVECOT_DEPS)
@@ -205,8 +206,3 @@ test_doveadm_cmd_DEPENDENCIES = $(test_deps)
 test_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c
 test_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS)
 test_doveadm_util_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 3e65e88f2861f308fd5aaf0cdc225ce10348b629..17ddab85fe668c5c1ce50930978838764c0c0e90 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkglib_LTLIBRARIES = libdovecot-dsync.la
 noinst_LTLIBRARIES = libdsync.la
 
@@ -61,8 +63,6 @@ noinst_HEADERS = \
 test_programs = \
        test-dsync-mailbox-tree-sync
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../../lib-test/libtest.la \
        ../../lib/liblib.la
@@ -70,8 +70,3 @@ test_libs = \
 test_dsync_mailbox_tree_sync_SOURCES = test-dsync-mailbox-tree-sync.c
 test_dsync_mailbox_tree_sync_LDADD = dsync-mailbox-tree-sync.lo dsync-mailbox-tree.lo $(test_libs)
 test_dsync_mailbox_tree_sync_DEPENDENCIES = $(pkglib_LTLIBRARIES) $(test_libs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index b3a2f10318e85638596e692e5d1cd85cb8e0e29f..33bf5443ee265419af7c36ce82cc40fe8e38be42 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkglibexecdir = $(libexecdir)/dovecot
 
 pkglibexec_PROGRAMS = imap
@@ -127,7 +129,6 @@ endif
 test_programs = \
        test-imap-storage-callbacks \
        $(TEST_IMAP_CLIENT_HIBERNATE)
-noinst_PROGRAMS = $(test_programs)
 
 test_imap_storage_callbacks_SOURCES = \
        test-imap-storage-callbacks.c \
@@ -139,8 +140,3 @@ test_imap_client_hibernate_SOURCES = \
        test-imap-client-hibernate.c $(common_sources)
 test_imap_client_hibernate_LDADD = $(imap_LDADD)
 test_imap_client_hibernate_DEPENDENCIES = $(imap_DEPENDENCIES)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index cd264320da3a25c8983feeaadb7316c30b275214..680934b25c71d26a2cb6762928e13659682bbd18 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkglibexecdir = $(libexecdir)/dovecot
 
 pkglibexec_PROGRAMS = indexer indexer-worker
@@ -49,8 +51,6 @@ noinst_HEADERS = \
 test_programs = \
        test-indexer-queue
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../lib-test/libtest.la \
        ../lib/liblib.la
@@ -58,8 +58,3 @@ test_libs = \
 test_indexer_queue_SOURCES = test-indexer-queue.c indexer-queue.c
 test_indexer_queue_LDADD = $(test_libs)
 test_indexer_queue_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 177b0b623f1bc8e2020f35e446797debf141b82b..76f09e47e59d9a4d6bae560220475691753dffdc 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libauth-client.la
 
 AM_CPPFLAGS = \
@@ -32,8 +34,6 @@ test_programs = \
        test-auth-client \
        test-auth-master
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        $(noinst_LTLIBRARIES) \
        ../lib-master/libmaster.la \
@@ -61,8 +61,3 @@ test_auth_master_DEPENDENCIES = $(test_deps)
 test_auth_client_SOURCES = test-auth-client.c
 test_auth_client_LDADD = $(test_libs)
 test_auth_client_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index fefb78448ada2b938ad98332d6496977cbc2a4d8..9f52e7e96bb22b3aa907a66c3c4ecc91aeb187a3 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libauth-crypt.la libauth.la
 if HAVE_GSSAPI
 noinst_LTLIBRARIES += libauth-gssapi.la
@@ -55,8 +57,6 @@ test_programs = \
        test-auth-gs2 \
        test-auth-scram
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        $(noinst_LTLIBRARIES) \
         ../lib-otp/libotp.la \
@@ -97,8 +97,3 @@ test_auth_scram_LDADD = \
         ../lib-otp/libotp.la
 test_auth_scram_DEPENDENCIES = \
        $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index dd0b7b9283c6e404c144a8af6921d0d1e28cd829..eec2a189b456c66f39fad2c64859e3d79fe540ea 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libcharset.la
 
 AM_CPPFLAGS = \
@@ -18,8 +20,6 @@ pkginc_lib_HEADERS = $(headers)
 test_programs = \
        test-charset
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../lib-test/libtest.la \
        ../lib/liblib.la
@@ -28,8 +28,3 @@ test_deps = $(noinst_LTLIBRARIES) $(test_libs)
 test_charset_SOURCES = test-charset.c
 test_charset_LDADD = libcharset.la $(test_libs)
 test_charset_DEPENDENCIES = libcharset.la $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 21de471336a420eedc5169ec8386cdcaa1dbcc37..fd36d35792fea9f9d4417b3aed00a433b4902a21 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libcompression.la
 
 AM_CPPFLAGS = \
@@ -40,7 +42,7 @@ libdovecot_compression_la_LDFLAGS = -export-dynamic
 test_programs = \
        test-compression
 
-noinst_PROGRAMS = $(test_programs) bench-compression
+noinst_PROGRAMS += bench-compression
 
 test_libs = \
        $(noinst_LTLIBRARIES) \
@@ -55,8 +57,3 @@ test_compression_DEPENDENCIES = $(test_deps)
 bench_compression_SOURCES = bench-compression.c
 bench_compression_LDADD = $(test_libs)
 bench_compression_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 294730a0b4e93221ddcce462fdab30cd148cd9d2..53cb67cd29f115f163d9f2172fecdcd4e6cb63b5 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdcrypt.la libdcrypt_openssl_static.la
 module_LTLIBRARIES =
 
@@ -47,12 +49,6 @@ EXTRA_DIST = \
        sample-v2.asc
 
 test_programs = test-crypto test-stream
-noinst_PROGRAMS = $(test_programs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
 
 LIBDOVECOT_TEST_DEPS = \
        ../lib-var-expand/libvar_expand.la \
index b8be1434d29fa4d6ed26af565a923b6705e18e37..68f744b4490b7c00291f59dede7f5cbc4f61c219 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdict_backend.la
 
 module_dictdir = $(moduledir)/dict
@@ -95,8 +97,6 @@ dict-drivers-register.c: Makefile $(top_builddir)/config.h
 test_programs = \
        test-dict-sql
 
-noinst_PROGRAMS = $(test_programs)
-
 test_dict_sql_CFLAGS = $(AM_CFLAGS) -DDICT_SRC_DIR=\"$(top_srcdir)/src/lib-dict-backend\"
 test_dict_sql_SOURCES = \
        test-dict-sql.c
@@ -111,8 +111,3 @@ test_dict_sql_DEPENDENCIES = \
        ../lib-sql/libdriver_test.la \
        ../lib-sql/libsql.la \
        $(LIBDOVECOT_DEPS)
-
-check-local:
-       for bin in $(test_programs) $(check_PROGRAMS); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index e7b783109abcca38b5e73068f89397f86812c27b..deaba460d58a9f5a140ba51b99d1b4468a6f0adf 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdict_extra.la
 
 dict_drivers = @dict_drivers@
@@ -25,8 +27,6 @@ NOPLUGIN_LDFLAGS =
 test_programs = \
        test-dict-fs
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../lib-master/libmaster.la \
        ../lib-ssl-iostream/libssl_iostream.la \
@@ -41,8 +41,3 @@ test_libs = \
 test_dict_fs_SOURCES = test-dict-fs.c
 test_dict_fs_LDADD = $(noinst_LTLIBRARIES) ../lib-fs/libfs.la $(test_libs) $(MODULE_LIBS)
 test_dict_fs_DEPENDENCIES = $(noinst_LTLIBRARIES) ../lib-fs/libfs.la $(test_libs)
-
-check-local:
-       for bin in $(test_programs) $(check_PROGRAMS); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 68539db32f6a87a8d13b29c65b444749cbfa1460..a54aab216fff1b0f6cfebca492e86d3ea15f86a8 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = \
        libdict.la
 
@@ -50,8 +52,6 @@ pkginc_lib_HEADERS = $(headers)
 test_programs = \
        test-dict
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        libdict.la \
        ../lib-settings/libsettings.la \
@@ -64,8 +64,3 @@ test_libs = \
 test_dict_SOURCES = test-dict.c
 test_dict_LDADD = $(test_libs) $(DLLIB)
 test_dict_DEPENDENCIES = $(test_libs)
-
-check-local:
-       for bin in $(test_programs) $(check_PROGRAMS); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 2e882d80ab1538aead152f01c4ddd6569f0ec332..d57003a6f679a3311f6d1e58939b729491abc209 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdns-client.la
 
 AM_CPPFLAGS = \
@@ -19,8 +21,6 @@ headers = \
 test_programs = \
        test-dns-lookup
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        libdns-client.la  \
        ../lib-settings/libsettings.la \
@@ -33,12 +33,6 @@ test_libs = \
 test_dns_lookup_SOURCES = test-dns-lookup.c
 test_dns_lookup_LDADD = $(test_libs) $(DLLIB)
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
-
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
 
index fca2dccc7172c8eb62fd87bbea9f828ed42c9c89..386f3f3320c1302aa5fb060619b82c8966f8f10f 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdns.la
 
 AM_CPPFLAGS = \
@@ -13,8 +15,6 @@ headers = \
 test_programs = \
        test-dns-util
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        libdns.la  \
        ../lib-test/libtest.la \
@@ -23,11 +23,5 @@ test_libs = \
 test_dns_util_SOURCES = test-dns-util.c
 test_dns_util_LDADD = $(test_libs)
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
-
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
index dc129f32bf4d548413bbbc5d3390341691efeeaa..71527893a9f1d0ead1405aa93c2f272863a0001a 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libfs.la
 
 AM_CPPFLAGS = \
@@ -42,8 +44,6 @@ headers = \
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
 
-noinst_PROGRAMS = $(test_programs)
-
 test_programs = \
        test-fs-metawrap \
        test-fs-posix
@@ -69,8 +69,3 @@ test_fs_metawrap_DEPENDENCIES = $(test_deps)
 test_fs_posix_SOURCES = test-fs-posix.c
 test_fs_posix_LDADD = $(test_libs)
 test_fs_posix_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 0d4328b0bf47b293123626f5d341c7447a0dbcc7..fb7265561d39c556183961988e0165d34d97603c 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libhttp.la
 
 AM_CPPFLAGS = \
@@ -77,7 +79,7 @@ test_nocheck_programs = \
        test-http-client \
        test-http-server
 
-noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
+noinst_PROGRAMS += $(test_nocheck_programs)
 
 test_libs = \
        ../lib-settings/libsettings.la \
@@ -213,8 +215,3 @@ test_http_server_errors_LDADD = \
        $(test_http_libs)
 test_http_server_errors_DEPENDENCIES = \
        $(test_http_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index c54f8df713e6aac64e56b21d76e207aa1779a9ff..64fb1510dc46489fd0c8e564caa62f9f29a52896 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libimap_client.la
 
 AM_CPPFLAGS = \
@@ -30,8 +32,6 @@ pkginc_lib_HEADERS = $(headers)
 test_programs = \
        test-imapc-client
 
-noinst_PROGRAMS = $(test_programs)
-
 test_deps = \
        $(noinst_LTLIBRARIES) \
        ../lib-dovecot/libdovecot.la
@@ -43,8 +43,3 @@ test_libs = \
 test_imapc_client_SOURCES = test-imapc-client.c
 test_imapc_client_LDADD = $(test_libs)
 test_imapc_client_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index c3d5540a9ee9e47c58148747e226192bdccd8950..5bf88ab4026e4cf217f62a0bac5f7bc66d349477 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libimap.la
 
 AM_CPPFLAGS = \
@@ -54,8 +56,6 @@ test_programs = \
        test-imap-utf7 \
        test-imap-util
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../lib-charset/libcharset.la \
        ../lib-test/libtest.la \
@@ -99,11 +99,6 @@ test_imap_util_SOURCES = test-imap-util.c
 test_imap_util_LDADD = imap-util.lo imap-arg.lo $(test_libs)
 test_imap_util_DEPENDENCIES = $(test_deps)
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
 if USE_FUZZER
 noinst_PROGRAMS += \
        fuzz-imap-utf7 \
index a4af01715b8bad5c99902be4a7230d84356d2e92..5ef86d1c8930044878d5d1f00c636a70eaad6346 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libindex.la
 
 AM_CPPFLAGS = \
@@ -76,8 +78,6 @@ test_programs = \
        test-mail-transaction-log-file \
        test-mail-transaction-log-view
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        ../lib-test/libtest.la \
        ../lib/liblib.la
@@ -140,11 +140,6 @@ test_mail_transaction_log_view_SOURCES = test-mail-transaction-log-view.c
 test_mail_transaction_log_view_LDADD = mail-transaction-log-view.lo $(test_minimal_libs)
 test_mail_transaction_log_view_DEPENDENCIES = $(test_deps)
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
 
index d0c1ce6437c7bf91cded600bfcdf025cbdb3471d..6fab5acc23023b6920322616f2c67aadb5796000 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libjson.la
 
 AM_CPPFLAGS = \
@@ -43,7 +45,7 @@ fuzz_programs += \
         fuzz-json-istream
 endif
 
-noinst_PROGRAMS = json-format $(test_programs) $(fuzz_programs)
+noinst_PROGRAMS += json-format $(fuzz_programs)
 
 json_format_SOURCE = \
        json-format.c
@@ -128,9 +130,3 @@ fuzz_json_istream_LDADD = \
        $(test_libs)
 fuzz_json_istream_DEPENDENCIES = \
        $(test_deps)
-
-check: check-am check-test
-check-test: all-am
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 49d3b6db700654519e501f6743f0ef3126d85460..945a96be11429428ac7b16fee5de2599674e7e14 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = liblanguage.la
 
 AM_CPPFLAGS = \
@@ -102,8 +104,6 @@ test_programs = \
        test-lang-filter \
        test-lang-tokenizer
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = ../lib-dovecot/libdovecot.la
 test_deps = $(noinst_LTLIBRARIES) $(test_libs)
 
@@ -125,8 +125,3 @@ endif
 test_lang_tokenizer_SOURCES = test-lang-tokenizer.c
 test_lang_tokenizer_LDADD = liblanguage.la $(test_libs)
 test_lang_tokenizer_DEPENDENCIES = liblanguage.la $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index c866896b73a6eb1332592c57e17eba4527e5e104..7888cdd96dcf2f3a246e8ce55c03cfd2106da541 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdldap.la
 
 AM_CPPFLAGS = \
@@ -47,8 +49,3 @@ test_libs = \
        ../lib-test/libtest.la \
        ../lib-var-expand/libvar_expand.la \
        ../lib/liblib.la
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index a92f6578686ff52b6bc9d6b825e933d510fab5f7..70b530e43d8abe102e61391ff2debcf941887078 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkgsysconfdir = $(sysconfdir)/dovecot
 
 noinst_LTLIBRARIES = liblogin.la
@@ -26,8 +28,6 @@ pkginc_lib_HEADERS = $(headers)
 test_programs = \
        test-login-server-auth
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        liblogin.la \
        ../lib-master/libmaster.la \
@@ -60,8 +60,3 @@ test_deps = \
 test_login_server_auth_SOURCES = test-login-server-auth.c
 test_login_server_auth_LDADD = $(test_libs)
 test_login_server_auth_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index f6c44e09a992c7e913a6162771fc935620d4be5f..3819573fd0c1d52fd010970938b293258ebfaef7 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-test \
@@ -66,8 +68,6 @@ EXTRA_DIST = \
        test-io-lua.lua \
        test-lua-base64.lua
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs_ssl = ../lib-ssl-iostream/libssl_iostream_openssl.la
 
 test_lua_SOURCES = test-lua.c
@@ -95,8 +95,3 @@ test_lua_http_client_LDADD = libdlua.la $(LIBDOVECOT) $(test_libs_ssl) $(LUA_LIB
 test_lua_http_client_DEPENDENCIES = libdlua.la $(LIBDOVECOT_DEPS)
 test_lua_http_client_CFLAGS = $(AM_CFLAGS) \
        -DTEST_LUA_SCRIPT_DIR=\"$(abs_srcdir)\"
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 60a550c0a730c78c3c4e76929277ad53bb2b23a9..a55d48f0440413385a05937b4a2ae3e38479167b 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libmail.la
 
 AM_CPPFLAGS = \
@@ -126,7 +128,7 @@ fuzz_message_parser_DEPENDENCIES = $(test_deps)
 
 endif
 
-noinst_PROGRAMS = $(fuzz_programs) $(test_programs)
+noinst_PROGRAMS += $(fuzz_programs)
 
 test_libs = \
        $(noinst_LTLIBRARIES) \
@@ -251,8 +253,3 @@ test_rfc822_parser_DEPENDENCIES = $(test_deps)
 test_message_part_serialize_SOURCES = test-message-part-serialize.c
 test_message_part_serialize_LDADD = $(test_libs)
 test_message_part_serialize_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index bfead4f0dd2d086226e95e6cf8a092ea0b359b5b..3c11d83c988e0b78001249374da167f90a0acbdd 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkgsysconfdir = $(sysconfdir)/dovecot
 
 noinst_LTLIBRARIES = libmaster.la
@@ -48,8 +50,6 @@ test_programs = \
        test-event-stats \
        test-master-service-settings
 
-noinst_PROGRAMS = $(test_programs)
-
 test_deps = \
        libmaster.la \
        ../lib-ssl-iostream/libssl_iostream.la \
@@ -73,8 +73,3 @@ test_event_stats_DEPENDENCIES = $(test_deps)
 test_master_service_settings_SOURCES = test-master-service-settings.c
 test_master_service_settings_LDADD = $(test_libs)
 test_master_service_settings_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index f5172198aa3707c367d0ef414c885df2ee3a3557..fe6bfd88c2a1e532c253b5a9af68b8c04ab97ec3 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-test \
@@ -30,8 +32,6 @@ test_programs = \
        test-oauth2-json \
        test-oauth2-jwt
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        $(noinst_LTLIBRARIES) \
        ../lib-dcrypt/libdcrypt_openssl_static.la \
@@ -81,8 +81,3 @@ test_oauth2_jwt_LDFLAGS = \
        -Wl,$(LD_WHOLE_ARCHIVE),../lib-json/.libs/libjson.a,../lib-ssl-iostream/.libs/libssl_iostream.a,$(LD_NO_WHOLE_ARCHIVE)
 endif
 test_oauth2_jwt_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 9d26d27fa103ea7b121a67ed61a7a6048a6a2ae1..302ca113027459ce968388f94ee79f5e510debba 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-test \
@@ -27,8 +29,6 @@ EXTRA_DIST =
 
 test_programs = test-regex
 
-noinst_PROGRAMS = $(test_programs)
-
 test_regex_SOURCES = test-regex.c
 test_regex_LDADD = libdregex.la \
                   ../lib-test/libtest.la \
@@ -36,12 +36,6 @@ test_regex_LDADD = libdregex.la \
                   $(LIBPCRE_LIBS)
 test_regex_DEPENDENCIES = libdregex.la
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
-
 else
 libdregex_la_SOURCES = empty.c
 endif
index 70d9765d38bd7f6fd1da8a8b1e2d3712ac737d8d..734589cc46835f962e9ec25b7e4321741cc729c1 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libsasl.la
 if HAVE_GSSAPI
 noinst_LTLIBRARIES += libsasl-gssapi.la
@@ -92,7 +94,7 @@ fuzz_programs += \
         fuzz-sasl-authentication
 endif
 
-noinst_PROGRAMS = $(test_programs) ntlm_dummy $(fuzz_programs)
+noinst_PROGRAMS += ntlm_dummy $(fuzz_programs)
 
 test_libs = \
        libsasl.la \
@@ -154,8 +156,3 @@ fuzz_sasl_authentication_LDADD += \
 fuzz_sasl_authentication_DEPENDENCIES += \
        ../lib-auth/libauth-gssapi.la
 endif
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 0a0f5ab5621e29617a4f69c154e6b4734bf41942..c17fead8694caafa360594fdeb7b2b19f6c78b69 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libsettings.la
 
 AM_CPPFLAGS = \
@@ -39,8 +41,6 @@ test_programs = \
        test-settings-parser \
        test-settings
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        libsettings.la \
        ../lib-var-expand/libvar_expand.la \
@@ -56,8 +56,3 @@ test_settings_parser_DEPENDENCIES = $(test_libs)
 test_settings_SOURCES = test-settings.c
 test_settings_LDADD = $(test_libs) $(DLLIB)
 test_settings_DEPENDENCIES = $(test_libs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 3dd05f8cce51227adf698c39423c6885e95de1a6..f7c2678948bbe8916a1839502a7ff2e0e5fe6a49 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libdriver_test.la libsql.la
 
 SQL_DRIVER_PLUGINS =
@@ -158,10 +160,3 @@ test_sql_sqlite_SOURCES = test-sql-sqlite.c
 test_sql_sqlite_LDADD = $(SQLITE_LIB) $(pkglib_LTLIBRARIES) $(test_libs) $(DLLIB)
 test_sql_sqlite_DEPENDENCIES = $(SQLITE_LIB) $(pkglib_LTLIBRARIES) $(test_libs)
 endif
-
-noinst_PROGRAMS = $(test_programs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index b1c680e77ea06b0ffafc6ae9a2d2e6b900294713..a6e8ad22aea49712596d516d7985c45399f5f0f9 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libssl_iostream.la
 
 NOPLUGIN_LDFLAGS =
@@ -57,10 +59,3 @@ test_iostream_ssl_DEPENDENCIES = $(test_libs)
 
 test_programs = \
        test-iostream-ssl
-
-noinst_PROGRAMS = $(test_programs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index f569eb7f7872d134fa89a8dfe5d520f5ecca4cb9..7f5e58615d6296a32c962d86cc48ac165f2032f2 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 SUBDIRS = list index
 
 noinst_LTLIBRARIES = libstorage.la
@@ -172,8 +174,6 @@ test_programs = \
        test-mailbox-get \
        test-mailbox-list
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        $(top_builddir)/src/lib-var-expand/libvar_expand.la \
        $(top_builddir)/src/lib-test/libtest.la \
@@ -203,11 +203,6 @@ test_mailbox_list_SOURCES = test-mailbox-list.c
 test_mailbox_list_LDADD = libstorage.la $(LIBDOVECOT)
 test_mailbox_list_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS)
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
 noinst_HEADERS = $(test_headers)
index 74bc05a79961d6ad40bd234f3a3024ed1f19cbcf..24b6ca56f584d3901b6c60f19c30ad41f7e80890 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 module_LTLIBRARIES = var_expand_crypt.la
 
 AM_CPPFLAGS = \
@@ -18,8 +20,6 @@ pkginc_lib_HEADERS = $(headers)
 test_programs = \
        test-var-expand-crypt
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        $(LIBUNWIND_LIBS) \
        $(module_LTLIBRARIES) \
@@ -42,8 +42,3 @@ endif
 
 test_var_expand_crypt_CFLAGS = $(AM_CFLAGS) \
        -DDCRYPT_BUILD_DIR=\"$(top_builddir)/src/lib-dcrypt\"
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 172057788e87459aa5d06195b156bb9f838af9fc..3e4f49a57f254816531ec21ac680e902018ffdb4 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 noinst_LTLIBRARIES = libvar_expand.la
 
 # Squelch autoconf error about using .[ly] sources but not defining $(LEX)
@@ -56,8 +58,6 @@ pkginc_lib_HEADERS = $(headers)
 test_programs = \
        test-var-expand
 
-noinst_PROGRAMS = $(test_programs)
-
 test_libs = \
        libvar_expand.la \
        ../lib-regex/libdregex.la \
@@ -67,8 +67,3 @@ test_libs = \
 
 test_var_expand_SOURCE = test-var-expand.c
 test_var_expand_LDADD = $(test_libs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 1d5babad9a4847e6d28bf5510d413cf9b9cc49be..650bfeb0f609705cba7a172f7db59d724aa45d6c 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        $(LIBUNWIND_CFLAGS)
 
@@ -415,7 +417,6 @@ headers = \
        write-full.h
 
 test_programs = test-lib
-noinst_PROGRAMS = $(test_programs)
 
 test_lib_CPPFLAGS = \
        -I$(top_srcdir)/src/lib-test \
@@ -531,11 +532,6 @@ test_headers = \
 test_lib_LDADD = $(test_libs) -lm
 test_lib_DEPENDENCIES = $(test_libs)
 
-check-local: $(UCD_FILES)
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
 noinst_HEADERS = $(test_headers)
index 86d46bf3f70da31b1633fedc38188f6ceac632b3..b431c3ce326c4631c79298844209f8ebe029cc15 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 doveadm_moduledir = $(moduledir)/doveadm
 
 AM_CPPFLAGS = \
@@ -76,10 +78,3 @@ test_deps = \
 test_acl_SOURCES = test-acl.c
 test_acl_LDADD = $(test_libs)
 test_acl_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
-noinst_PROGRAMS = $(test_programs)
index 9095153b7dfeed7ba7ed52379abc5a563ca39b4f..b3c36acb8f630a46fccef4d7d1f4ed1d338c32f1 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-ssl-iostream \
@@ -46,8 +48,6 @@ test_libs = \
        ../../lib/liblib.la \
        $(MODULE_LIBS)
 
-noinst_PROGRAMS = test-solr-response
-
 test_solr_response_CPPFLAGS = \
        $(AM_CPPFLAGS) \
        -I$(top_srcdir)/src/lib-test
@@ -59,9 +59,3 @@ test_solr_response_LDADD = \
 
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
-
-check: check-am check-test
-check-test: all-am
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index e867edc54ac1af3a068d05b4b8c37e03f95954f6..f192512175b9c28c4859103e239193bdc73a8df6 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-test \
@@ -106,10 +108,3 @@ noinst_HEADERS = \
        mail-crypt-common.h \
        mail-crypt-global-key.h \
        mail-crypt-key.h
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
-noinst_PROGRAMS = $(test_programs)
index cab4b32ea37af2ae8e70d2c4b43acc6a8249c8f6..fcb81f61d27d2cfbda168428cb8720824be2296b 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-mail \
@@ -28,11 +30,5 @@ pkginc_lib_HEADERS = \
 
 test_programs =
 
-check-local:
-       for bin in $(test_programs); do \
-         if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
-
-noinst_PROGRAMS = $(test_programs)
 noinst_HEADERS = \
        mail-lua-settings.h
index 4d0902a84711769d034ff72e7b75c4def8bd34da..93c93fc8fddb6890897d04c702629a26727bab08 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/lib-test \
@@ -20,8 +22,6 @@ lib05_pop3_migration_plugin_la_SOURCES = \
 noinst_HEADERS = \
        pop3-migration-plugin.h
 
-noinst_PROGRAMS = $(test_programs)
-
 test_programs = \
        test-pop3-migration-plugin
 
@@ -36,8 +36,3 @@ test_deps = \
 test_pop3_migration_plugin_SOURCES = test-pop3-migration-plugin.c
 test_pop3_migration_plugin_LDADD = pop3-migration-plugin.lo $(test_libs)
 test_pop3_migration_plugin_DEPENDENCIES = $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index 14e5c7027a5a08210f97ba213fb5a79be82b930b..9747f9bbc6727f8921e32bf0da1a261da9d6fec2 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 doveadm_moduledir = $(moduledir)/doveadm
 
 pkglibexecdir = $(libexecdir)/dovecot
@@ -119,7 +121,6 @@ clean-generic:
 
 test_programs = \
        test-quota-util
-noinst_PROGRAMS = $(test_programs)
 
 test_libs = \
        $(LIBDOVECOT_STORAGE) \
@@ -131,8 +132,3 @@ test_deps = $(noinst_LTLIBRARIES) \
 test_quota_util_SOURCES = test-quota-util.c
 test_quota_util_LDADD = quota-util.lo $(test_libs)
 test_quota_util_DEPENDENCIES = quota-util.lo $(test_deps)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
index a0e397bad00a6f0a2b189dd7d216cacd31bd66df..510852d7ac23a931f6b6559b3c899c3c79920f48 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.test.include
+
 pkglibexecdir = $(libexecdir)/dovecot
 
 pkglibexec_PROGRAMS = stats
@@ -90,12 +92,6 @@ test_client_reader_LDADD = $(test_libs)
 test_client_reader_DEPENDENCIES = $(test_deps)
 
 test_programs = test-stats-metrics test-client-writer test-client-reader
-noinst_PROGRAMS = $(test_programs)
-
-check-local:
-       for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
-       done
 
 LIBDOVECOT_TEST_DEPS = \
        ../lib-ssl-iostream/libssl_iostream.la \