提交 bd193c24 编写于 作者: H hu0475

根据意见修改文件

Signed-off-by: Nhu0475 <huyanqiang5@huawei.com>
......@@ -18,7 +18,7 @@ group("hiviewdfxtestacts") {
"abilityconstanttest:ActsAbilityConstantTest",
"apprecoverytest:ActsAppRecoveryTest",
"bytracetest:ActsBytraceJsTest",
"crossplatform/hiviewdfxhilogetstest:hilog_ets_test",
"crossplatform/hiviewdfxhilogetstest:ActsCrossplatformHilogTest",
"hiappeventtest/hiappeventcpptest:ActsHiAppEventCPPTest",
"hiappeventtest/hiappeventjstest:ActsHiAppeventTest",
"hiappeventtest/hiappeventsubjstest:ActsHiAppeventSubTest",
......
......@@ -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
}
}
......
......@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("hilog_ets_test") {
ohos_js_hap_suite("ActsCrossplatformHilogTest") {
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_test"
hap_name = "ActsCrossplatformHilogTest"
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
}
......@@ -18,7 +18,7 @@
"kits": [
{
"test-file-name": [
"ActsDemoStageTest.hap"
"ActsCrossplatformHilogTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册