2018-11-30 16:12:35 +08:00
|
|
|
/*
|
2021-03-08 18:19:04 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-11-30 16:12:35 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018-11-19 MurphyZhao the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UTEST_LOG_H__
|
|
|
|
#define __UTEST_LOG_H__
|
|
|
|
|
2019-01-25 17:24:01 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
|
2018-11-30 16:12:35 +08:00
|
|
|
#define UTEST_DEBUG
|
|
|
|
|
2019-04-12 10:18:57 +08:00
|
|
|
#undef DBG_TAG
|
|
|
|
#undef DBG_LVL
|
2018-11-30 16:12:35 +08:00
|
|
|
|
2019-04-12 10:18:57 +08:00
|
|
|
#define DBG_TAG "testcase"
|
2018-11-30 16:12:35 +08:00
|
|
|
#ifdef UTEST_DEBUG
|
2019-04-12 10:18:57 +08:00
|
|
|
#define DBG_LVL DBG_LOG
|
2018-11-30 16:12:35 +08:00
|
|
|
#else
|
2019-04-12 10:18:57 +08:00
|
|
|
#define DBG_LVL DBG_INFO
|
2018-11-30 16:12:35 +08:00
|
|
|
#endif
|
|
|
|
#include <rtdbg.h>
|
|
|
|
|
2019-01-25 17:24:01 +08:00
|
|
|
#define UTEST_LOG_ALL (1u)
|
|
|
|
#define UTEST_LOG_ASSERT (2u)
|
|
|
|
|
|
|
|
void utest_log_lv_set(rt_uint8_t lv);
|
|
|
|
|
2018-11-30 16:12:35 +08:00
|
|
|
#endif /* __UTEST_LOG_H__ */
|