1 Star 0 Fork 4.6K

人海迷航/xts_acts

forked from OpenHarmony/xts_acts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 4.60 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:21 . add OpenHarmony 1.0 baseline
# Copyright (c) 2020 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_lite.gni")
import("//build/lite/config/subsystem/aafwk/config.gni")
lite_component("acts_compoment") {
all_features = []
features = []
if (ohos_xts_test_args != "") {
all_features += [ ohos_xts_test_args ]
} else {
if(ohos_kernel_type == "liteos_riscv") {
all_features += [
"//test/xts/acts/communication_lite/lwip_hal:ActsLwipTest",
"//test/xts/acts/communication_lite/softbus_hal:ActsSoftBusTest",
"//test/xts/acts/communication_lite/wifiservice_hal:ActsWifiServiceTest",
"//test/xts/acts/utils_lite/utilsfile_hal:ActsUtilsFileTest",
"//test/xts/acts/utils_lite/parameter_hal:ActsParameterTest",
"//test/xts/acts/iot_hardware_lite/wifiiot_hal:ActsWifiIotTest",
"//test/xts/acts/kernel_lite/kernelcmsis_hal:ActsCMSISTest",
"//test/xts/acts/kernel_lite/kernelkal_hal:ActsKalTest",
"//test/xts/acts/hiviewdfx_lite/dfx_hal:ActsDfxFuncTest",
"//test/xts/acts/utils_lite/kvstore_hal:ActsKvStoreTest",
"//test/xts/acts/security_lite/datahuks_hal:ActsSecurityDataTest",
"//test/xts/acts/distributedschedule_lite/samgr_hal:ActsSamgrTest",
]
} else if(ohos_kernel_type == "liteos_a") {
all_features += [
"//test/xts/acts/kernel_lite:ActsKernelTest",
"//test/xts/acts/security_lite:securitytest",
"//test/xts/acts/utils_lite/kvstore_posix:ActsKvStoreTest",
"//test/xts/acts/startup_lite/parameter_posix:ActsParameterTest",
"//test/xts/acts/startup_lite/bootstrap_posix:ActsBootstrapTest",
#"//test/xts/acts/multimedia_lite/multimedia_posix/camera:ActsMediaCameraTest",
"//test/xts/acts/open_posix_testsuite/conformance/interfaces:ActsOpenPosixTest",
"//test/xts/acts/distributedschedule_lite/samgr_posix:ActsSamgrTest",
#"//test/xts/acts/multimedia_lite/multimedia_posix/recorder:ActsMediaRecorderTest",
#"//test/xts/acts/uikit_lite:uikit_test",
"//test/xts/acts/appexecfwk_lite/bundlems_posix:ActsBundleMgrTest",
"//test/xts/acts/communication_lite/softbus_posix:ActsSoftBusTest",
"//test/xts/acts/communication_lite/lwip_posix:ActsLwipTest",
]
if (enable_ohos_appexecfwk_feature_ability == true) {
all_features += [
"//test/xts/acts/appexecfwk_lite/abilityms_posix:ActsAbilityMgrTest",
]
}
} else if(ohos_kernel_type == "linux") {
all_features += [
"//test/xts/acts/utils_lite/kvstore_posix:ActsKvStoreTest",
"//test/xts/acts/startup_lite/parameter_posix:ActsParameterTest"
]
}
}
if (ohos_build_type == "debug") {
_all_features = ""
_product_json = rebase_path("//build/lite/product/${product}.json")
foreach(one_feature, all_features) {
_all_features = _all_features + one_feature + ","
}
_args = [
"--method_name", "filter_by_subsystem",
"--arguments", "testsuites=${_all_features}#product_json=${_product_json}"
]
features += exec_script(rebase_path("//test/xts/tools/build/utils.py"), _args, "list lines")
}
}
test_suite("acts") {
deps = [ ":acts_compoment" ]
version = "OpenHarmony-ACTS-1.11.0"
if (ohos_kernel_type == "liteos_a") {
deps += [ "//test/xts/tools/others/query:query" ]
copy("query_copy") {
sources = ["$root_out_dir/bin/query.bin"]
outputs = ["$root_out_dir/suites/acts/resource/tools/query.bin"]
}
}
}
generate_notice_file("acts_notice_file") {
module_name = "acts"
module_source_dir_list = [
"//third_party/googletest",
"//third_party/unity",
"//third_party/bounds_checking_function",
"//third_party/iniparser"
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chaosdummy/xts_acts.git
git@gitee.com:chaosdummy/xts_acts.git
chaosdummy
xts_acts
xts_acts
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385