path: root/wpa_supplicant/wpas_module_tests.c
diff options
authorJouni Malinen <j@w1.fi>2014-02-20 22:14:30 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-21 11:08:08 (GMT)
commitea449b5bfee82892f526fe5ace8d31c32d57809c (patch)
tree95dbdc0c44b995b8a4e5a352fdfae3f3e7a946d9 /wpa_supplicant/wpas_module_tests.c
parentda179bd0e12d6a7b1e5f85a3bec5d1b6ec3c8e1f (diff)
tests: Add a module test integration to hwsim tests
CONFIG_MODULE_TESTS=y build option can now be used to build in module tests into hostapd and wpa_supplicant binaries. These test cases will be used to get better testing coverage for various details that are difficult to test otherwise through the control interface control. A single control interface command is used to executed these tests within the hwsim test framework. This commit adds just the new mechanism, but no module tests are yet integrated into this mechanism. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wpas_module_tests.c')
1 files changed, 17 insertions, 0 deletions
diff --git a/wpa_supplicant/wpas_module_tests.c b/wpa_supplicant/wpas_module_tests.c
new file mode 100644
index 0000000..48cb06f
--- /dev/null
+++ b/wpa_supplicant/wpas_module_tests.c
@@ -0,0 +1,17 @@
+ * wpa_supplicant module tests
+ * Copyright (c) 2014, Jouni Malinen <j@w1.fi>
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+#include "utils/includes.h"
+#include "utils/common.h"
+int wpas_module_tests(void)
+ wpa_printf(MSG_INFO, "wpa_supplicant module tests");
+ return 0;