1 Star 0 Fork 4.5K

zhoubiao/xts_acts

forked from OpenHarmony/xts_acts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test_packages.gni 4.50 KB
一键复制 编辑 原始数据 按行查看 历史
wuyuechang 提交于 2024-09-05 21:03 . fix:添加cmake编译用例
# 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")
_all_test_packages = [
"${ACTS_ROOT}/ai:ai",
"${ACTS_ROOT}/testfwk:testfwk",
"${ACTS_ROOT}/global:global",
"${ACTS_ROOT}/security:security",
"${ACTS_ROOT}/useriam:useriam",
"${ACTS_ROOT}/multimedia:multimedia",
"${ACTS_ROOT}/bundlemanager:appexecfwk",
"${ACTS_ROOT}/account:account",
"${ACTS_ROOT}/communication:communication",
"${ACTS_ROOT}/notification:notification",
"${ACTS_ROOT}/ability:ability",
"${ACTS_ROOT}/time:time",
"${ACTS_ROOT}/theme:theme",
"${ACTS_ROOT}/request:request",
"${ACTS_ROOT}/inputmethod:inputmethod",
"${ACTS_ROOT}/powermgr:powermgr",
"${ACTS_ROOT}/startup:startup",
"${ACTS_ROOT}/sensors:sensors",
"${ACTS_ROOT}/distributeddatamgr:pasteboard",
"${ACTS_ROOT}/distributeddatamgr:distributeddatamgr",
"${ACTS_ROOT}/graphic:graphic",
"${ACTS_ROOT}/arkui:arkui",
"${ACTS_ROOT}/storage:storage",
"${ACTS_ROOT}/commonlibrary:commonlibrary",
"${ACTS_ROOT}/usb:usb",
"${ACTS_ROOT}/multimodalinput:multimodalinput",
"${ACTS_ROOT}/resourceschedule:resourceschedule",
"${ACTS_ROOT}/telephony:telephony",
"${ACTS_ROOT}/hiviewdfx:hiviewdfxtestacts",
"${ACTS_ROOT}/location:location",
"${ACTS_ROOT}/settingsdata:settingsdata",
"${ACTS_ROOT}/barrierfree:barrierfree",
"${ACTS_ROOT}/applications:applications",
"${ACTS_ROOT}/ostest:ostest",
"${ACTS_ROOT}/validator:validator",
"${ACTS_ROOT}/xts:xts",
"${ACTS_ROOT}/hdf:hdf",
"${ACTS_ROOT}/msdp:msdp",
"${ACTS_ROOT}/arkcompiler:arkcompiler",
"${ACTS_ROOT}/advertising:advertising",
"${ACTS_ROOT}/customization:customization",
"${ACTS_ROOT}/pcs:pcs",
"${ACTS_ROOT}/appbuild:appbuild",
]
_all_test_packages_ivi = [
# add acts for ivi here
# "${ACTS_ROOT}/multimedia:multimedia_ivi",
]
_all_test_packages_intellitv = [
# add acts for intellitv here
"${ACTS_ROOT}/multimedia:multimedia_intellitv",
]
_all_test_packages_wearable = [
# add acts for wearable here
"${ACTS_ROOT}/multimedia:multimedia_wearable",
]
selected_packages_wearable = []
selected_packages_intellitv = []
selected_packages_ivi = []
selected_packages = []
assert(XTS_SUITENAME != "")
if (build_xts == true && XTS_SUITENAME == "acts") {
_select_script = "//test/xts/tools/build/test_package_select.py"
_subsystem_config_path = rebase_path(
"$root_build_dir/build_configs/subsystem_info/src_subsystem_info.json")
_select_args = [ _subsystem_config_path ] + _all_test_packages
_select_args_ivi = [ _subsystem_config_path ] + _all_test_packages_ivi
_select_args_intellitv =
[ _subsystem_config_path ] + _all_test_packages_intellitv
_select_args_wearable =
[ _subsystem_config_path ] + _all_test_packages_wearable
_target_subsystem = getenv("target_subsystem")
if (_target_subsystem != "" && _target_subsystem != "all") {
print("Build acts, target_subsystem=" + _target_subsystem)
_select_args += [ "selected_subsystem=" + _target_subsystem ]
_select_args_ivi += [ "selected_subsystem=" + _target_subsystem ]
_select_args_intellitv += [ "selected_subsystem=" + _target_subsystem ]
_select_args_wearable += [ "selected_subsystem=" + _target_subsystem ]
}
selected_packages = exec_script(_select_script, _select_args, "list lines")
selected_packages_ivi =
exec_script(_select_script, _select_args_ivi, "list lines")
selected_packages_intellitv =
exec_script(_select_script, _select_args_intellitv, "list lines")
selected_packages_wearable =
exec_script(_select_script, _select_args_wearable, "list lines")
print("Selected packages:")
print(selected_packages)
# always include testtools
selected_packages += [ "testtools:deploy_testtools" ]
selected_packages += [ "${XTS_ROOT}/tools/others/query:libQuery" ]
selected_packages_ivi += [ "testtools:deploy_testtools" ]
selected_packages_intellitv += [ "testtools:deploy_testtools" ]
selected_packages_wearable += [ "testtools:deploy_testtools" ]
} else {
print("ACTS build is not enabled")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xiao-milu/xts_acts.git
[email protected]:xiao-milu/xts_acts.git
xiao-milu
xts_acts
xts_acts
master

搜索帮助