1f6603c60Sopenharmony_ci# Copyright (C) 2021 Huawei Device Co., Ltd. 2f6603c60Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3f6603c60Sopenharmony_ci# you may not use this file except in compliance with the License. 4f6603c60Sopenharmony_ci# You may obtain a copy of the License at 5f6603c60Sopenharmony_ci# 6f6603c60Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7f6603c60Sopenharmony_ci# 8f6603c60Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9f6603c60Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10f6603c60Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11f6603c60Sopenharmony_ci# See the License for the specific language governing permissions and 12f6603c60Sopenharmony_ci# limitations under the License. 13f6603c60Sopenharmony_ci 14f6603c60Sopenharmony_ciimport("//test/xts/tools/build/suite.gni") 15f6603c60Sopenharmony_ci 16f6603c60Sopenharmony_ci_all_test_packages = [ 17f6603c60Sopenharmony_ci "${ACTS_ROOT}/ai:ai", 18f6603c60Sopenharmony_ci "${ACTS_ROOT}/testfwk:testfwk", 19f6603c60Sopenharmony_ci "${ACTS_ROOT}/global:global", 20f6603c60Sopenharmony_ci "${ACTS_ROOT}/security:security", 21f6603c60Sopenharmony_ci "${ACTS_ROOT}/useriam:useriam", 22f6603c60Sopenharmony_ci "${ACTS_ROOT}/multimedia:multimedia", 23f6603c60Sopenharmony_ci "${ACTS_ROOT}/bundlemanager:appexecfwk", 24f6603c60Sopenharmony_ci "${ACTS_ROOT}/account:account", 25f6603c60Sopenharmony_ci "${ACTS_ROOT}/communication:communication", 26f6603c60Sopenharmony_ci "${ACTS_ROOT}/notification:notification", 27f6603c60Sopenharmony_ci "${ACTS_ROOT}/ability:ability", 28f6603c60Sopenharmony_ci "${ACTS_ROOT}/time:time", 29f6603c60Sopenharmony_ci "${ACTS_ROOT}/theme:theme", 30f6603c60Sopenharmony_ci "${ACTS_ROOT}/request:request", 31f6603c60Sopenharmony_ci "${ACTS_ROOT}/inputmethod:inputmethod", 32f6603c60Sopenharmony_ci "${ACTS_ROOT}/powermgr:powermgr", 33f6603c60Sopenharmony_ci "${ACTS_ROOT}/startup:startup", 34f6603c60Sopenharmony_ci "${ACTS_ROOT}/sensors:sensors", 35f6603c60Sopenharmony_ci "${ACTS_ROOT}/distributeddatamgr:pasteboard", 36f6603c60Sopenharmony_ci "${ACTS_ROOT}/distributeddatamgr:distributeddatamgr", 37f6603c60Sopenharmony_ci "${ACTS_ROOT}/graphic:graphic", 38f6603c60Sopenharmony_ci "${ACTS_ROOT}/arkui:arkui", 39f6603c60Sopenharmony_ci "${ACTS_ROOT}/storage:storage", 40f6603c60Sopenharmony_ci "${ACTS_ROOT}/commonlibrary:commonlibrary", 41f6603c60Sopenharmony_ci "${ACTS_ROOT}/usb:usb", 42f6603c60Sopenharmony_ci "${ACTS_ROOT}/multimodalinput:multimodalinput", 43f6603c60Sopenharmony_ci "${ACTS_ROOT}/resourceschedule:resourceschedule", 44f6603c60Sopenharmony_ci "${ACTS_ROOT}/telephony:telephony", 45f6603c60Sopenharmony_ci "${ACTS_ROOT}/hiviewdfx:hiviewdfxtestacts", 46f6603c60Sopenharmony_ci "${ACTS_ROOT}/location:location", 47f6603c60Sopenharmony_ci "${ACTS_ROOT}/settingsdata:settingsdata", 48f6603c60Sopenharmony_ci "${ACTS_ROOT}/barrierfree:barrierfree", 49f6603c60Sopenharmony_ci "${ACTS_ROOT}/applications:applications", 50f6603c60Sopenharmony_ci "${ACTS_ROOT}/ostest:ostest", 51f6603c60Sopenharmony_ci "${ACTS_ROOT}/validator:validator", 52f6603c60Sopenharmony_ci "${ACTS_ROOT}/xts:xts", 53f6603c60Sopenharmony_ci "${ACTS_ROOT}/hdf:hdf", 54f6603c60Sopenharmony_ci "${ACTS_ROOT}/msdp:msdp", 55f6603c60Sopenharmony_ci "${ACTS_ROOT}/arkcompiler:arkcompiler", 56f6603c60Sopenharmony_ci "${ACTS_ROOT}/advertising:advertising", 57f6603c60Sopenharmony_ci "${ACTS_ROOT}/customization:customization", 58f6603c60Sopenharmony_ci "${ACTS_ROOT}/pcs:pcs", 59f6603c60Sopenharmony_ci "${ACTS_ROOT}/appbuild:appbuild", 60f6603c60Sopenharmony_ci] 61f6603c60Sopenharmony_ci 62f6603c60Sopenharmony_ci_all_test_packages_ivi = [ 63f6603c60Sopenharmony_ci # add acts for ivi here 64f6603c60Sopenharmony_ci # "${ACTS_ROOT}/multimedia:multimedia_ivi", 65f6603c60Sopenharmony_ci] 66f6603c60Sopenharmony_ci 67f6603c60Sopenharmony_ci_all_test_packages_intellitv = [ 68f6603c60Sopenharmony_ci # add acts for intellitv here 69f6603c60Sopenharmony_ci "${ACTS_ROOT}/multimedia:multimedia_intellitv", 70f6603c60Sopenharmony_ci] 71f6603c60Sopenharmony_ci 72f6603c60Sopenharmony_ci_all_test_packages_wearable = [ 73f6603c60Sopenharmony_ci # add acts for wearable here 74f6603c60Sopenharmony_ci "${ACTS_ROOT}/multimedia:multimedia_wearable", 75f6603c60Sopenharmony_ci] 76f6603c60Sopenharmony_ci 77f6603c60Sopenharmony_ciselected_packages_wearable = [] 78f6603c60Sopenharmony_ciselected_packages_intellitv = [] 79f6603c60Sopenharmony_ciselected_packages_ivi = [] 80f6603c60Sopenharmony_ciselected_packages = [] 81f6603c60Sopenharmony_ciassert(XTS_SUITENAME != "") 82f6603c60Sopenharmony_ciif (build_xts == true && XTS_SUITENAME == "acts") { 83f6603c60Sopenharmony_ci _select_script = "//test/xts/tools/build/test_package_select.py" 84f6603c60Sopenharmony_ci _subsystem_config_path = rebase_path( 85f6603c60Sopenharmony_ci "$root_build_dir/build_configs/subsystem_info/src_subsystem_info.json") 86f6603c60Sopenharmony_ci _select_args = [ _subsystem_config_path ] + _all_test_packages 87f6603c60Sopenharmony_ci _select_args_ivi = [ _subsystem_config_path ] + _all_test_packages_ivi 88f6603c60Sopenharmony_ci _select_args_intellitv = 89f6603c60Sopenharmony_ci [ _subsystem_config_path ] + _all_test_packages_intellitv 90f6603c60Sopenharmony_ci _select_args_wearable = 91f6603c60Sopenharmony_ci [ _subsystem_config_path ] + _all_test_packages_wearable 92f6603c60Sopenharmony_ci _target_subsystem = getenv("target_subsystem") 93f6603c60Sopenharmony_ci 94f6603c60Sopenharmony_ci if (_target_subsystem != "" && _target_subsystem != "all") { 95f6603c60Sopenharmony_ci print("Build acts, target_subsystem=" + _target_subsystem) 96f6603c60Sopenharmony_ci _select_args += [ "selected_subsystem=" + _target_subsystem ] 97f6603c60Sopenharmony_ci _select_args_ivi += [ "selected_subsystem=" + _target_subsystem ] 98f6603c60Sopenharmony_ci _select_args_intellitv += [ "selected_subsystem=" + _target_subsystem ] 99f6603c60Sopenharmony_ci _select_args_wearable += [ "selected_subsystem=" + _target_subsystem ] 100f6603c60Sopenharmony_ci } 101f6603c60Sopenharmony_ci 102f6603c60Sopenharmony_ci selected_packages = exec_script(_select_script, _select_args, "list lines") 103f6603c60Sopenharmony_ci 104f6603c60Sopenharmony_ci selected_packages_ivi = 105f6603c60Sopenharmony_ci exec_script(_select_script, _select_args_ivi, "list lines") 106f6603c60Sopenharmony_ci 107f6603c60Sopenharmony_ci selected_packages_intellitv = 108f6603c60Sopenharmony_ci exec_script(_select_script, _select_args_intellitv, "list lines") 109f6603c60Sopenharmony_ci 110f6603c60Sopenharmony_ci selected_packages_wearable = 111f6603c60Sopenharmony_ci exec_script(_select_script, _select_args_wearable, "list lines") 112f6603c60Sopenharmony_ci 113f6603c60Sopenharmony_ci print("Selected packages:") 114f6603c60Sopenharmony_ci print(selected_packages) 115f6603c60Sopenharmony_ci 116f6603c60Sopenharmony_ci # always include testtools 117f6603c60Sopenharmony_ci selected_packages += [ "testtools:deploy_testtools" ] 118f6603c60Sopenharmony_ci selected_packages += [ "${XTS_ROOT}/tools/others/query:libQuery" ] 119f6603c60Sopenharmony_ci selected_packages_ivi += [ "testtools:deploy_testtools" ] 120f6603c60Sopenharmony_ci selected_packages_intellitv += [ "testtools:deploy_testtools" ] 121f6603c60Sopenharmony_ci selected_packages_wearable += [ "testtools:deploy_testtools" ] 122f6603c60Sopenharmony_ci} else { 123f6603c60Sopenharmony_ci print("ACTS build is not enabled") 124f6603c60Sopenharmony_ci} 125