Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bd193c24
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看板
提交
bd193c24
编写于
7月 13, 2023
作者:
H
hu0475
浏览文件
操作
浏览文件
下载
差异文件
根据意见修改文件
Signed-off-by:
N
hu0475
<
huyanqiang5@huawei.com
>
上级
1973343a
f0fcf72f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
102 addition
and
8 deletion
+102
-8
hiviewdfx/BUILD.gn
hiviewdfx/BUILD.gn
+1
-1
hiviewdfx/crossplatform/hiviewdfxhilogetstest/AppScope/app.json
...dfx/crossplatform/hiviewdfxhilogetstest/AppScope/app.json
+3
-3
hiviewdfx/crossplatform/hiviewdfxhilogetstest/BUILD.gn
hiviewdfx/crossplatform/hiviewdfxhilogetstest/BUILD.gn
+7
-3
hiviewdfx/crossplatform/hiviewdfxhilogetstest/Test.json
hiviewdfx/crossplatform/hiviewdfxhilogetstest/Test.json
+1
-1
hiviewdfx/crossplatform/hiviewdfxhilogetstest/src/main/ets/test/hilog.test.ets
...rm/hiviewdfxhilogetstest/src/main/ets/test/hilog.test.ets
+90
-0
未找到文件。
hiviewdfx/BUILD.gn
浏览文件 @
bd193c24
...
...
@@ -18,7 +18,7 @@ group("hiviewdfxtestacts") {
"abilityconstanttest:ActsAbilityConstantTest",
"apprecoverytest:ActsAppRecoveryTest",
"bytracetest:ActsBytraceJsTest",
"crossplatform/hiviewdfxhilogetstest:
hilog_ets_t
est",
"crossplatform/hiviewdfxhilogetstest:
ActsCrossplatformHilogT
est",
"hiappeventtest/hiappeventcpptest:ActsHiAppEventCPPTest",
"hiappeventtest/hiappeventjstest:ActsHiAppeventTest",
"hiappeventtest/hiappeventsubjstest:ActsHiAppeventSubTest",
...
...
hiviewdfx/crossplatform/hiviewdfxhilogetstest/AppScope/app.json
浏览文件 @
bd193c24
...
...
@@ -6,10 +6,10 @@
"versionName"
:
"1.0.0"
,
"icon"
:
"$media:app_icon"
,
"label"
:
"$string:app_name"
,
"minAPIVersion"
:
9
,
"targetAPIVersion"
:
9
,
"minAPIVersion"
:
10
,
"targetAPIVersion"
:
10
,
"car"
:
{
"apiCompatibleVersion"
:
9
,
"apiCompatibleVersion"
:
10
,
"singleUser"
:
false
}
}
...
...
hiviewdfx/crossplatform/hiviewdfxhilogetstest/BUILD.gn
浏览文件 @
bd193c24
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
hilog_ets_t
est") {
ohos_js_hap_suite("
ActsCrossplatformHilogT
est") {
hap_profile = "src/main/module.json"
deps = [
":windowStage_js_assets",
...
...
@@ -20,14 +20,16 @@ ohos_js_hap_suite("hilog_ets_test") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
# hap_name: HAP的名字,可选,默认为目标名
hap_name = "
hilog_ets_t
est"
hap_name = "
ActsCrossplatformHilogT
est"
part_name = "hilog_native"
subsystem_name = "hiviewdfx"
}
ohos_app_scope("windowStage_app_profile") {
# app_profile: HAP的AppScope中的app.json,只在Stage模型下使用
app_profile = "AppScope/app.json"
# sources: 资源文件路径
sources = [ "AppScope/resources" ]
}
...
...
@@ -38,8 +40,10 @@ ohos_js_assets("windowStage_js_assets") {
ohos_resources("windowStage_resources") {
# sources: 资源文件路径
sources = [ "src/main/resources" ]
# deps: 当前目标的依赖
deps = [ ":windowStage_app_profile" ]
# hap_profile: HAP的config.json,Stage模型对应module.json
hap_profile = "src/main/module.json"
}
\ No newline at end of file
}
hiviewdfx/crossplatform/hiviewdfxhilogetstest/Test.json
浏览文件 @
bd193c24
...
...
@@ -18,7 +18,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"Acts
DemoStage
Test.hap"
"Acts
CrossplatformHilog
Test.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
hiviewdfx/crossplatform/hiviewdfxhilogetstest/src/main/ets/test/hilog.test.ets
浏览文件 @
bd193c24
...
...
@@ -607,5 +607,95 @@ export default function HilogJsTest() {
}
console.info("testHilogFatal001 end");
});
/**
* @tc.number: TEST_HILOG_IS_LOGGABLE_001
* @tc.name : testHilogIsLoggable001
* @tc.desc : hitrace begin interface test.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it("testHilogIsLoggable001", 2, function () {
console.info("testHilogIsLoggable001 start");
const res = hilog.isLoggable(0x123456789, "HILOGTEST", 3);
expect(res).assertEqual(false);
console.info("testHilogIsLoggable001 end");
});
/**
* @tc.number: TEST_HILOG_IS_LOGGABLE_002
* @tc.name : testHilogIsLoggable002
* @tc.desc : hitrace begin interface test.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it("testHilogIsLoggable002", 2, function () {
console.info("testHilogIsLoggable002 start");
const res = hilog.isLoggable(0x3200, "HILOGTEST", 6);
expect(res).assertEqual(true);
console.info("testHilogIsLoggable002 end");
});
/**
* @tc.number: TEST_HILOG_IS_LOGGABLE_003
* @tc.name : testHilogIsLoggable003
* @tc.desc : hitrace begin interface test.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it("testHilogIsLoggable003", 2, function () {
console.info("testHilogIsLoggable003 start");
const res = hilog.isLoggable(0x3200, "HILOGTEST", 7);
expect(res).assertEqual(true);
console.info("testHilogIsLoggable003 end");
});
/**
* @tc.number: TEST_HILOG_IS_LOGGABLE_004
* @tc.name : testHilogIsLoggable004
* @tc.desc : hitrace begin interface test.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it("testHilogIsLoggable004", 2, function () {
console.info("testHilogIsLoggable004 start");
const res = hilog.isLoggable(0x3200, "HILOGTEST", 4);
expect(res).assertEqual(true);
console.info("testHilogIsLoggable004 end");
});
/**
* @tc.number: TEST_HILOG_IS_LOGGABLE_005
* @tc.name : testHilogIsLoggable005
* @tc.desc : hitrace begin interface test.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it("testHilogIsLoggable005", 2, function () {
console.info("testHilogIsLoggable005 start");
const res = hilog.isLoggable(0x3200, "HILOGTEST", 5);
expect(res).assertEqual(true);
console.info("testHilogIsLoggable005 end");
});
/**
* @tc.number: TEST_HILOG_IS_LOGGABLE_006
* @tc.name : testHilogIsLoggable006
* @tc.desc : hitrace begin interface test.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it("testHilogIsLoggable006", 2, function () {
console.info("testHilogIsLoggable006 start");
const res = hilog.isLoggable(0x3200, "HILOGTEST", 100);
expect(res).assertEqual(false);
console.info("testHilogIsLoggable006 end");
});
});
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录