提交 3d9ae7e0 编写于 作者: L lnlan

feat(build): hb编译添加notest选项,可去除所有用例的构建

【背景】用例数量较多,全量编译过于耗时。

【修改方案】
1. hb编译添加notest选项,hb build -t notest -f 编译时去除用例的构建。

【影响】
对现有的产品编译不会有影响。

Change-Id: I9286bdc1b825ac53679577100c89febed238b435
上级 37017f92
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
import("//build/lite/config/subsystem/aafwk/config.gni") import("//build/lite/config/subsystem/aafwk/config.gni")
import("//test/xts/tools/lite/build/suite_lite.gni") import("//test/xts/tools/lite/build/suite_lite.gni")
import("//build/lite/config/test.gni")
lite_component("acts_component") { lite_component("acts_component") {
all_features = [] all_features = []
...@@ -93,7 +94,7 @@ lite_component("acts_component") { ...@@ -93,7 +94,7 @@ lite_component("acts_component") {
} }
} }
if (ohos_build_type == "debug") { if (ohos_build_type == "debug" && ohos_test_args != "notest") {
_all_features = "" _all_features = ""
_product_json = rebase_path("${product_path}/config.json") _product_json = rebase_path("${product_path}/config.json")
foreach(one_feature, all_features) { foreach(one_feature, all_features) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册