4e390241e875ccbc10710fd83587990f48f15f4f
[mech_eap.git] / wpa_supplicant / wpas_module_tests.c
1 /*
2  * wpa_supplicant module tests
3  * Copyright (c) 2014, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8
9 #include "utils/includes.h"
10
11 #include "utils/common.h"
12
13 int wpas_module_tests(void)
14 {
15         int ret = 0;
16
17         wpa_printf(MSG_INFO, "wpa_supplicant module tests");
18
19 #ifdef CONFIG_WPS
20         {
21                 int wps_module_tests(void);
22                 if (wps_module_tests() < 0)
23                         ret = -1;
24         }
25 #endif /* CONFIG_WPS */
26
27         return ret;
28 }