2014-03-31 14:02:47 +02:00
|
|
|
/*
|
2015-02-08 19:19:22 +01:00
|
|
|
* Copyright (C) 2014 Martine Lenders <mlenders@inf.fu-berlin.de>
|
2014-03-31 14:02:47 +02:00
|
|
|
*
|
2014-08-23 15:43:13 +02:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
2014-03-31 14:02:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup unittests
|
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2014-03-31 14:02:47 +02:00
|
|
|
* @brief Unittests for the ``core`` module
|
|
|
|
*
|
|
|
|
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
*/
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef TESTS_CORE_H
|
|
|
|
#define TESTS_CORE_H
|
2014-05-15 00:35:55 +02:00
|
|
|
|
2014-11-27 22:30:14 +01:00
|
|
|
#include "embUnit.h"
|
2014-05-15 00:35:55 +02:00
|
|
|
|
2014-10-10 08:03:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-05-15 00:35:55 +02:00
|
|
|
/**
|
|
|
|
* @brief The entry point of this test suite.
|
|
|
|
*/
|
|
|
|
void tests_core(void);
|
2014-03-31 14:02:47 +02:00
|
|
|
|
|
|
|
/**
|
2014-09-29 18:47:59 +02:00
|
|
|
* @brief Generates tests for atomic.h
|
2014-03-31 14:02:47 +02:00
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_atomic_tests(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Generates tests for bitarithm.h
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_bitarithm_tests(void);
|
|
|
|
|
|
|
|
/**
|
2014-09-29 18:47:59 +02:00
|
|
|
* @brief Generates tests for cib.h
|
2014-03-31 14:02:47 +02:00
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_cib_tests(void);
|
|
|
|
|
|
|
|
/**
|
2014-09-29 18:47:59 +02:00
|
|
|
* @brief Generates tests for clist.h
|
2014-03-31 14:02:47 +02:00
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_clist_tests(void);
|
|
|
|
|
2016-12-14 13:55:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Generates tests for list.h
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_list_tests(void);
|
|
|
|
|
2022-11-22 12:42:16 +01:00
|
|
|
/**
|
|
|
|
* @brief Generates tests for mbox.h
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_mbox_tests(void);
|
|
|
|
|
2014-03-31 14:02:47 +02:00
|
|
|
/**
|
2014-09-29 18:47:59 +02:00
|
|
|
* @brief Generates tests for priority_queue.h
|
2014-03-31 14:02:47 +02:00
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
2014-07-29 09:21:11 +02:00
|
|
|
Test *tests_core_priority_queue_tests(void);
|
2014-03-31 14:02:47 +02:00
|
|
|
|
2014-09-29 13:08:26 +02:00
|
|
|
/**
|
|
|
|
* @brief Generates tests for byteorder.h
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_byteorder_tests(void);
|
|
|
|
|
2014-12-08 10:15:48 +01:00
|
|
|
/**
|
|
|
|
* @brief Generates tests for ringbuffer.h
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_ringbuffer_tests(void);
|
|
|
|
|
2018-05-14 22:27:10 +02:00
|
|
|
/**
|
|
|
|
* @brief Generates tests for xfa.h
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_xfa_tests(void);
|
|
|
|
|
2022-02-24 17:58:26 +01:00
|
|
|
/**
|
|
|
|
* @brief Generates tests for macros
|
|
|
|
*
|
|
|
|
* @return embUnit tests if successful, NULL if not.
|
|
|
|
*/
|
|
|
|
Test *tests_core_macros_tests(void);
|
|
|
|
|
2014-10-10 08:03:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* TESTS_CORE_H */
|
2014-03-31 14:02:47 +02:00
|
|
|
/** @} */
|