2014-04-07 15:15:25 +02:00
|
|
|
/*
|
2015-02-08 19:19:22 +01:00
|
|
|
* Copyright (C) 2014 Martine Lenders <mlenders@inf.fu-berlin.de>
|
2014-04-07 15:15:25 +02:00
|
|
|
*
|
2014-07-31 19:45:27 +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-04-07 15:15:25 +02:00
|
|
|
*/
|
|
|
|
|
2014-05-14 12:21:20 +02:00
|
|
|
#include "map.h"
|
2014-04-07 15:15:25 +02:00
|
|
|
|
2014-11-27 22:30:14 +01:00
|
|
|
#include "embUnit.h"
|
2015-10-15 17:30:13 +02:00
|
|
|
#include "xtimer.h"
|
2021-12-03 16:27:51 +01:00
|
|
|
#include "ztimer.h"
|
2014-04-07 15:15:25 +02:00
|
|
|
|
2019-10-10 01:10:41 +02:00
|
|
|
#include "test_utils/interactive_sync.h"
|
|
|
|
|
2014-05-14 12:21:20 +02:00
|
|
|
#define UNCURRY(FUN, ARGS) FUN(ARGS)
|
|
|
|
#define RUN_TEST_SUITES(...) MAP(RUN_TEST_SUITE, __VA_ARGS__)
|
|
|
|
#define RUN_TEST_SUITE(TEST_SUITE) \
|
|
|
|
do { \
|
|
|
|
extern void tests_##TEST_SUITE(void); \
|
|
|
|
tests_##TEST_SUITE(); \
|
|
|
|
} while (0);
|
|
|
|
|
2014-04-07 15:15:25 +02:00
|
|
|
int main(void)
|
|
|
|
{
|
2019-10-10 01:10:41 +02:00
|
|
|
test_utils_interactive_sync();
|
|
|
|
|
2021-12-03 16:27:51 +01:00
|
|
|
#if MODULE_ZTIMER_USEC || MODULE_ZTIMER_MSEC || MODULE_ZTIMER_SEC
|
|
|
|
/* auto_init is disabled, but some modules depends on this module being initialized */
|
|
|
|
ztimer_init();
|
|
|
|
#endif
|
|
|
|
|
2022-07-25 13:54:59 +02:00
|
|
|
#if MODULE_ZTIMER64_USEC || MODULE_ZTIMER64_MSEC || MODULE_ZTIMER64_SEC
|
|
|
|
/* auto_init is disabled, but some modules depends on this module being initialized */
|
|
|
|
ztimer64_init();
|
|
|
|
#endif
|
|
|
|
|
2022-07-18 14:18:33 +02:00
|
|
|
#if IS_USED(MODULE_XTIMER) && !IS_USED(MODULE_ZTIMER_XTIMER_COMPAT)
|
2015-10-15 17:30:13 +02:00
|
|
|
/* auto_init is disabled, but some modules depends on this module being initialized */
|
|
|
|
xtimer_init();
|
|
|
|
#endif
|
|
|
|
|
2014-04-07 15:15:25 +02:00
|
|
|
#ifdef OUTPUT
|
|
|
|
TextUIRunner_setOutputter(OUTPUTTER);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
TESTS_START();
|
2014-05-14 12:21:20 +02:00
|
|
|
#ifndef NO_TEST_SUITES
|
|
|
|
UNCURRY(RUN_TEST_SUITES, TEST_SUITES)
|
|
|
|
#endif
|
2014-04-07 15:15:25 +02:00
|
|
|
TESTS_END();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|