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

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

Merge pull request !590 from jiyong/branch_0914
...@@ -18,9 +18,9 @@ group("aafwk_standard") { ...@@ -18,9 +18,9 @@ group("aafwk_standard") {
if (is_standard_system) { if (is_standard_system) {
deps = [ deps = [
"abilitymanager:actsabilitymanagertest", "abilitymanager:actsabilitymanagertest",
#"context:context", "context:context",
#"featureability:featureability", "featureability:featureability",
#"want:want", "want:want",
] ]
} }
} }
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -16,6 +16,9 @@ import("//test/xts/tools/build/suite.gni") ...@@ -16,6 +16,9 @@ import("//test/xts/tools/build/suite.gni")
group("context") { group("context") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ "actscontexttest:ActsContextTest" ] deps = [
"actscontexttest:ActsContextTest",
"scene/defpermission:Defpermission",
]
} }
} }
...@@ -14,6 +14,18 @@ ...@@ -14,6 +14,18 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsContextTest") { ohos_js_hap_suite("ActsContextTest") {
test_hap_name = "ActsContextTest" hap_profile = "./entry/src/main/config.json"
hap_source_path = "hap/ActsContextTest.hap" 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 @@ ...@@ -9,7 +9,8 @@
"kits": [ "kits": [
{ {
"test-file-name": [ "test-file-name": [
"ActsContextTest.hap" "ActsContextTest.hap",
"DefPermission.hap"
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
......
...@@ -18,6 +18,9 @@ import device from '@system.device' ...@@ -18,6 +18,9 @@ import device from '@system.device'
import router from '@system.router' import router from '@system.router'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" 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 @@ ...@@ -13,6 +13,9 @@
* limitations under the License. * limitations under the License.
*/ */
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -16,6 +16,15 @@ import("//test/xts/tools/build/suite.gni") ...@@ -16,6 +16,15 @@ import("//test/xts/tools/build/suite.gni")
group("featureability") { group("featureability") {
testonly = true testonly = true
if (is_standard_system) { 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 @@ ...@@ -14,6 +14,18 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsFeatureAbilityTest") { ohos_js_hap_suite("ActsFeatureAbilityTest") {
test_hap_name = "ActsFeatureAbilityTest" hap_profile = "./entry/src/main/config.json"
hap_source_path = "hap/ActsFeatureAbilityTest.hap" 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 @@ ...@@ -13,6 +13,19 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "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' ...@@ -16,6 +16,9 @@ import file from '@system.file'
import app from '@system.app' import app from '@system.app'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" 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("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 @@ ...@@ -14,6 +14,10 @@
*/ */
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_FinishWithResult_0300_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_FinishWithResult_0300_CommonEvent====>");
} }
......
# 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 @@ ...@@ -15,6 +15,10 @@
import commonevent from '@ohos.commonevent' import commonevent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBack() { function PublishCallBack() {
console.debug("====>Publish CallBack ACTS_FinishWithResult_0100_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_FinishWithResult_0100_CommonEvent====>");
} }
......
# 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 @@ ...@@ -15,6 +15,10 @@
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBack() { function PublishCallBack() {
console.debug("====>Publish CallBack ACTS_FinishWithResult_0200_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_FinishWithResult_0200_CommonEvent====>");
} }
......
# 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 @@ ...@@ -14,6 +14,10 @@
*/ */
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonevent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_GetCallingBundle_0100_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_GetCallingBundle_0100_CommonEvent====>");
} }
......
# 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 @@ ...@@ -13,6 +13,10 @@
* limitations under the License. * limitations under the License.
*/ */
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonevent'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>");
} }
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册