Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6a3afa70
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看板
未验证
提交
6a3afa70
编写于
11月 29, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6740 【startup_lite】【openharmony:monthly_20221018】L0用例优化,修改不安全函数使用.
Merge pull request !6740 from 南先森/cherry-pick-1669711648
上级
01876538
231192b2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
318 addition
and
246 deletion
+318
-246
startup_lite/syspara_hal/src/deviceinfo_func_test.c
startup_lite/syspara_hal/src/deviceinfo_func_test.c
+318
-246
未找到文件。
startup_lite/syspara_hal/src/deviceinfo_func_test.c
浏览文件 @
6a3afa70
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#define COMMON_ERROR (-1)
#define COMMON_ERROR (-1)
#define INVALID_PARAMETER (-9)
#define INVALID_PARAMETER (-9)
static
const
char
*
g_defSysParam
=
"data of sys param ***..."
;
static
const
char
*
g_defSysParam
=
"data of sys param ***..."
;
/**
/**
* @tc.desc : register a test suite, this suite is used to test basic flow
* @tc.desc : register a test suite, this suite is used to test basic flow
...
@@ -41,7 +41,7 @@ LITE_TEST_SUIT(startup, deviceinfo, DeviceInfoFuncTestSuite);
...
@@ -41,7 +41,7 @@ LITE_TEST_SUIT(startup, deviceinfo, DeviceInfoFuncTestSuite);
*/
*/
static
BOOL
DeviceInfoFuncTestSuiteSetUp
(
void
)
static
BOOL
DeviceInfoFuncTestSuiteSetUp
(
void
)
{
{
return
TRUE
;
return
TRUE
;
}
}
/**
/**
...
@@ -50,8 +50,8 @@ static BOOL DeviceInfoFuncTestSuiteSetUp(void)
...
@@ -50,8 +50,8 @@ static BOOL DeviceInfoFuncTestSuiteSetUp(void)
*/
*/
static
BOOL
DeviceInfoFuncTestSuiteTearDown
(
void
)
static
BOOL
DeviceInfoFuncTestSuiteTearDown
(
void
)
{
{
printf
(
"+--------------------------------------------+
\n
"
);
printf
(
"+--------------------------------------------+
\n
"
);
return
TRUE
;
return
TRUE
;
}
}
/**
/**
...
@@ -61,10 +61,11 @@ static BOOL DeviceInfoFuncTestSuiteTearDown(void)
...
@@ -61,10 +61,11 @@ static BOOL DeviceInfoFuncTestSuiteTearDown(void)
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetDeviceTypeFun001
,
testGetDeviceTypeFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetDeviceType
();
{
printf
(
"Device Type=%s
\n
"
,
value
);
const
char
*
value
=
GetDeviceType
();
AssertNotEmpty
(
value
);
printf
(
"Device Type=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -75,13 +76,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -75,13 +76,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetDeviceTypeFun002
,
testGetDeviceTypeFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetDeviceType
();
{
printf
(
"Device Type=%s
\n
"
,
value
);
const
char
*
value
=
GetDeviceType
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Device Type=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -91,10 +94,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -91,10 +94,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetManufactureFun001
,
testGetManufactureFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetManufacture
();
{
printf
(
"Manufacture=%s
\n
"
,
value
);
const
char
*
value
=
GetManufacture
();
AssertNotEmpty
(
value
);
printf
(
"Manufacture=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -105,13 +109,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -105,13 +109,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetManufactureFun002
,
testGetManufactureFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetManufacture
();
{
printf
(
"Manufacture=%s
\n
"
,
value
);
const
char
*
value
=
GetManufacture
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Manufacture=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -121,10 +127,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -121,10 +127,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBrandFun001
,
testGetBrandFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBrand
();
{
printf
(
"Brand=%s
\n
"
,
value
);
const
char
*
value
=
GetBrand
();
AssertNotEmpty
(
value
);
printf
(
"Brand=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -135,13 +142,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -135,13 +142,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBrandFun002
,
testGetBrandFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBrand
();
{
printf
(
"Brand=%s
\n
"
,
value
);
const
char
*
value
=
GetBrand
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Brand=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -151,10 +160,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -151,10 +160,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetMarketNameFun001
,
testGetMarketNameFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetMarketName
();
{
printf
(
"Market Name=%s
\n
"
,
value
);
const
char
*
value
=
GetMarketName
();
AssertNotEmpty
(
value
);
printf
(
"Market Name=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -165,13 +175,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -165,13 +175,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetMarketNameFun002
,
testGetMarketNameFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetMarketName
();
{
printf
(
"Market Name=%s
\n
"
,
value
);
const
char
*
value
=
GetMarketName
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Market Name=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -181,10 +193,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -181,10 +193,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetProductSeriesFun001
,
testGetProductSeriesFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetProductSeries
();
{
printf
(
"Product Series=%s
\n
"
,
value
);
const
char
*
value
=
GetProductSeries
();
AssertNotEmpty
(
value
);
printf
(
"Product Series=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -195,13 +208,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -195,13 +208,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetProductSeriesFun002
,
testGetProductSeriesFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetProductSeries
();
{
printf
(
"Product Series=%s
\n
"
,
value
);
const
char
*
value
=
GetProductSeries
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Product Series=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -211,10 +226,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -211,10 +226,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetProductModelFun001
,
testGetProductModelFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetProductModel
();
{
printf
(
"Product Model=%s
\n
"
,
value
);
const
char
*
value
=
GetProductModel
();
AssertNotEmpty
(
value
);
printf
(
"Product Model=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -225,13 +241,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -225,13 +241,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetProductModelFun002
,
testGetProductModelFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetProductModel
();
{
printf
(
"Product Model=%s
\n
"
,
value
);
const
char
*
value
=
GetProductModel
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Product Model=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -241,10 +259,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -241,10 +259,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetHardwareModel001
,
testGetHardwareModel001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetHardwareModel
();
{
printf
(
"Hardware Model=%s
\n
"
,
value
);
const
char
*
value
=
GetHardwareModel
();
AssertNotEmpty
(
value
);
printf
(
"Hardware Model=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -255,13 +274,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -255,13 +274,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetHardwareModel002
,
testGetHardwareModel002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetHardwareModel
();
{
printf
(
"Hardware Model=%s
\n
"
,
value
);
const
char
*
value
=
GetHardwareModel
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Hardware Model=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -271,10 +292,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -271,10 +292,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSerialFun001
,
testGetSerialFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSerial
();
{
printf
(
"Serial=%s
\n
"
,
value
);
const
char
*
value
=
GetSerial
();
AssertNotEmpty
(
value
);
printf
(
"Serial=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -285,13 +307,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -285,13 +307,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSerialFun002
,
testGetSerialFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSerial
();
{
printf
(
"Serial=%s
\n
"
,
value
);
const
char
*
value
=
GetSerial
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Serial=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
}
};
};
/**
/**
...
@@ -301,10 +325,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -301,10 +325,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetOSFullNameFun001
,
testGetOSFullNameFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetOSFullName
();
{
printf
(
"Os Name=%s
\n
"
,
value
);
const
char
*
value
=
GetOSFullName
();
AssertNotEmpty
(
value
);
printf
(
"Os Name=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -315,13 +340,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -315,13 +340,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetOSFullNameFun002
,
testGetOSFullNameFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetOSFullName
();
{
printf
(
"Os Name=%s
\n
"
,
value
);
const
char
*
value
=
GetOSFullName
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Os Name=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
}
};
};
/**
/**
...
@@ -331,10 +358,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -331,10 +358,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetDisplayVersionFun001
,
testGetDisplayVersionFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetDisplayVersion
();
{
printf
(
"Display Version=%s
\n
"
,
value
);
const
char
*
value
=
GetDisplayVersion
();
AssertNotEmpty
(
value
);
printf
(
"Display Version=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -345,13 +373,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -345,13 +373,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetDisplayVersionFun002
,
testGetDisplayVersionFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetDisplayVersion
();
{
printf
(
"Display Version=%s
\n
"
,
value
);
const
char
*
value
=
GetDisplayVersion
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Display Version=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
}
};
};
/**
/**
...
@@ -361,10 +391,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -361,10 +391,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBootloaderVersionFun001
,
testGetBootloaderVersionFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBootloaderVersion
();
{
printf
(
"Bootloader Version=%s
\n
"
,
value
);
const
char
*
value
=
GetBootloaderVersion
();
AssertNotEmpty
(
value
);
printf
(
"Bootloader Version=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -375,13 +406,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -375,13 +406,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBootloaderVersionFun002
,
testGetBootloaderVersionFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBootloaderVersion
();
{
printf
(
"Bootloader Version=%s
\n
"
,
value
);
const
char
*
value
=
GetBootloaderVersion
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Bootloader Version=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
}
};
};
/**
/**
...
@@ -391,10 +424,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -391,10 +424,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSecurityPatchTagFun001
,
testGetSecurityPatchTagFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSecurityPatchTag
();
{
printf
(
"Secure Patch Level=%s
\n
"
,
value
);
const
char
*
value
=
GetSecurityPatchTag
();
AssertNotEmpty
(
value
);
printf
(
"Secure Patch Level=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -405,13 +439,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -405,13 +439,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSecurityPatchTagFun002
,
testGetSecurityPatchTagFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSecurityPatchTag
();
{
printf
(
"Secure Patch Level=%s
\n
"
,
value
);
const
char
*
value
=
GetSecurityPatchTag
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Secure Patch Level=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
}
};
};
/**
/**
...
@@ -422,22 +458,32 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -422,22 +458,32 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSecurityPatchTagFun003
,
testGetSecurityPatchTagFun003
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSecurityPatchTag
();
{
printf
(
"Secure Patch Level=%s
\n
"
,
value
);
const
char
*
value
=
GetSecurityPatchTag
();
printf
(
"Secure Patch Level=%s
\n
"
,
value
);
int
year
,
month
,
day
;
int
year
,
month
,
day
;
sscanf
(
value
,
"%04d-%02d-%02d"
,
&
year
,
&
month
,
&
day
);
const
int
RET_SUCCESS
=
0
;
printf
(
"%04d-%02d-%02d
\n
"
,
year
,
month
,
day
);
int
ret
=
sscanf_s
(
value
,
"%04d-%02d-%02d"
,
&
year
,
&
month
,
&
day
);
if
(
ret
<
RET_SUCCESS
)
{
TEST_ASSERT_TRUE
(
ret
>=
0
);
}
printf
(
"%04d-%02d-%02d
\n
"
,
year
,
month
,
day
);
TEST_ASSERT_TRUE
(
year
>
1900
&&
year
<
2056
);
TEST_ASSERT_TRUE
(
year
>
1900
&&
year
<
2056
);
TEST_ASSERT_TRUE
(
month
<=
12
&&
month
>
0
);
TEST_ASSERT_TRUE
(
month
<=
12
&&
month
>
0
);
TEST_ASSERT_TRUE
(
day
<=
31
&&
day
>
0
);
TEST_ASSERT_TRUE
(
day
<=
31
&&
day
>
0
);
char
str
[
10
]
=
{
0
};
char
str
[
10
]
=
{
0
};
sprintf
(
str
,
"%d-%02d-%02d"
,
year
,
month
,
day
);
ret
=
sprintf_s
(
str
,
strlen
(
str
),
"%d-%02d-%02d"
,
year
,
month
,
day
);
printf
(
"str=%s
\n
"
,
str
);
if
(
ret
<
RET_SUCCESS
)
TEST_ASSERT_EQUAL_STRING
(
str
,
value
);
{
TEST_ASSERT_TRUE
(
ret
>=
0
);
}
printf
(
"str=%s
\n
"
,
str
);
TEST_ASSERT_EQUAL_STRING
(
str
,
value
);
};
};
/**
/**
...
@@ -447,10 +493,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -447,10 +493,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetAbiListFun001
,
testGetAbiListFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetAbiList
();
{
printf
(
"Abi List=%s
\n
"
,
value
);
const
char
*
value
=
GetAbiList
();
AssertNotEmpty
(
value
);
printf
(
"Abi List=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -461,13 +508,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -461,13 +508,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetAbiListFun002
,
testGetAbiListFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetAbiList
();
{
printf
(
"Abi List=%s
\n
"
,
value
);
const
char
*
value
=
GetAbiList
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Abi List=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
64
);
}
};
};
/**
/**
...
@@ -477,10 +526,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -477,10 +526,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSdkApiVersionFun001
,
testGetSdkApiVersionFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
int
value
=
GetSdkApiVersion
();
{
printf
(
"Sdk Api Level=%d
\n
"
,
value
);
int
value
=
GetSdkApiVersion
();
TEST_ASSERT_TRUE
(
value
>
0
);
printf
(
"Sdk Api Level=%d
\n
"
,
value
);
TEST_ASSERT_TRUE
(
value
>
0
);
};
};
/**
/**
...
@@ -490,10 +540,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -490,10 +540,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetFirstApiVersionFun001
,
testGetFirstApiVersionFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
int
value
=
GetFirstApiVersion
();
{
printf
(
"First Api Level=%d
\n
"
,
value
);
int
value
=
GetFirstApiVersion
();
TEST_ASSERT_TRUE
(
value
>
0
);
printf
(
"First Api Level=%d
\n
"
,
value
);
TEST_ASSERT_TRUE
(
value
>
0
);
};
};
/**
/**
...
@@ -503,10 +554,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -503,10 +554,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetIncrementalVersionFun001
,
testGetIncrementalVersionFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetIncrementalVersion
();
{
printf
(
"Incremental Version=%s
\n
"
,
value
);
const
char
*
value
=
GetIncrementalVersion
();
AssertNotEmpty
(
value
);
printf
(
"Incremental Version=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -516,10 +568,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -516,10 +568,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetVersionIdFun001
,
testGetVersionIdFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetVersionId
();
{
printf
(
"Version Id=%s
\n
"
,
value
);
const
char
*
value
=
GetVersionId
();
AssertNotEmpty
(
value
);
printf
(
"Version Id=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -530,13 +583,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -530,13 +583,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetVersionIdFun002
,
testGetVersionIdFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetVersionId
();
{
printf
(
"Version Id=%s
\n
"
,
value
);
const
char
*
value
=
GetVersionId
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Version Id=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
127
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
127
);
}
};
};
/**
/**
...
@@ -546,10 +601,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -546,10 +601,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildTypeFun001
,
testGetBuildTypeFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildType
();
{
printf
(
"Build Type=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildType
();
AssertNotEmpty
(
value
);
printf
(
"Build Type=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -560,13 +616,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -560,13 +616,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildTypeFun002
,
testGetBuildTypeFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildType
();
{
printf
(
"Build Type=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildType
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Build Type=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -576,10 +634,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -576,10 +634,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildUserFun001
,
testGetBuildUserFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildUser
();
{
printf
(
"Build User=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildUser
();
AssertNotEmpty
(
value
);
printf
(
"Build User=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -590,13 +649,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -590,13 +649,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildUserFun002
,
testGetBuildUserFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildUser
();
{
printf
(
"Build User=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildUser
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Build User=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -606,10 +667,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -606,10 +667,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildHostFun001
,
testGetBuildHostFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildHost
();
{
printf
(
"Build Host=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildHost
();
AssertNotEmpty
(
value
);
printf
(
"Build Host=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -620,13 +682,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -620,13 +682,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildHostFun002
,
testGetBuildHostFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildHost
();
{
printf
(
"Build Host=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildHost
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Build Host=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -636,10 +700,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -636,10 +700,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildTimeFun001
,
testGetBuildTimeFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildTime
();
{
printf
(
"Build Time=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildTime
();
AssertNotEmpty
(
value
);
printf
(
"Build Time=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -650,13 +715,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -650,13 +715,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildTimeFun002
,
testGetBuildTimeFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildTime
();
{
printf
(
"Build Time=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildTime
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Build Time=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -666,10 +733,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -666,10 +733,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSoftwareModelFun001
,
testGetSoftwareModelFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSoftwareModel
();
{
printf
(
"Software Model=%s
\n
"
,
value
);
const
char
*
value
=
GetSoftwareModel
();
AssertNotEmpty
(
value
);
printf
(
"Software Model=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
/**
/**
...
@@ -680,13 +748,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -680,13 +748,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetSoftwareModelFun002
,
testGetSoftwareModelFun002
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetSoftwareModel
();
{
printf
(
"Software Model=%s
\n
"
,
value
);
const
char
*
value
=
GetSoftwareModel
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Software Model=%s
\n
"
,
value
);
if
(
value
!=
NULL
)
{
TEST_ASSERT_NOT_NULL
(
value
);
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
if
(
value
!=
NULL
)
}
{
TEST_ASSERT_TRUE
(
strlen
(
value
)
<=
32
);
}
};
};
/**
/**
...
@@ -696,10 +766,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -696,10 +766,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetBuildRootHashFun001
,
testGetBuildRootHashFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetBuildRootHash
();
{
printf
(
"Build Root Hash=%s
\n
"
,
value
);
const
char
*
value
=
GetBuildRootHash
();
TEST_ASSERT_NOT_NULL
(
value
);
printf
(
"Build Root Hash=%s
\n
"
,
value
);
TEST_ASSERT_NOT_NULL
(
value
);
};
};
/**
/**
...
@@ -709,10 +780,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
...
@@ -709,10 +780,11 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
*/
*/
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
LITE_TEST_CASE
(
DeviceInfoFuncTestSuite
,
testGetHardwareProfileFun001
,
testGetHardwareProfileFun001
,
Function
|
MediumTest
|
Level1
)
{
Function
|
MediumTest
|
Level1
)
const
char
*
value
=
GetHardwareProfile
();
{
printf
(
"Hardware Profile=%s
\n
"
,
value
);
const
char
*
value
=
GetHardwareProfile
();
AssertNotEmpty
(
value
);
printf
(
"Hardware Profile=%s
\n
"
,
value
);
AssertNotEmpty
(
value
);
};
};
RUN_TEST_SUITE
(
DeviceInfoFuncTestSuite
);
RUN_TEST_SUITE
(
DeviceInfoFuncTestSuite
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录