提交 5ff4ce06 编写于 作者: J jiyong

jiyong@huawei.com

Signed-off-by: Njiyong <jiyong@huawei.com>
上级 a9b805aa
...@@ -12,18 +12,14 @@ ...@@ -12,18 +12,14 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_hap("ClearMissionsCallBack") { ohos_js_hap_suite("ClearMissionsCallBack") {
hap_profile = "./src/main/config.json" hap_profile = "./src/main/config.json"
hap_name = "ClearMissionsCallBack"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/systemui.p7b" certificate_profile = "./signature/systemui.p7b"
hap_name = "ClearMissionsCallBack"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default" source_dir = "./src/main/js/default"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.clearmissionscallback",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ClearMissionsCallBack.hap",
"verifyIAbility.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
\ No newline at end of file
{ {
"app": { "app": {
"bundleName": "com.ohos.launcher", "bundleName": "com.example.clearmissionscallback",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1000013, "code": 1000013,
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.example.myapplication11", "package": "com.example.clearmissionscallback",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "phone"
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"abilities": [ "abilities": [
{ {
"visible": true, "visible": true,
"name": "com.ohos.launcherSed11.MainAbility", "name": "com.example.clearmissionscallback.MainAbility",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:app_name", "label": "$string:app_name",
......
...@@ -12,18 +12,14 @@ ...@@ -12,18 +12,14 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_hap("ClearMissionsPromise") { ohos_js_hap_suite("ClearMissionsPromise") {
hap_profile = "./src/main/config.json" hap_profile = "./src/main/config.json"
hap_name = "ClearMissionsPromise"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/systemui.p7b" certificate_profile = "./signature/systemui.p7b"
hap_name = "ClearMissionsPromise"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default" source_dir = "./src/main/js/default"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.clearmissionspromise",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ClearMissionsPromise.hap",
"verifyIAbility.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
\ No newline at end of file
{ {
"app": { "app": {
"bundleName": "com.ohos.launcher", "bundleName": "com.example.clearmissionspromise",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1000013, "code": 1000013,
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.example.myapplication111", "package": "com.example.clearmissionspromise",
"name": ".MyApplication111", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"abilities": [ "abilities": [
{ {
"visible": true, "visible": true,
"name": "com.ohos.launcherSed111.MainAbility", "name": "com.example.clearmissionspromise.MainAbility",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:app_name", "label": "$string:app_name",
......
...@@ -15,6 +15,27 @@ ...@@ -15,6 +15,27 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /data/test"
]
},
{
"type": "PushKit",
"push": [
"/resource/appexecfwk/amsStDataAbility.hap->/data/test/amsStDataAbility.hap"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 644 /data/test/*.hap",
"bm install -p /data/test/amsStDataAbility.hap"
]
} }
] ]
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册