提交 e6305f40 编写于 作者: O openharmony_ci 提交者: Gitee

!590 AMS\BMS\CES测试用例编译整改

Merge pull request !590 from jiyong/branch_0914
......@@ -18,9 +18,9 @@ group("aafwk_standard") {
if (is_standard_system) {
deps = [
"abilitymanager:actsabilitymanagertest",
#"context:context",
#"featureability:featureability",
#"want:want",
"context:context",
"featureability:featureability",
"want:want",
]
}
}
import file from '@system.file'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -15,6 +15,9 @@
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -12,6 +12,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -16,6 +16,9 @@ import("//test/xts/tools/build/suite.gni")
group("context") {
testonly = true
if (is_standard_system) {
deps = [ "actscontexttest:ActsContextTest" ]
deps = [
"actscontexttest:ActsContextTest",
"scene/defpermission:Defpermission",
]
}
}
......@@ -14,6 +14,18 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsContextTest") {
test_hap_name = "ActsContextTest"
hap_source_path = "hap/ActsContextTest.hap"
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsContextTest"
}
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"
}
......@@ -9,7 +9,8 @@
"kits": [
{
"test-file-name": [
"ActsContextTest.hap"
"ActsContextTest.hap",
"DefPermission.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
......@@ -18,6 +18,9 @@ import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
# 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("Defpermission") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "Defpermission"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/js/resources" ]
hap_profile = "./src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
}
......@@ -13,6 +13,9 @@
* limitations under the License.
*/
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
......@@ -16,6 +16,15 @@ import("//test/xts/tools/build/suite.gni")
group("featureability") {
testonly = true
if (is_standard_system) {
deps = [ "actsfeatureabilitytest:ActsFeatureAbilityTest" ]
deps = [
"actsfeatureabilitytest:ActsFeatureAbilityTest",
"sceneproject/finishwithresultemptytest:FinishWithResultEmptyTest",
"sceneproject/finishwithresultpromiseparameterstest:FinishWithResultPromiseParametersTest",
"sceneproject/finishwithresulttest:FinishWithResultTest",
"sceneproject/getcallingbundletest:GetCallingBundlePromiseTest",
"sceneproject/startability:StartAbility",
"sceneproject/startabilityforresult:StartAbilityForResult",
"sceneproject/terminateabilitytest:TerminateAbilityTest",
]
}
}
......@@ -14,6 +14,18 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsFeatureAbilityTest") {
test_hap_name = "ActsFeatureAbilityTest"
hap_source_path = "hap/ActsFeatureAbilityTest.hap"
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsFeatureAbilityTest"
}
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"
}
......@@ -13,6 +13,19 @@
],
"type": "AppInstallKit",
"cleanup-apps": true
}
},
{
"type": "PushKit",
"push": [
"FinishWithResultEmptyTest.hap->/data/FinishWithResultEmptyTest.hap",
"FinishWithResultPromiseParametersTest.hap->/data/FinishWithResultPromiseParametersTest.hap",
"FinishWithResultTest.hap->/data/FinishWithResultTest.hap",
"GetCallingBundlePromiseTest.hap->/data/GetCallingBundlePromiseTest.hap",
"StartAbility.hap->/data/StartAbility.hap",
"StartAbilityForResult.hap->/data/StartAbilityForResult.hap",
"TerminateAbilityTest.hap->/data/TerminateAbilityTest.hap"
]
}
]
}
......@@ -16,6 +16,9 @@ import file from '@system.file'
import app from '@system.app'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......@@ -41,4 +44,4 @@ export default {
},
onReady() {
},
}
\ 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("FinishWithResultEmptyTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "FinishWithResultEmptyTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/js/resources" ]
hap_profile = "./src/main/config.json"
}
......@@ -14,6 +14,10 @@
*/
import commonEvent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_FinishWithResult_0300_CommonEvent====>");
}
......@@ -48,4 +52,4 @@ export default {
},
onReady() {
},
}
\ 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("FinishWithResultPromiseParametersTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "FinishWithResultPromiseParametersTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/js/resources" ]
hap_profile = "./src/main/config.json"
}
......@@ -15,6 +15,10 @@
import commonevent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBack() {
console.debug("====>Publish CallBack ACTS_FinishWithResult_0100_CommonEvent====>");
}
......@@ -88,4 +92,4 @@ export default {
},
onReady() {
},
}
\ 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("FinishWithResultTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "FinishWithResultTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/js/resources" ]
hap_profile = "./src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
}
......@@ -15,6 +15,10 @@
import commonEvent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBack() {
console.debug("====>Publish CallBack ACTS_FinishWithResult_0200_CommonEvent====>");
}
......@@ -44,4 +48,4 @@ export default {
},
onReady() {
},
}
\ 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("GetCallingBundlePromiseTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "GetCallingBundlePromiseTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/js/resources" ]
hap_profile = "./src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
}
......@@ -14,6 +14,10 @@
*/
import commonEvent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_GetCallingBundle_0100_CommonEvent====>");
}
......@@ -43,4 +47,4 @@ export default {
},
onReady() {
},
}
\ 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("StartAbility") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "StartAbility"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/js/resources" ]
hap_profile = "./src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
}
......@@ -13,6 +13,10 @@
* limitations under the License.
*/
import commonEvent from '@ohos.commonevent'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>");
}
......@@ -49,4 +53,4 @@ export default {
},
onReady() {
},
}
\ No newline at end of file
}
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册