From: Aki Tuomi Date: Thu, 1 Jun 2023 11:13:29 +0000 (+0300) Subject: auth: Only test ldap when it's built in X-Git-Tag: 2.4.0~2711 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31d40cbfcba94511fcd5e24e0d67e0707bfea9da;p=thirdparty%2Fdovecot%2Fcore.git auth: Only test ldap when it's built in --- diff --git a/src/auth/test-db-ldap.c b/src/auth/test-db-ldap.c index 2b87a6fb76..b22d32c7f6 100644 --- a/src/auth/test-db-ldap.c +++ b/src/auth/test-db-ldap.c @@ -3,6 +3,8 @@ #include "lib.h" #include "test-common.h" #include "test-auth.h" +#if defined(BUILTIN_LDAP) || defined(PLUGIN_BUILD) + #include "db-ldap.h" #include @@ -98,3 +100,5 @@ void test_db_ldap_field_multi_expand_parse_data(void) } test_end(); } + +#endif diff --git a/src/auth/test-main.c b/src/auth/test-main.c index e1201cfb27..1c9bc3b6fe 100644 --- a/src/auth/test-main.c +++ b/src/auth/test-main.c @@ -12,8 +12,10 @@ int main(int argc, const char *argv[]) const char *match = ""; int ret; static const struct named_test test_functions[] = { +#if defined(BUILTIN_LDAP) || defined(PLUGIN_BUILD) TEST_NAMED(test_db_ldap_parse_attrs) TEST_NAMED(test_db_ldap_field_multi_expand_parse_data) +#endif TEST_NAMED(test_auth_request_var_expand) TEST_NAMED(test_auth_request_fields) TEST_NAMED(test_db_dict_parse_cache_key)