The special cases are changed by the next commit.
--- /dev/null
+noinst_PROGRAMS = $(test_programs)
+
+check-local:
+ for bin in $(test_programs); do \
+ if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
+ done
+include $(top_srcdir)/Makefile.test.include
+
pkglibexecdir = $(libexecdir)/dovecot
pkglibexec_PROGRAMS = anvil
test-connect-limit \
test-penalty
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../lib-test/libtest.la \
../lib/liblib.la
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
+include $(top_srcdir)/Makefile.test.include
+
auth_moduledir = $(moduledir)/auth
# automake seems to force making this unconditional..
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
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
+include $(top_srcdir)/Makefile.test.include
+
pkgsysconfdir = $(sysconfdir)/dovecot
pkglibexecdir = $(libexecdir)/dovecot
exampledir = $(docdir)/example-config
test_programs = \
test-config-parser
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
$(noinst_LTLIBRARIES) \
$(LIBDOVECOT)
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
+include $(top_srcdir)/Makefile.test.include
+
doveadm_moduledir = $(moduledir)/doveadm
pkglibexecdir = $(libexecdir)/dovecot
test_programs = \
test-doveadm-cmd \
test-doveadm-util
-noinst_PROGRAMS = $(test_programs)
test_libs = $(LIBDOVECOT)
test_deps = $(noinst_LTLIBRARIES) $(LIBDOVECOT_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
+include $(top_srcdir)/Makefile.test.include
+
pkglib_LTLIBRARIES = libdovecot-dsync.la
noinst_LTLIBRARIES = libdsync.la
test_programs = \
test-dsync-mailbox-tree-sync
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../../lib-test/libtest.la \
../../lib/liblib.la
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
+include $(top_srcdir)/Makefile.test.include
+
pkglibexecdir = $(libexecdir)/dovecot
pkglibexec_PROGRAMS = imap
test_programs = \
test-imap-storage-callbacks \
$(TEST_IMAP_CLIENT_HIBERNATE)
-noinst_PROGRAMS = $(test_programs)
test_imap_storage_callbacks_SOURCES = \
test-imap-storage-callbacks.c \
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
+include $(top_srcdir)/Makefile.test.include
+
pkglibexecdir = $(libexecdir)/dovecot
pkglibexec_PROGRAMS = indexer indexer-worker
test_programs = \
test-indexer-queue
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../lib-test/libtest.la \
../lib/liblib.la
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libauth-client.la
AM_CPPFLAGS = \
test-auth-client \
test-auth-master
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
$(noinst_LTLIBRARIES) \
../lib-master/libmaster.la \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libauth-crypt.la libauth.la
if HAVE_GSSAPI
noinst_LTLIBRARIES += libauth-gssapi.la
test-auth-gs2 \
test-auth-scram
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
$(noinst_LTLIBRARIES) \
../lib-otp/libotp.la \
../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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libcharset.la
AM_CPPFLAGS = \
test_programs = \
test-charset
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../lib-test/libtest.la \
../lib/liblib.la
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libcompression.la
AM_CPPFLAGS = \
test_programs = \
test-compression
-noinst_PROGRAMS = $(test_programs) bench-compression
+noinst_PROGRAMS += bench-compression
test_libs = \
$(noinst_LTLIBRARIES) \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdcrypt.la libdcrypt_openssl_static.la
module_LTLIBRARIES =
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 \
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdict_backend.la
module_dictdir = $(moduledir)/dict
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
../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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdict_extra.la
dict_drivers = @dict_drivers@
test_programs = \
test-dict-fs
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../lib-master/libmaster.la \
../lib-ssl-iostream/libssl_iostream.la \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = \
libdict.la
test_programs = \
test-dict
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
libdict.la \
../lib-settings/libsettings.la \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdns-client.la
AM_CPPFLAGS = \
test_programs = \
test-dns-lookup
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
libdns-client.la \
../lib-settings/libsettings.la \
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)
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdns.la
AM_CPPFLAGS = \
test_programs = \
test-dns-util
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
libdns.la \
../lib-test/libtest.la \
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)
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libfs.la
AM_CPPFLAGS = \
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
-noinst_PROGRAMS = $(test_programs)
-
test_programs = \
test-fs-metawrap \
test-fs-posix
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libhttp.la
AM_CPPFLAGS = \
test-http-client \
test-http-server
-noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
+noinst_PROGRAMS += $(test_nocheck_programs)
test_libs = \
../lib-settings/libsettings.la \
$(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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libimap_client.la
AM_CPPFLAGS = \
test_programs = \
test-imapc-client
-noinst_PROGRAMS = $(test_programs)
-
test_deps = \
$(noinst_LTLIBRARIES) \
../lib-dovecot/libdovecot.la
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libimap.la
AM_CPPFLAGS = \
test-imap-utf7 \
test-imap-util
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../lib-charset/libcharset.la \
../lib-test/libtest.la \
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 \
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libindex.la
AM_CPPFLAGS = \
test-mail-transaction-log-file \
test-mail-transaction-log-view
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
../lib-test/libtest.la \
../lib/liblib.la
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)
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libjson.la
AM_CPPFLAGS = \
fuzz-json-istream
endif
-noinst_PROGRAMS = json-format $(test_programs) $(fuzz_programs)
+noinst_PROGRAMS += json-format $(fuzz_programs)
json_format_SOURCE = \
json-format.c
$(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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = liblanguage.la
AM_CPPFLAGS = \
test-lang-filter \
test-lang-tokenizer
-noinst_PROGRAMS = $(test_programs)
-
test_libs = ../lib-dovecot/libdovecot.la
test_deps = $(noinst_LTLIBRARIES) $(test_libs)
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdldap.la
AM_CPPFLAGS = \
../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
+include $(top_srcdir)/Makefile.test.include
+
pkgsysconfdir = $(sysconfdir)/dovecot
noinst_LTLIBRARIES = liblogin.la
test_programs = \
test-login-server-auth
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
liblogin.la \
../lib-master/libmaster.la \
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
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
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
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libmail.la
AM_CPPFLAGS = \
endif
-noinst_PROGRAMS = $(fuzz_programs) $(test_programs)
+noinst_PROGRAMS += $(fuzz_programs)
test_libs = \
$(noinst_LTLIBRARIES) \
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
+include $(top_srcdir)/Makefile.test.include
+
pkgsysconfdir = $(sysconfdir)/dovecot
noinst_LTLIBRARIES = libmaster.la
test-event-stats \
test-master-service-settings
-noinst_PROGRAMS = $(test_programs)
-
test_deps = \
libmaster.la \
../lib-ssl-iostream/libssl_iostream.la \
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
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
test-oauth2-json \
test-oauth2-jwt
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
$(noinst_LTLIBRARIES) \
../lib-dcrypt/libdcrypt_openssl_static.la \
-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
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
test_programs = test-regex
-noinst_PROGRAMS = $(test_programs)
-
test_regex_SOURCES = test-regex.c
test_regex_LDADD = libdregex.la \
../lib-test/libtest.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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libsasl.la
if HAVE_GSSAPI
noinst_LTLIBRARIES += libsasl-gssapi.la
fuzz-sasl-authentication
endif
-noinst_PROGRAMS = $(test_programs) ntlm_dummy $(fuzz_programs)
+noinst_PROGRAMS += ntlm_dummy $(fuzz_programs)
test_libs = \
libsasl.la \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libsettings.la
AM_CPPFLAGS = \
test-settings-parser \
test-settings
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
libsettings.la \
../lib-var-expand/libvar_expand.la \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libdriver_test.la libsql.la
SQL_DRIVER_PLUGINS =
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libssl_iostream.la
NOPLUGIN_LDFLAGS =
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
+include $(top_srcdir)/Makefile.test.include
+
SUBDIRS = list index
noinst_LTLIBRARIES = libstorage.la
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 \
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)
+include $(top_srcdir)/Makefile.test.include
+
module_LTLIBRARIES = var_expand_crypt.la
AM_CPPFLAGS = \
test_programs = \
test-var-expand-crypt
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
$(LIBUNWIND_LIBS) \
$(module_LTLIBRARIES) \
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
+include $(top_srcdir)/Makefile.test.include
+
noinst_LTLIBRARIES = libvar_expand.la
# Squelch autoconf error about using .[ly] sources but not defining $(LEX)
test_programs = \
test-var-expand
-noinst_PROGRAMS = $(test_programs)
-
test_libs = \
libvar_expand.la \
../lib-regex/libdregex.la \
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
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
$(LIBUNWIND_CFLAGS)
write-full.h
test_programs = test-lib
-noinst_PROGRAMS = $(test_programs)
test_lib_CPPFLAGS = \
-I$(top_srcdir)/src/lib-test \
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)
+include $(top_srcdir)/Makefile.test.include
+
doveadm_moduledir = $(moduledir)/doveadm
AM_CPPFLAGS = \
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)
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-ssl-iostream \
../../lib/liblib.la \
$(MODULE_LIBS)
-noinst_PROGRAMS = test-solr-response
-
test_solr_response_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir)/src/lib-test
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
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
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)
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-mail \
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
+include $(top_srcdir)/Makefile.test.include
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
noinst_HEADERS = \
pop3-migration-plugin.h
-noinst_PROGRAMS = $(test_programs)
-
test_programs = \
test-pop3-migration-plugin
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
+include $(top_srcdir)/Makefile.test.include
+
doveadm_moduledir = $(moduledir)/doveadm
pkglibexecdir = $(libexecdir)/dovecot
test_programs = \
test-quota-util
-noinst_PROGRAMS = $(test_programs)
test_libs = \
$(LIBDOVECOT_STORAGE) \
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
+include $(top_srcdir)/Makefile.test.include
+
pkglibexecdir = $(libexecdir)/dovecot
pkglibexec_PROGRAMS = stats
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 \