代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/xts_hats 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 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 = [
"${HATS_ROOT}/distributedhardware:distributedhardware",
"${HATS_ROOT}/hdf:hatshdftest",
"${HATS_ROOT}/kernel:kernel",
"${HATS_ROOT}/powermgr:powermgr",
"${HATS_ROOT}/useriam:useriam",
"${HATS_ROOT}/telephony:telephony",
"${HATS_ROOT}/startup:startup",
"${HATS_ROOT}/ai:hatsaitest",
]
_all_test_packages_ivi = [
# add hats for ivi here
# "${HATS_ROOT}/multimedia:multimedia_ivi",
]
_all_test_packages_intellitv = [
# add hats for intellitv here
#"${HATS_ROOT}/multimedia:multimedia_intellitv",
]
_all_test_packages_wearable = [
# add hats for wearable here
#"${HATS_ROOT}/multimedia:multimedia_wearable",
]
selected_packages_wearable = []
selected_packages_intellitv = []
selected_packages_ivi = []
selected_packages = []
assert(XTS_SUITENAME != "")
if (build_xts == true && XTS_SUITENAME == "hats") {
_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 hats, 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("HATS build is not enabled")
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。