Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
b27264b9
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 1 年 前同步成功
通知
456
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b27264b9
编写于
5月 08, 2021
作者:
L
lnlan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add testsuites/kernel to build
Change-Id: Ia14a3413b6c974771cef2e147083c7748abd1c59
上级
6012acb5
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
19 addition
and
14 deletion
+19
-14
Kconfig
Kconfig
+6
-0
kernel/common/los_config.c
kernel/common/los_config.c
+5
-1
testsuites/Makefile
testsuites/Makefile
+0
-1
testsuites/kernel/include/osTest.h
testsuites/kernel/include/osTest.h
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_002.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_002.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_003.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_003.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_026.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_026.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/full/It_los_event_039.c
...rnel/sample/kernel_base/ipc/event/full/It_los_event_039.c
+2
-1
testsuites/kernel/sample/kernel_base/ipc/sem/It_los_sem.c
testsuites/kernel/sample/kernel_base/ipc/sem/It_los_sem.c
+0
-5
testsuites/kernel/src/osTest.c
testsuites/kernel/src/osTest.c
+2
-2
未找到文件。
Kconfig
浏览文件 @
b27264b9
...
...
@@ -322,6 +322,12 @@ menu "Security"
source "../../kernel/liteos_a/security/Kconfig"
endmenu
menu "Test"
config ENABLE_KERNEL_TEST
bool "Enable Kernel Test"
default n
endmenu
menu "Stack Smashing Protector (SSP) Compiler Feature"
choice
...
...
kernel/common/los_config.c
浏览文件 @
b27264b9
...
...
@@ -117,7 +117,6 @@
#include "los_hilog.h"
#endif
STATIC
SystemRebootFunc
g_rebootHook
=
NULL
;
VOID
OsSetRebootHook
(
SystemRebootFunc
func
)
...
...
@@ -373,7 +372,12 @@ STATIC UINT32 OsSystemInitTaskCreate(VOID)
TSK_INIT_PARAM_S
sysTask
;
(
VOID
)
memset_s
(
&
sysTask
,
sizeof
(
TSK_INIT_PARAM_S
),
0
,
sizeof
(
TSK_INIT_PARAM_S
));
#ifndef LOSCFG_ENABLE_KERNEL_TEST
sysTask
.
pfnTaskEntry
=
(
TSK_ENTRY_FUNC
)
SystemInit
;
#else
extern
void
TestSystemInit
(
void
);
sysTask
.
pfnTaskEntry
=
(
TSK_ENTRY_FUNC
)
TestSystemInit
;
#endif
sysTask
.
uwStackSize
=
LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE
;
sysTask
.
pcName
=
"SystemInit"
;
sysTask
.
usTaskPrio
=
LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO
;
...
...
testsuites/Makefile
浏览文件 @
b27264b9
...
...
@@ -92,7 +92,6 @@ $(LITEOS_TEST_LIBC): $(KERNEL)
$(KERNEL)
:
$(LITEOS_TEST_AUTOCONFIG_H)
$(HIDE)$(MAKE)
-C
../ lib
||
exit
1
#echo "LITEOS_CFLAGS :
$(LITEOS_CFLAGS)
"
##### make test menuconfig #####
export
CONFIG_
=
LOSCFG_
...
...
testsuites/kernel/include/osTest.h
浏览文件 @
b27264b9
...
...
@@ -94,7 +94,7 @@ extern "C" {
testTask.pcName = task_name; \
testTask.usTaskPrio = prio; \
testTask.uwResved = LOS_TASK_STATUS_DETACHED; \
} while (0)
} while (0)
;
#if (LOSCFG_KERNEL_SMP == YES)
#define TEST_TASK_PARAM_INIT_AFFI(testTask, task_name, entry, prio, affi) \
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_002.c
浏览文件 @
b27264b9
...
...
@@ -40,7 +40,7 @@ extern "C" {
static
void
TaskF01
(
void
)
{
while
(
1
)
{
W
fi
()
;
W
FI
;
};
}
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_003.c
浏览文件 @
b27264b9
...
...
@@ -40,7 +40,7 @@ extern "C" {
static
void
TaskF01
(
void
)
{
while
(
1
)
{
W
fi
()
;
W
FI
;
};
}
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_026.c
浏览文件 @
b27264b9
...
...
@@ -42,7 +42,7 @@ static void TaskF01(void)
{
LOS_AtomicInc
(
&
g_testCount
);
while
(
1
)
{
W
fi
()
;
W
FI
;
}
}
...
...
testsuites/kernel/sample/kernel_base/ipc/event/full/It_los_event_039.c
浏览文件 @
b27264b9
...
...
@@ -43,7 +43,7 @@ static VOID TaskF01(VOID)
g_testCount
++
;
ret
=
LOS_EventRead
(
&
g_event
,
0x11
,
LOS_WAITMODE_AND
,
2
);
// 2
, The timeout period for reading events.
ret
=
LOS_EventRead
(
&
g_event
,
0x11
,
LOS_WAITMODE_AND
,
2
00
);
// 200
, The timeout period for reading events.
ICUNIT_GOTO_EQUAL
(
ret
,
0
,
ret
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_event
.
uwEventID
,
0
,
g_event
.
uwEventID
,
EXIT
);
...
...
@@ -98,6 +98,7 @@ static UINT32 Testcase(VOID)
LOS_TaskUnlock
();
LOS_TaskDelay
(
1
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/sem/It_los_sem.c
浏览文件 @
b27264b9
...
...
@@ -98,11 +98,6 @@ VOID ItSuiteLosSem(void)
ItLosSem017
();
ItLosSem019
();
ItLosSem020
();
#if (LOSCFG_KERNEL_SMP != YES)
ItLosSem018
();
ItLosSem021
();
ItLosSem025
();
#endif
ItLosSem022
();
ItLosSem023
();
ItLosSem026
();
...
...
testsuites/kernel/src/osTest.c
浏览文件 @
b27264b9
...
...
@@ -294,7 +294,7 @@ VOID TestBusyTaskDelay(UINT32 tick)
if
(
runtime
<=
TestTickCountByCurrCpuid
())
{
break
;
}
W
fi
()
;
W
FI
;
}
}
...
...
@@ -307,7 +307,7 @@ VOID TestAssertBusyTaskDelay(UINT32 timeout, UINT32 flag)
if
((
runtime
<=
TestTickCountGet
())
||
(
g_testCount
==
flag
))
{
break
;
}
W
fi
()
;
W
FI
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录