wpas_module_tests.c (302408) | wpas_module_tests.c (337817) |
---|---|
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" | 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#include "utils/module_tests.h" |
|
12#include "wpa_supplicant_i.h" 13#include "blacklist.h" 14 15 16static int wpas_blacklist_module_tests(void) 17{ 18 struct wpa_supplicant wpa_s; 19 int ret = -1; --- 54 unchanged lines hidden (view full) --- 74 int ret = 0; 75 76 wpa_printf(MSG_INFO, "wpa_supplicant module tests"); 77 78 if (wpas_blacklist_module_tests() < 0) 79 ret = -1; 80 81#ifdef CONFIG_WPS | 13#include "wpa_supplicant_i.h" 14#include "blacklist.h" 15 16 17static int wpas_blacklist_module_tests(void) 18{ 19 struct wpa_supplicant wpa_s; 20 int ret = -1; --- 54 unchanged lines hidden (view full) --- 75 int ret = 0; 76 77 wpa_printf(MSG_INFO, "wpa_supplicant module tests"); 78 79 if (wpas_blacklist_module_tests() < 0) 80 ret = -1; 81 82#ifdef CONFIG_WPS |
82 { 83 int wps_module_tests(void); 84 if (wps_module_tests() < 0) 85 ret = -1; 86 } | 83 if (wps_module_tests() < 0) 84 ret = -1; |
87#endif /* CONFIG_WPS */ 88 | 85#endif /* CONFIG_WPS */ 86 |
89 { 90 int utils_module_tests(void); 91 if (utils_module_tests() < 0) 92 ret = -1; 93 } | 87 if (utils_module_tests() < 0) 88 ret = -1; |
94 | 89 |
95 { 96 int common_module_tests(void); 97 if (common_module_tests() < 0) 98 ret = -1; 99 } | 90 if (common_module_tests() < 0) 91 ret = -1; |
100 | 92 |
101 { 102 int crypto_module_tests(void); 103 if (crypto_module_tests() < 0) 104 ret = -1; 105 } | 93 if (crypto_module_tests() < 0) 94 ret = -1; |
106 107 return ret; 108} | 95 96 return ret; 97} |