Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2eeff863
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看板
提交
2eeff863
编写于
4月 01, 2021
作者:
S
stesen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix typo
上级
43b58e76
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
50 addition
and
51 deletion
+50
-51
build_lite/BUILD.gn
build_lite/BUILD.gn
+2
-0
hiviewdfx_lite/hilog_hal/BUILD.gn
hiviewdfx_lite/hilog_hal/BUILD.gn
+5
-7
hiviewdfx_lite/hilog_hal/src/dfx_hilog.c
hiviewdfx_lite/hilog_hal/src/dfx_hilog.c
+0
-1
hiviewdfx_lite/hilog_posix/src/HilogTest.cpp
hiviewdfx_lite/hilog_posix/src/HilogTest.cpp
+43
-43
未找到文件。
build_lite/BUILD.gn
浏览文件 @
2eeff863
...
@@ -40,6 +40,7 @@ lite_component("acts_component") {
...
@@ -40,6 +40,7 @@ lite_component("acts_component") {
"//test/xts/acts/kernel_lite/kernelcmsis_hal:ActsCMSISTest",
"//test/xts/acts/kernel_lite/kernelcmsis_hal:ActsCMSISTest",
"//test/xts/acts/utils_lite/kvstore_hal:ActsKvStoreTest",
"//test/xts/acts/utils_lite/kvstore_hal:ActsKvStoreTest",
"//test/xts/acts/security_lite/datahuks_hal:ActsSecurityDataTest",
"//test/xts/acts/security_lite/datahuks_hal:ActsSecurityDataTest",
"//test/xts/acts/hiviewdfx_lite/hilog_hal:ActsDfxFuncTest",
"//test/xts/acts/distributed_schedule_lite/samgr_hal:ActsSamgrTest",
"//test/xts/acts/distributed_schedule_lite/samgr_hal:ActsSamgrTest",
"//test/xts/acts/update_lite/updater_hal:ActsUpdaterFuncTest",
"//test/xts/acts/update_lite/updater_hal:ActsUpdaterFuncTest",
...
@@ -59,6 +60,7 @@ lite_component("acts_component") {
...
@@ -59,6 +60,7 @@ lite_component("acts_component") {
#"//test/xts/acts/distributedschedule_lite/dtbschedmgr_posix:ActsDMSTest",
#"//test/xts/acts/distributedschedule_lite/dtbschedmgr_posix:ActsDMSTest",
"//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest",
"//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest",
"//test/xts/acts/hiviewdfx_lite/hilog_posix:ActsHilogTest",
"//test/xts/acts/multimedia_lite/multimedia_posix/recorder:ActsMediaRecorderTest",
"//test/xts/acts/multimedia_lite/multimedia_posix/recorder:ActsMediaRecorderTest",
"//test/xts/acts/graphic_lite:uikit_test",
"//test/xts/acts/graphic_lite:uikit_test",
...
...
hiviewdfx_lite/hilog_hal/BUILD.gn
浏览文件 @
2eeff863
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import("//test/xts/tools/build/suite_lite.gni")
import("//test/xts/tools/
lite/
build/suite_lite.gni")
hctest_suite("ActsDfxFuncTest") {
hctest_suite("ActsDfxFuncTest") {
suite_name = "acts"
suite_name = "acts"
sources = [
sources = [
...
@@ -20,12 +20,10 @@ hctest_suite("ActsDfxFuncTest") {
...
@@ -20,12 +20,10 @@ hctest_suite("ActsDfxFuncTest") {
include_dirs = [
include_dirs = [
"src",
"src",
"//base/hiviewdfx/interfaces/kits/hilog_lite",
"//base/hiviewdfx/hiview_lite",
"//base/hiviewdfx/interfaces/innerkits/hievent_lite",
"//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite",
"//base/hiviewdfx/utils/lite",
"//base/hiviewdfx/hievent_lite/interfaces/native/innerkits",
"//base/hiviewdfx/frameworks/hievent_lite",
"//base/hiviewdfx/hilog_lite/frameworks/mini",
"//base/hiviewdfx/frameworks/hilog_lite/mini",
"//base/hiviewdfx/services/hilogcat_lite/commond",
"//vendor/hisi/hi3861/hi3861/include",
"//vendor/hisi/hi3861/hi3861/include",
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include"
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include"
]
]
...
...
hiviewdfx_lite/hilog_hal/src/dfx_hilog.c
浏览文件 @
2eeff863
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include <securec.h>
#include <securec.h>
#include <hiview_config.h>
#include <hiview_config.h>
#include <hiview_def.h>
#include <hiview_def.h>
#include "hos_init.h"
#include "hiview_output_log.h"
#include "hiview_output_log.h"
#include "log.h"
#include "log.h"
#include "hctest.h"
#include "hctest.h"
...
...
hiviewdfx_lite/hilog_posix/src/HilogTest.cpp
浏览文件 @
2eeff863
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
#define LOG_DOMAIN 0xD002D00
#define LOG_DOMAIN 0xD002D00
using
namespace
OHOS
::
HiviewDFX
;
using
namespace
OHOS
::
HiviewDFX
;
static
constexpr
Hi
l
ogLabel
LABEL
=
{
LOG_CORE
,
0xD002D00
,
"Test_TAG"
};
static
constexpr
Hi
L
ogLabel
LABEL
=
{
LOG_CORE
,
0xD002D00
,
"Test_TAG"
};
using
namespace
std
;
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
testing
::
ext
;
class
Hi
l
ogTest
:
public
testing
::
Test
{
class
Hi
L
ogTest
:
public
testing
::
Test
{
protected:
protected:
static
void
SetUpTestCase
(
void
)
{}
static
void
SetUpTestCase
(
void
)
{}
static
void
TearDownTestCase
(
void
)
{}
static
void
TearDownTestCase
(
void
)
{}
...
@@ -37,112 +37,112 @@ protected:
...
@@ -37,112 +37,112 @@ protected:
};
};
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0100
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0100
* @tc.name : Hi
l
og_DEBUG parameter legal test (Cortex-A, C)
* @tc.name : Hi
L
og_DEBUG parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0100
,
Function
|
MediumTest
|
Level0
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0100
,
Function
|
MediumTest
|
Level0
)
{
{
HILOG_DEBUG
(
LOG_CORE
,
"Debug log of Hi
l
og API test"
);
HILOG_DEBUG
(
LOG_CORE
,
"Debug log of Hi
L
og API test"
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0200
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0200
* @tc.name : HILOG_INFO parameter legal test (Cortex-A, C)
* @tc.name : HILOG_INFO parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0200
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0200
,
Function
|
MediumTest
|
Level1
)
{
{
HILOG_INFO
(
LOG_CORE
,
"Info log of Hi
l
og API test"
);
HILOG_INFO
(
LOG_CORE
,
"Info log of Hi
L
og API test"
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0300
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0300
* @tc.name : HILOG_WARN parameter legal test (Cortex-A, C)
* @tc.name : HILOG_WARN parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0300
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0300
,
Function
|
MediumTest
|
Level1
)
{
{
HILOG_WARN
(
LOG_CORE
,
"Warn log of Hi
l
og API test"
);
HILOG_WARN
(
LOG_CORE
,
"Warn log of Hi
L
og API test"
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0400
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0400
* @tc.name : HILOG_ERROR parameter legal test (Cortex-A, C)
* @tc.name : HILOG_ERROR parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0400
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0400
,
Function
|
MediumTest
|
Level1
)
{
{
HILOG_ERROR
(
LOG_CORE
,
"Error log of Hi
l
og API test"
);
HILOG_ERROR
(
LOG_CORE
,
"Error log of Hi
L
og API test"
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0500
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0500
* @tc.name : HILOG_FATAL parameter legal test (Cortex-A, C)
* @tc.name : HILOG_FATAL parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0500
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0500
,
Function
|
MediumTest
|
Level1
)
{
{
HILOG_FATAL
(
LOG_CORE
,
"Fatal log of Hi
l
og API test"
);
HILOG_FATAL
(
LOG_CORE
,
"Fatal log of Hi
L
og API test"
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0600
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0600
* @tc.name : Hi
l
og::Debug parameter legal test (Cortex-A, C)
* @tc.name : Hi
L
og::Debug parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0600
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0600
,
Function
|
MediumTest
|
Level1
)
{
{
bool
ret
=
T
rue
;
bool
ret
=
t
rue
;
ret
=
Hi
log
::
Debug
(
LABEL
,
"Debug log of Hil
og API test"
);
ret
=
Hi
Log
::
Debug
(
LABEL
,
"Debug log of HiL
og API test"
);
EXPECT_TRUE
(
ret
);
EXPECT_TRUE
(
ret
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0700
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0700
* @tc.name : Hi
l
og::Error parameter legal test (Cortex-A, C)
* @tc.name : Hi
L
og::Error parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0700
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0700
,
Function
|
MediumTest
|
Level1
)
{
{
bool
ret
=
T
rue
;
bool
ret
=
t
rue
;
ret
=
Hi
log
::
Error
(
LABEL
,
"Error log of Hil
og API test"
);
ret
=
Hi
Log
::
Error
(
LABEL
,
"Error log of HiL
og API test"
);
EXPECT_TRUE
(
ret
);
EXPECT_TRUE
(
ret
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0800
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0800
* @tc.name : Hi
l
og::Fatal parameter legal test (Cortex-A, C)
* @tc.name : Hi
L
og::Fatal parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0800
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0800
,
Function
|
MediumTest
|
Level1
)
{
{
bool
ret
=
T
rue
;
bool
ret
=
t
rue
;
ret
=
Hi
log
::
Fatal
(
LABEL
,
"Fatal log of Hil
og API test"
);
ret
=
Hi
Log
::
Fatal
(
LABEL
,
"Fatal log of HiL
og API test"
);
EXPECT_TRUE
(
ret
);
EXPECT_TRUE
(
ret
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_0900
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_0900
* @tc.name : Hi
l
og::Info parameter legal test (Cortex-A, C)
* @tc.name : Hi
L
og::Info parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi0900
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi0900
,
Function
|
MediumTest
|
Level1
)
{
{
bool
ret
=
T
rue
;
bool
ret
=
t
rue
;
ret
=
Hi
log
::
Info
(
LABEL
,
"Info log of Hil
og API test"
);
ret
=
Hi
Log
::
Info
(
LABEL
,
"Info log of HiL
og API test"
);
EXPECT_TRUE
(
ret
);
EXPECT_TRUE
(
ret
);
}
}
/**
/**
* @tc.number : Sub_Dfx_Dft_Hi
l
og_Cortexaapi_1000
* @tc.number : Sub_Dfx_Dft_Hi
L
og_Cortexaapi_1000
* @tc.name : Hi
l
og::Warn parameter legal test (Cortex-A, C)
* @tc.name : Hi
L
og::Warn parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
*/
*/
HWTEST_F
(
Hi
logTest
,
subDfxDftHil
ogCortexaapi1000
,
Function
|
MediumTest
|
Level1
)
HWTEST_F
(
Hi
LogTest
,
subDfxDftHiL
ogCortexaapi1000
,
Function
|
MediumTest
|
Level1
)
{
{
bool
ret
=
T
rue
;
bool
ret
=
t
rue
;
ret
=
Hi
log
::
Warn
(
LABEL
,
"Warn log of Hil
og API test"
);
ret
=
Hi
Log
::
Warn
(
LABEL
,
"Warn log of HiL
og API test"
);
EXPECT_TRUE
(
ret
);
EXPECT_TRUE
(
ret
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录