tests: Declare module test functions in a header file

This gets rid of number of warnings from sparse.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2016-06-23 18:19:00 +03:00 committed by Jouni Malinen
parent 3e624369cb
commit 50a17a76e1
9 changed files with 36 additions and 22 deletions

View file

@ -9,6 +9,7 @@
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/module_tests.h"
#include "ieee802_11_common.h"
#include "ieee802_11_defs.h"
#include "gas.h"

View file

@ -9,6 +9,7 @@
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/module_tests.h"
#include "crypto/aes_siv.h"
#include "crypto/aes_wrap.h"
#include "crypto/aes.h"

20
src/utils/module_tests.h Normal file
View file

@ -0,0 +1,20 @@
/*
* Module tests
* Copyright (c) 2014-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef MODULE_TESTS_H
#define MODULE_TESTS_H
int wpas_module_tests(void);
int hapd_module_tests(void);
int utils_module_tests(void);
int wps_module_tests(void);
int common_module_tests(void);
int crypto_module_tests(void);
#endif /* MODULE_TESTS_H */

View file

@ -16,6 +16,7 @@
#include "utils/base64.h"
#include "utils/ip_addr.h"
#include "utils/eloop.h"
#include "utils/module_tests.h"
struct printf_test_data {

View file

@ -9,6 +9,7 @@
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/module_tests.h"
#include "wps_attr_parse.h"
struct wps_attr_parse_test {