提交 e2011cd8 编写于 作者: L likailong

Description: liteos-m refactoring

Reviewed-by: liulei, shenwei

Change-Id: I7baba352c02b78aefc81fc5eca000d840d3b2fe3
上级 20de2d2b
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsLwipTest") { hctest_suite("ActsLwipTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [ "src/lwip_func_test.c" ]
"src/lwip_func_test.c",
]
include_dirs = [ include_dirs = [
"//vendor/hisi/hi3861/hi3861/third_party/lwip_sack/include", "//vendor/hisi/hi3861/hi3861/third_party/lwip_sack/include",
"//kernel/liteos_m/components/cmsis", "//kernel/liteos_m/kal",
"//kernel/liteos_m/components/cmsis/2.0", ]
]
cflags = ["-Wno-error"] cflags = [ "-Wno-error" ]
} }
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsSoftBusTest") { hctest_suite("ActsSoftBusTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [ "src/softbus_func_test.c" ]
"src/softbus_func_test.c",
]
defines = ["HOS_DISCOVERY_3861_BOARD"] defines = [ "HOS_DISCOVERY_3861_BOARD" ]
include_dirs = [ include_dirs = [
"//vendor/hisi/hi3861/hi3861/include", "//vendor/hisi/hi3861/hi3861/include",
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include", "//vendor/hisi/hi3861/hi3861/components/lwip_sack/include",
"//vendor/hisi/hi3861/hi3861/third_party/cjson", "//vendor/hisi/hi3861/hi3861/third_party/cjson",
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
"//kernel/liteos_m/components/cmsis", "//kernel/liteos_m/kal",
"//kernel/liteos_m/components/cmsis/2.0", "//foundation/communication/interfaces/kits/wifi_lite/wifiservice",
"//foundation/communication/interfaces/kits/wifi_lite/wifiservice", "//foundation/communication/frameworks/wifi_lite/wifiservice/source",
"//foundation/communication/frameworks/wifi_lite/wifiservice/source", "//foundation/communication/services/softbus_lite/discovery/discovery_service/include",
"//foundation/communication/services/softbus_lite/discovery/discovery_service/include", "//foundation/communication/services/softbus_lite/discovery/include",
"//foundation/communication/services/softbus_lite/discovery/include", "//foundation/communication/interfaces/kits/softbus_lite/discovery",
"//foundation/communication/interfaces/kits/softbus_lite/discovery", "//foundation/communication/interfaces/kits/softbus_lite/transport",
"//foundation/communication/interfaces/kits/softbus_lite/transport" ]
]
deps = [ deps = [ "//foundation/communication/services/softbus_lite:softbus" ]
"//foundation/communication/services/softbus_lite:softbus",
]
cflags = [ "-Wno-error" ] cflags = [ "-Wno-error" ]
} }
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsWifiServiceTest") { hctest_suite("ActsWifiServiceTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [ "src/wifiservice_func_test.c" ]
"src/wifiservice_func_test.c",
]
include_dirs = [ include_dirs = [
"//foundation/communication/interfaces/kits/wifi_lite/wifiservice", "//foundation/communication/interfaces/kits/wifi_lite/wifiservice",
"//vendor/hisi/hi3861/hi3861/third_party/lwip_sack/include", "//vendor/hisi/hi3861/hi3861/third_party/lwip_sack/include",
"//kernel/liteos_m/components/cmsis", "//kernel/liteos_m/kal",
"//kernel/liteos_m/components/cmsis/2.0", ]
]
cflags = [ "-Wno-error" ] cflags = [ "-Wno-error" ]
} }
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsSamgrTest") { hctest_suite("ActsSamgrTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [
"utils/samgr_maintenance.c", "src/broadcast_publish_func_test.c",
"src/broadcast_subscribe_func_test.c",
"src/service_func_test.c", "src/common_func_test.c",
"src/feature_func_test.c", "src/defaultfeatureapi_func_test.c",
"src/defaultfeatureapi_func_test.c", "src/feature_func_test.c",
"src/featureapi_func_test.c", "src/featureapi_func_test.c",
"src/iunknown_func_test.c", "src/iunknown_func_test.c",
"src/sendrequest_func_test.c",
"src/sendrequest_func_test.c", "src/sendresponse_func_test.c",
"src/sendresponse_func_test.c", "src/sendsharerequest_func_test.c",
"src/sendsharerequest_func_test.c", "src/service_func_test.c",
"src/taskpool_notask_func_test.c",
"src/broadcast_subscribe_func_test.c", "src/taskpool_sharedtask_func_test.c",
"src/broadcast_publish_func_test.c", "src/taskpool_singletask_func_test.c",
"src/taskpool_specifiedtask_func_test.c",
"src/taskpool_notask_func_test.c", "utils/samgr_maintenance.c",
"src/taskpool_singletask_func_test.c", ]
"src/taskpool_specifiedtask_func_test.c",
"src/taskpool_sharedtask_func_test.c", include_dirs = [
"//test/xts/tools/hctest/include",
"src/common_func_test.c", "//third_party/unity/src",
] "//kernel/liteos_m/kal",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr",
include_dirs = [ "//foundation/distributedschedule/interfaces/kits/samgr_lite/communication/broadcast",
"//test/xts/tools/hctest/include", "//foundation/distributedschedule/services/samgr_lite/samgr/adapter",
"//third_party/unity/src", "//foundation/distributedschedule/services/samgr_lite/samgr/source",
"//kernel/liteos_m/components/cmsis", "//vendor/hisi/hi3861/hi3861/include",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", "//vendor/hisi/hi3861/hi3861/components/lwip_sack/include",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/communication/broadcast", "src",
"//foundation/distributedschedule/services/samgr_lite/samgr/adapter", "utils",
"//foundation/distributedschedule/services/samgr_lite/samgr/source", ]
"//vendor/hisi/hi3861/hi3861/include", deps = [ "//test/xts/tools/hctest:hctest" ]
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include", public_deps = [ "//foundation/distributedschedule/services/samgr_lite/samgr/adapter:samgr_adapter" ]
"//kernel/liteos_m/components/cmsis/2.0", defines = [ "UNITY_INCLUDE_CONFIG_H" ]
"src",
"utils", cflags = [ "-Wno-error" ]
]
deps = [
"//test/xts/tools/hctest:hctest",
]
public_deps = [
"//foundation/distributedschedule/services/samgr_lite/samgr/adapter:samgr_adapter",
]
defines = [
"UNITY_INCLUDE_CONFIG_H",
]
cflags = [ "-Wno-error" ]
} }
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsWifiIotTest") { hctest_suite("ActsWifiIotTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [
"src/wifiiot_func_test.c", "src/wifiiot_adc_func_test.c",
"src/wifiiot_flash_func_test.c", "src/wifiiot_flash_func_test.c",
"src/wifiiot_gpio_func_test.c", "src/wifiiot_func_test.c",
"src/wifiiot_i2c_func_test.c", "src/wifiiot_gpio_func_test.c",
"src/wifiiot_uart_func_test.c", "src/wifiiot_i2c_func_test.c",
"src/wifiiot_adc_func_test.c", "src/wifiiot_sdio_func_test.c",
"src/wifiiot_spi_hdx_func_test.c", "src/wifiiot_spi_fdx_func_test.c",
"src/wifiiot_spi_slave_func_test.c", "src/wifiiot_spi_hdx_func_test.c",
"src/wifiiot_spi_fdx_func_test.c", "src/wifiiot_spi_slave_func_test.c",
"src/wifiiot_sdio_func_test.c", "src/wifiiot_uart_func_test.c",
] ]
include_dirs = [ include_dirs = [
"//test/xts/tools/hctest/include", "//test/xts/tools/hctest/include",
"//third_party/unity/src", "//third_party/unity/src",
"src", "src",
"//kernel/liteos_m/components/cmsis", "//kernel/liteos_m/kal",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr",
"//base/iot_hardware/interfaces/kits/wifiiot_lite", "//base/iot_hardware/interfaces/kits/wifiiot_lite",
] ]
deps = [ deps = [ "//test/xts/tools/hctest:hctest" ]
"//test/xts/tools/hctest:hctest",
]
cflags = [ "-Wno-error" ] cflags = [ "-Wno-error" ]
} }
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsCMSISTest") { hctest_suite("ActsCMSISTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [
"src/cmsis_task_func_test.c", "src/cmsis_event_func_test.c",
"src/cmsis_task_pri_func_test.c", "src/cmsis_msg_func_test.c",
"src/cmsis_timer_func_test.c", "src/cmsis_mutex_func_test.c",
"src/cmsis_event_func_test.c", "src/cmsis_sem_func_test.c",
"src/cmsis_mutex_func_test.c", "src/cmsis_task_func_test.c",
"src/cmsis_msg_func_test.c", "src/cmsis_task_pri_func_test.c",
"src/cmsis_sem_func_test.c", "src/cmsis_timer_func_test.c",
] ]
include_dirs = [ include_dirs = [
"//test/xts/tools/hctest/include", "//test/xts/tools/hctest/include",
"//third_party/unity/src", "//third_party/unity/src",
"src", "src",
"//kernel/liteos_m/components/cmsis", "//kernel/liteos_m/kal",
"//kernel/liteos_m/components/cmsis/2.0", ]
] cflags = [ "-Wno-error" ]
cflags = [ "-Wno-error" ] }
}
\ No newline at end of file
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/build/suite_lite.gni")
hctest_suite("ActsKalTest") { hctest_suite("ActsKalTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [ "src/kal_func_test.c" ]
"src/kal_func_test.c",
]
include_dirs = [ include_dirs = [
"//test/xts/tools/hctest/include", "//test/xts/tools/hctest/include",
"//third_party/unity/src", "//third_party/unity/src",
"src", "src",
"//kernel/liteos_m/components/cmsis", "//kernel/liteos_m/kal",
"//kernel/liteos_m/components/cmsis/2.0", ]
"//kernel/liteos_m/components/kal/include", cflags = [ "-Wno-error" ]
"//kernel/liteos_m/kernel/base/include", }
]
cflags = [ "-Wno-error" ]
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册