Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4e5a7145
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4e5a7145
编写于
8月 16, 2021
作者:
C
chensiming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Signed-off-by:chensiming<chensiming3@huawei.com>
Signed-off-by:
N
chensiming
<
1067037310@qq.com
>
上级
eadc7d37
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
24 deletion
+29
-24
startup_lite/syspara_hal/src/parameter_func_test.c
startup_lite/syspara_hal/src/parameter_func_test.c
+6
-1
startup_lite/syspara_hal/src/parameter_reli_test.c
startup_lite/syspara_hal/src/parameter_reli_test.c
+23
-23
未找到文件。
startup_lite/syspara_hal/src/parameter_func_test.c
浏览文件 @
4e5a7145
...
...
@@ -166,7 +166,12 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testObtainSysPara009, Function | MediumTe
{
char
*
value
=
GetSerial
();
printf
(
"Serial=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
if
(
value
==
NULL
)
{
printf
(
"The serial number needs to be written
\n
"
);
TEST_IGNORE
();
}
else
{
TEST_ASSERT_EQUAL_INT
(
1
,
1
);
}
free
(
value
);
};
...
...
startup_lite/syspara_hal/src/parameter_reli_test.c
浏览文件 @
4e5a7145
...
...
@@ -56,7 +56,7 @@ static BOOL ParameterReliTestSuiteTearDown(void)
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli001
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetProductType
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetProductType
();
...
...
@@ -76,7 +76,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli001, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli002
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetManufacture
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetManufacture
();
...
...
@@ -96,7 +96,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli002, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli003
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBrand
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBrand
();
...
...
@@ -116,7 +116,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli003, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli004
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetMarketName
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetMarketName
();
...
...
@@ -136,7 +136,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli004, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli005
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetProductSeries
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetProductSeries
();
...
...
@@ -156,7 +156,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli005, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli006
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetProductModel
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetProductModel
();
...
...
@@ -176,7 +176,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli006, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli007
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetHardwareModel
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetHardwareModel
();
...
...
@@ -196,7 +196,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli007, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli008
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetHardwareProfile
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetHardwareProfile
();
...
...
@@ -239,7 +239,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli009, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli010
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetOsName
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetOsName
();
...
...
@@ -259,7 +259,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli010, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli011
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetDisplayVersion
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetDisplayVersion
();
...
...
@@ -279,7 +279,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli011, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli012
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBootloaderVersion
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBootloaderVersion
();
...
...
@@ -299,7 +299,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli012, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli013
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetSecurityPatchTag
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetSecurityPatchTag
();
...
...
@@ -319,7 +319,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli013, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli014
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetAbiList
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetAbiList
();
...
...
@@ -339,7 +339,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli014, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli015
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetFirstApiLevel
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetFirstApiLevel
();
...
...
@@ -359,7 +359,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli015, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli016
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetIncrementalVersion
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetIncrementalVersion
();
...
...
@@ -379,7 +379,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli016, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli017
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetVersionId
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetVersionId
();
...
...
@@ -399,7 +399,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli017, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli018
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBuildType
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBuildType
();
...
...
@@ -419,7 +419,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli018, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli019
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBuildUser
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBuildUser
();
...
...
@@ -439,7 +439,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli019, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli020
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBuildHost
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBuildHost
();
...
...
@@ -459,7 +459,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli020, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli021
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBuildTime
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBuildTime
();
...
...
@@ -479,7 +479,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli021, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli022
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetBuildRootHash
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetBuildRootHash
();
...
...
@@ -499,7 +499,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli022, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli023
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetSoftwareModel
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetSoftwareModel
();
...
...
@@ -519,7 +519,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli023, Function | Medi
LITE_TEST_CASE
(
ParameterReliTestSuite
,
testObtainSysParaReli024
,
Function
|
MediumTest
|
Level1
)
{
char
*
value1
=
GetSdkApiLevel
();
Is
Empty
(
value1
);
AssertNot
Empty
(
value1
);
for
(
int
i
=
0
;
i
<
QUERY_TIMES
;
i
++
)
{
char
*
value
=
GetSdkApiLevel
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录