Commit Graph

74 Commits

Author SHA1 Message Date
MurphyZhao 0dc7b9a5a2 [components][utest] utest 延时启动
在使用 utest 的线程模式的时候,utest_run 命令执行完成后,finsh 会输出 `msh >`,干扰了 utest 内部的日志结构,因此默认在 utest 启动前增加延时。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-14 12:03:29 +08:00
MurphyZhao 82f022f6f0 [components][utest] 增加 utest 线程模式
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-13 14:37:08 +08:00
Bernard Xiong 14fd4e34a9
Merge pull request #2249 from PiscesLyn/patch-2
ymodem support multiple files transmission
2019-01-30 09:12:40 +08:00
MurphyZhao 655c4ad36b [component][utest] 增加 utest 日志输出级别配置,提供 ASSERT 和 ALL 两个级别,便于测试用例控制 log 输出
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-25 17:25:29 +08:00
MurphyZhao f9e5d87c98 [components][utest] 将 utest_assert.h 加入 utest.h,以后测试用例仅需要包含 utest.h
[components][utest] 增加 buf 类型的字节比较 assert 宏
[components][utest] 修复错误日志打印的输出类型为 ERR 级别

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-22 15:46:12 +08:00
Lyn 626d0e9e06
ymodem support multiple files transmission 2019-01-22 13:58:59 +08:00
MurphyZhao 5ea985d0fb [components][utilities/ulog] 修改 ulog_console_backend_init 从 `INIT_COMPONENT_EXPORT` 修改为 `INIT_PREV_EXPORT` 级别的自动初始化,与 ulog_init 同级
目的是为了组件初始化中的其他模块可以使用 ulog 输出日志。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-04 18:59:51 +08:00
朱天龙 (Armink) c7daacc96f
[component][ulog] Fix the ulog_strcpy function. 2019-01-03 15:31:04 +08:00
Bernard Xiong dcf7bce2cc
Merge pull request #2041 from zhaojuntao/utest-dev
[components][utilities] 增加 utest(单元测试框架)
2018-12-12 12:55:36 +08:00
MurphyZhao bce7f85907 [components/utilities/utest] 移除不那么必要的日志接口 redefine
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-08 15:01:08 +08:00
MurphyZhao 98b10877e7 [components/utilities/utest] 修复 gcc 编译警告
[components/utilities/utest] 移除组件的版本号
[components/utilities/utest] 优化 basename 函数的处理

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-08 14:48:54 +08:00
MurphyZhao 51b17a15e4 [components/utilities/utest] 完善代码,增加注释
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-06 18:59:13 +08:00
MurphyZhao 8824b2ca77 [components/utilities] [Kconfig] 增加 kconfig RT_USING_UTEST 配置
[components/utilities] [utest] 增加 testcase 运行超时时间参数

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-06 17:13:14 +08:00
MurphyZhao 0759b66eb9 【更新】components/utilities/utest 增加 SConscript depend
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-05 18:07:03 +08:00
MurphyZhao 1ecf6cbc7c 【更新】utest gcc 链接符
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-05 14:53:37 +08:00
HubretXie 81cd4d4f4b
Update ulog.h
增加LOG_HEX
2018-12-04 09:10:52 +08:00
HubretXie fa06299637
Update ulog_def.h
增加log_hex
2018-12-04 09:09:58 +08:00
MurphyZhao 85d275b399 [components/utilities][add] 增加测试框架 utest 代码
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-30 16:13:17 +08:00
Dahua1992 0df270bfc5
add #include <sys/time.h>
原因tm = gmtime_r(&now, &tm_tmp);报错
2018-11-13 10:55:05 +08:00
Dahua1992 c71828fb33
add #include <sys/time.h>
原因 tm = gmtime_r(&now, &tm_tmp);报错
2018-11-13 10:22:53 +08:00
armink 106e6b77b2 [component][ulog] Fix a input parameter check error. 2018-11-10 09:49:21 +08:00
armink f28b9d83f7 [component][ulog] Fix a compile error when timestamp is enable. 2018-11-09 17:31:40 +08:00
armink acfe61b501 [component][ulog] Fix some comments. 2018-11-09 09:19:44 +08:00
armink 6a165e5cb1 [component][ulog] Update version to 0.1.1 . 2018-11-08 11:27:18 +08:00
armink c990f0a026 [component][ulog] Add tag filter to hexdump function. 2018-11-08 11:23:03 +08:00
armink 2ff67c932f [component][ulog] Add show filter settings shell command 'ulog_filter'. 2018-11-08 11:22:02 +08:00
armink ad602f5b90 [component][ulog] Add filter get API. 2018-11-08 11:20:42 +08:00
armink 2fe79faf3d [component][ulog] Fix a memory leak problem. 2018-11-08 10:59:25 +08:00
armink 4e6f13e0da [component] fix Kconfig warning in at and ulog. 2018-11-06 11:41:44 +08:00
armink 9ceecb4d95 [component][ulog] Update ulog hexdump format. 2018-11-01 19:39:08 +08:00
armink c336099a93 [component][ulog] Reduce thread stack usage when using ulog. 2018-11-01 14:51:50 +08:00
armink e588dfa633 [component][ulog] Add newline param for ulog_output API. 2018-10-31 10:54:12 +08:00
armink 12a803bcc9 [component] Add ulog logger basic component. 2018-10-30 09:11:42 +08:00
Bernard Xiong 8c1c6516b3 [Components] Change license to Apache License v2.0 2018-10-29 11:06:58 +08:00
Bernard Xiong 9064b28c2a [license] Change license to Apache. 2018-10-14 19:28:18 +08:00
MurphyZhao dcbbb05f50 [components][ymodem] 修复 ymodem 不支持 secureCRT 下 1024字节传输的问题
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-09-06 11:02:49 +08:00
MurphyZhao 3b161b58f2 [component][ymodem] Fix compilation warning in MDK
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-08-23 17:23:03 +08:00
Bernard Xiong 884fb70fe9 [Kernel] Add device ops feature. 2018-06-10 17:59:17 +08:00
bernard b07bd6c515 [Utilities] Add more options for logtrace. 2017-12-29 22:52:38 +08:00
armink fde3d6bc10 [Kconfig] Add utilities Kconfig. 2017-12-02 23:16:45 +08:00
Bernard Xiong 85b17e9158 [logtrace] change the type of cmd to 'int' 2017-11-01 13:38:10 +08:00
bernard 5e3b3b19a6 [BSP] change the type of cmd.
1. Change the type of cmd to 'int';
2. Remove RT_LWIP_USING_RT_MEM macro;
2017-10-16 13:23:03 +08:00
emlslxl 3007b34ad3 add log_file flush function 2017-08-04 12:46:23 +08:00
Bernard Xiong d6cb1e3465 [Util] Add logtrace into components auto-initialization 2015-06-25 17:11:40 +08:00
Bernard Xiong 4373ef2e26 [Utilities] Change the log_trace_init to auto init. 2015-05-05 10:43:15 +08:00
Grissiom d479960aac ymodem: fix a race-condition in handshaking
As we are sending C continuously, there is a chance that the
sender(remote) receive an C after sending the first handshake package.
So the sender will interpret it as NAK and re-send the package. So we
just ignore it and proceed.
2014-12-26 22:20:17 +08:00
armink 762f18d743 [Ymodem]Change tabs to space. 2014-09-14 14:52:00 +08:00
armink 987532967f [Ymodem]Change macro definition and code format. 2014-09-14 14:44:48 +08:00
armink 7121697a71 [Ymodem]Add device open flag as input parameter to ymodem function. 2014-09-13 11:22:01 +08:00
armink ed57c7c32a [Ymodem]When active end the session, It can config send CAN number. 2014-09-13 11:15:48 +08:00