!3419 add the concurrent(taskpool) test

Merge pull request !3419 from huangfeijie/concurrent_test
This commit is contained in:
openharmony_ci 2023-01-13 12:50:09 +00:00 committed by Gitee
commit 51be825113
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 63 additions and 0 deletions

View File

@ -27,6 +27,7 @@ group("ark_js_moduletest") {
"calltype:calltypeAction", "calltype:calltypeAction",
"class:classAction", "class:classAction",
"compareobjecthclass:compareobjecthclassAction", "compareobjecthclass:compareobjecthclassAction",
"concurrent:concurrentAction",
"container:containerAction", "container:containerAction",
"datecase:datecaseAction", "datecase:datecaseAction",
"dynamicimport:dynamicimportAction", "dynamicimport:dynamicimportAction",
@ -99,6 +100,7 @@ group("ark_asm_test") {
"calltype:calltypeAsmAction", "calltype:calltypeAsmAction",
"class:classAsmAction", "class:classAsmAction",
"compareobjecthclass:compareobjecthclassAsmAction", "compareobjecthclass:compareobjecthclassAsmAction",
"concurrent:concurrentAsmAction",
"container:containerAsmAction", "container:containerAsmAction",
"dynamicimport:dynamicimportAction", "dynamicimport:dynamicimportAction",
"dyninstruction:dyninstructionAsmAction", "dyninstruction:dyninstructionAsmAction",
@ -161,6 +163,7 @@ group("ark_asm_single_step_test") {
"calltype:calltypeAsmSingleStepAction", "calltype:calltypeAsmSingleStepAction",
"class:classAsmSingleStepAction", "class:classAsmSingleStepAction",
"compareobjecthclass:compareobjecthclassAsmSingleStepAction", "compareobjecthclass:compareobjecthclassAsmSingleStepAction",
"concurrent:concurrentAsmSingleStepAction",
"container:containerAsmSingleStepAction", "container:containerAsmSingleStepAction",
"dynamicimport:dynamicimportAction", "dynamicimport:dynamicimportAction",
"dyninstruction:dyninstructionAsmSingleStepAction", "dyninstruction:dyninstructionAsmSingleStepAction",

View File

@ -0,0 +1,18 @@
# Copyright (c) 2023 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("//arkcompiler/ets_runtime/test/test_helper.gni")
host_moduletest_action("concurrent") {
deps = []
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (c) 2023 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.
*/
/*
* @tc.name:concurrent
* @tc.desc:test concurrent function
* @tc.type: FUNC
* @tc.require: issueI5NO8G
*/
function foo() {
"use concurrent"
var a = 1
print(a)
}
print(foo.name)

View File

@ -0,0 +1,14 @@
# Copyright (c) 2023 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.
foo