aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_module_tests.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-02-20 23:15:16 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-21 11:41:30 (GMT)
commit3cdcb3a4b352bcc0ba3ebc77bddf285d7834a7b4 (patch)
tree93ef7245cb65a25a94583bd68bcaf9666b812ca2 /wpa_supplicant/wpas_module_tests.c
parentea449b5bfee82892f526fe5ace8d31c32d57809c (diff)
downloadhostap-3cdcb3a4b352bcc0ba3ebc77bddf285d7834a7b4.zip
hostap-3cdcb3a4b352bcc0ba3ebc77bddf285d7834a7b4.tar.gz
hostap-3cdcb3a4b352bcc0ba3ebc77bddf285d7834a7b4.tar.bz2
tests: Add module tests for WPS attribute parsing
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wpas_module_tests.c')
-rw-r--r--wpa_supplicant/wpas_module_tests.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/wpa_supplicant/wpas_module_tests.c b/wpa_supplicant/wpas_module_tests.c
index 48cb06f..4e39024 100644
--- a/wpa_supplicant/wpas_module_tests.c
+++ b/wpa_supplicant/wpas_module_tests.c
@@ -12,6 +12,17 @@
int wpas_module_tests(void)
{
+ int ret = 0;
+
wpa_printf(MSG_INFO, "wpa_supplicant module tests");
- return 0;
+
+#ifdef CONFIG_WPS
+ {
+ int wps_module_tests(void);
+ if (wps_module_tests() < 0)
+ ret = -1;
+ }
+#endif /* CONFIG_WPS */
+
+ return ret;
}