提交 a3219d1a 编写于 作者: J jiyong

jiyong@huawei.com

Signed-off-by: Njiyong <jiyong@huawei.com>
上级 c1524fa7
...@@ -16,6 +16,9 @@ import("//build/ohos_var.gni") ...@@ -16,6 +16,9 @@ import("//build/ohos_var.gni")
group("notification") { group("notification") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ "ces_standard:ces_standard" ] deps = [
"ces_standard:ces_standard",
"ans_standard:ans_standard"
]
} }
} }
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos_var.gni")
group("ans_standard") {
testonly = true
if (is_standard_system) {
deps = [
"cancel_test:cancel_test",
"publish_test:publish_test"
]
}
}
...@@ -17,3 +17,14 @@ ohos_js_hap_suite("AnsNotificationTestCancel") { ...@@ -17,3 +17,14 @@ ohos_js_hap_suite("AnsNotificationTestCancel") {
test_hap_name = "AnsNotificationTestCancel" test_hap_name = "AnsNotificationTestCancel"
hap_source_path = "hap/ans_signed.hap" hap_source_path = "hap/ans_signed.hap"
} }
import("//build/ohos_var.gni")
group("cancel_test") {
testonly = true
if (is_standard_system) {
deps = [
"MyApplicationCancelAll:ans_signed"
]
}
}
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ans_signed") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ans_signed"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "21600000",
"package": "com.example.myapplication",
"shell-timeout": "21600000"
},
"kits": [
{
"test-file-name": [
"ans_signed.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{ {
"string": [ "string": [
{ {
"name": "app_name", "name": "app_name",
"value": "MyApplication" "value": "MyApplication"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability" "value": "JS_Phone_Empty Feature Ability"
} }
] ]
} }
\ No newline at end of file
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/config/ohos/rules.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("AnsNotificationTestCancel") {
test_hap_name = "AnsNotificationTestCancel"
hap_source_path = "hap/ans_signed.hap"
}
import("//build/ohos_var.gni")
group("publish_test") {
testonly = true
if (is_standard_system) {
deps = [
"notification-ContentType-All:contentType-signed"
]
}
}
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("contentType-signed") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "contentType-signed"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "21600000",
"package": "com.example.test",
"shell-timeout": "21600000"
},
"kits": [
{
"test-file-name": [
"contentType-signed.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{ {
"string": [ "string": [
{ {
"name": "app_name", "name": "app_name",
"value": "ContentType" "value": "ContentType"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability" "value": "JS_Phone_Empty Feature Ability"
} }
] ]
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册