refactor: 内核测试套整改,简化分类
close: #I4OX3O Signed-off-by: arvinzzz <zhaotianyu9@huawei.com> Change-Id: I3ba65509135cee2ae3af82fec923a01e00ffdbe8
This commit is contained in:
parent
d6dc0642c5
commit
a1ae2ecc13
|
@ -33,5 +33,6 @@ group("testsuites") {
|
||||||
deps = [
|
deps = [
|
||||||
#"kernel",
|
#"kernel",
|
||||||
"unittest",
|
"unittest",
|
||||||
|
"unittest_old",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,38 @@ config("public_config_for_pressure") {
|
||||||
group("unittest") {
|
group("unittest") {
|
||||||
deps = []
|
deps = []
|
||||||
if (ohos_build_type == "debug") {
|
if (ohos_build_type == "debug") {
|
||||||
if (LOSCFG_USER_TEST_FS_JFFS == true) {
|
# basic test
|
||||||
|
if (LOSCFG_USER_TEST_BASIC == true) {
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
|
deps += [ "basic:liteos_a_basic_unittest_door" ]
|
||||||
|
}
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
|
deps += [ "basic:liteos_a_basic_unittest" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# drivers test
|
||||||
|
if (LOSCFG_USER_TEST_DRIVERS == true) {
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
|
deps += [ "drivers:liteos_a_drivers_unittest_door" ]
|
||||||
|
}
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
|
deps += [ "drivers:liteos_a_drivers_unittest" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# extended test
|
||||||
|
if (LOSCFG_USER_TEST_EXTENDED == true) {
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
|
deps += [ "extended:liteos_a_extended_unittest_door" ]
|
||||||
|
}
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
|
deps += [ "extended:liteos_a_extended_unittest" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# fs test
|
||||||
|
if (LOSCFG_USER_TEST_FS == true) {
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
deps += [ "fs:liteos_a_fs_unittest_door" ]
|
deps += [ "fs:liteos_a_fs_unittest_door" ]
|
||||||
}
|
}
|
||||||
|
@ -76,264 +107,34 @@ group("unittest") {
|
||||||
deps += [ "fs:liteos_a_fs_unittest_pressure" ]
|
deps += [ "fs:liteos_a_fs_unittest_pressure" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (LOSCFG_USER_TEST_FS_VFAT == true) {
|
|
||||||
|
# libc test
|
||||||
|
if (LOSCFG_USER_TEST_LIBC == true) {
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
deps += [ "fs/vfat:liteos_a_fs_vfat_unittest_door" ]
|
deps += [ "libc:liteos_a_libc_unittest_door" ]
|
||||||
}
|
}
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
deps += [ "fs/vfat:liteos_a_fs_vfat_unittest" ]
|
deps += [ "libc:liteos_a_libc_unittest" ]
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_HIGH) {
|
|
||||||
deps += [ "fs/vfat:liteos_a_fs_vfat_unittest_pressure" ]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (LOSCFG_USER_TEST_FS_PROC == true) {
|
|
||||||
|
# net test
|
||||||
|
if (LOSCFG_USER_TEST_NET == true) {
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
deps += [ "fs/proc:liteos_a_fs_procfs_unittest_door" ]
|
deps += [ "net:liteos_a_net_unittest_door" ]
|
||||||
}
|
}
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
deps += [ "fs/proc:liteos_a_fs_procfs_unittest" ]
|
deps += [ "net:liteos_a_net_unittest" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (LOSCFG_USER_TEST_MISC == true) {
|
|
||||||
|
# security test
|
||||||
|
if (LOSCFG_USER_TEST_SECURITY == true) {
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
deps += [ "misc:liteos_a_misc_unittest_door" ]
|
deps += [ "security:liteos_a_security_unittest_door" ]
|
||||||
}
|
}
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
deps += [ "misc:liteos_a_misc_unittest" ]
|
deps += [ "security:liteos_a_security_unittest" ]
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_DRIVERS_HID == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "drivers/hid:liteos_a_drivers_hid_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "drivers/hid:liteos_a_drivers_hid_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_DRIVERS_STORAGE == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "drivers/storage:liteos_a_drivers_storage_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "drivers/storage:liteos_a_drivers_storage_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_DYNLOAD == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "dynload:liteos_a_dynload_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "dynload:liteos_a_dynload_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_EXC == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "exc:liteos_a_exc_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "exc:liteos_a_exc_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_IO == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "IO:liteos_a_io_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "IO:liteos_a_io_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_IPC == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "IPC:liteos_a_ipc_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "IPC:liteos_a_ipc_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LITEIPC == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "liteipc:liteos_a_liteipc_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "liteipc:liteos_a_liteipc_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_MEM_SHM == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "mem/shm:liteos_a_mem_shm_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "mem/shm:liteos_a_mem_shm_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_MEM_VM == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "mem/vm:liteos_a_mem_vm_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "mem/vm:liteos_a_mem_vm_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_NET_NETDB == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "net/netdb:liteos_a_net_netdb_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "net/netdb:liteos_a_net_netdb_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_NET_RESOLV == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "net/resolv:liteos_a_net_resolv_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "net/resolv:liteos_a_net_resolv_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_NET_SOCKET == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "net/socket:liteos_a_net_socket_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "net/socket:liteos_a_net_socket_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_POSIX_MEM == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "posix/mem:liteos_a_posix_mem_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "posix/mem:liteos_a_posix_mem_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_POSIX_MQUEUE == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_POSIX_PTHREAD == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_MUTEX == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "process/mutex:liteos_a_mutex_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "process/mutex:liteos_a_mutex_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_PROCESS == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "process/process:liteos_a_process_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "process/process:liteos_a_process_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_PTHREAD == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "process/pthread:liteos_a_pthread_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "process/pthread:liteos_a_pthread_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_RWLOCK == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "process/rwlock:liteos_a_rwlock_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "process/rwlock:liteos_a_rwlock_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_SPINLOCK == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "process/spinlock:liteos_a_spinlock_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "process/spinlock:liteos_a_spinlock_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_SECURITY_REUGID == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "security/reugid:liteos_a_security_reugid_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "security/reugid:liteos_a_security_reugid_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_SECURITY_CAPABILITY == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps +=
|
|
||||||
[ "security/capability:liteos_a_security_capability_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "security/capability:liteos_a_security_capability_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_SECURITY_VID == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "security/vid:liteos_a_security_vid_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "security/vid:liteos_a_security_vid_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_UTIL == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "util:liteos_a_util_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "util:liteos_a_util_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_TIME_TIMER == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "time/timer:liteos_a_time_timer_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "time/timer:liteos_a_time_timer_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_TIME_CLOCK == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "time/clock:liteos_a_time_clock_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "time/clock:liteos_a_time_clock_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_SYS == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "sys:liteos_a_sys_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "sys:liteos_a_sys_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_SIGNAL == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "signal:liteos_a_signal_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "signal:liteos_a_signal_unittest" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_TRACE == true) {
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
|
||||||
deps += [ "trace:liteos_a_trace_unittest_door" ]
|
|
||||||
}
|
|
||||||
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
|
||||||
deps += [ "trace:liteos_a_trace_unittest" ]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,58 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//build/lite/config/test.gni")
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
import("./config.gni")
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
|
||||||
|
unittest("liteos_a_basic_unittest_door") {
|
||||||
|
output_extension = "bin"
|
||||||
|
output_dir = "$root_out_dir/test/unittest/kernel"
|
||||||
|
include_dirs = common_include_dirs
|
||||||
|
sources = sources_entry
|
||||||
|
sources += sources_smoke
|
||||||
|
sources_full = []
|
||||||
|
sources += sources_full
|
||||||
|
configs = [ "..:public_config_for_door" ]
|
||||||
|
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
|
||||||
|
unittest("liteos_a_basic_unittest") {
|
||||||
|
output_extension = "bin"
|
||||||
|
output_dir = "$root_out_dir/test/unittest/kernel"
|
||||||
|
include_dirs = common_include_dirs
|
||||||
|
sources = sources_entry
|
||||||
|
sources += sources_smoke
|
||||||
|
sources += sources_full
|
||||||
|
configs = [ "..:public_config_for_all" ]
|
||||||
|
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,117 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//build/lite/config/test.gni")
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
common_include_dirs = [
|
||||||
|
"//third_party/googletest/googletest/include",
|
||||||
|
"../common/include",
|
||||||
|
]
|
||||||
|
|
||||||
|
sources_entry = [ "../common/osTest.cpp" ]
|
||||||
|
|
||||||
|
sources_smoke = []
|
||||||
|
|
||||||
|
sources_full = []
|
||||||
|
|
||||||
|
# dynload module
|
||||||
|
if (LOSCFG_USER_TEST_DYNLOAD == true) {
|
||||||
|
import("./dynload/config.gni")
|
||||||
|
common_include_dirs += dynload_include_dirs
|
||||||
|
sources_entry += dynload_sources_entry
|
||||||
|
sources_smoke += dynload_sources_smoke
|
||||||
|
sources_full += dynload_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
# exc module
|
||||||
|
if (LOSCFG_USER_TEST_EXC == true) {
|
||||||
|
import("./exc/config.gni")
|
||||||
|
common_include_dirs += exc_include_dirs
|
||||||
|
sources_entry += exc_sources_entry
|
||||||
|
sources_smoke += exc_sources_smoke
|
||||||
|
sources_full += exc_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
# mem module
|
||||||
|
if (LOSCFG_USER_TEST_MEM_SHM == true) {
|
||||||
|
import("./mem/shm/config.gni")
|
||||||
|
common_include_dirs += mem_shm_include_dirs
|
||||||
|
sources_entry += mem_shm_sources_entry
|
||||||
|
sources_smoke += mem_shm_sources_smoke
|
||||||
|
sources_full += mem_shm_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_MEM_VM == true) {
|
||||||
|
import("./mem/vm/config.gni")
|
||||||
|
common_include_dirs += mem_vm_include_dirs
|
||||||
|
sources_entry += mem_vm_sources_entry
|
||||||
|
sources_smoke += mem_vm_sources_smoke
|
||||||
|
sources_full += mem_vm_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
# process module
|
||||||
|
if (LOSCFG_USER_TEST_MUTEX == true) {
|
||||||
|
import("./process/mutex/config.gni")
|
||||||
|
common_include_dirs += mutex_include_dirs
|
||||||
|
sources_entry += mutex_sources_entry
|
||||||
|
sources_smoke += mutex_sources_smoke
|
||||||
|
sources_full += mutex_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_PROCESS == true) {
|
||||||
|
import("./process/process/config.gni")
|
||||||
|
common_include_dirs += process_include_dirs
|
||||||
|
sources_entry += process_sources_entry
|
||||||
|
sources_smoke += process_sources_smoke
|
||||||
|
sources_full += process_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_PTHREAD == true) {
|
||||||
|
import("./process/pthread/config.gni")
|
||||||
|
common_include_dirs += pthread_include_dirs
|
||||||
|
sources_entry += pthread_sources_entry
|
||||||
|
sources_smoke += pthread_sources_smoke
|
||||||
|
sources_full += pthread_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_RWLOCK == true) {
|
||||||
|
import("./process/rwlock/config.gni")
|
||||||
|
common_include_dirs += rwlock_include_dirs
|
||||||
|
sources_entry += rwlock_sources_entry
|
||||||
|
sources_smoke += rwlock_sources_smoke
|
||||||
|
sources_full += rwlock_sources_full
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOSCFG_USER_TEST_SPINLOCK == true) {
|
||||||
|
import("./process/spinlock/config.gni")
|
||||||
|
common_include_dirs += spinlock_include_dirs
|
||||||
|
sources_entry += spinlock_sources_entry
|
||||||
|
sources_smoke += spinlock_sources_smoke
|
||||||
|
sources_full += spinlock_sources_full
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
dynload_include_dirs = [ "$TEST_UNITTEST_DIR/basic/dynload" ]
|
||||||
|
|
||||||
|
dynload_sources_entry = [ "$TEST_UNITTEST_DIR/basic/dynload/dynload_test.cpp" ]
|
||||||
|
|
||||||
|
dynload_sources_smoke = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/dynload/smoke/dynload_test_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/dynload/smoke/dynload_test_004.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
dynload_sources_full = []
|
|
@ -0,0 +1,44 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
exc_include_dirs = [ "$TEST_UNITTEST_DIR/basic/exc" ]
|
||||||
|
|
||||||
|
exc_sources_entry = [ "$TEST_UNITTEST_DIR/basic/exc/exc_test.cpp" ]
|
||||||
|
|
||||||
|
exc_sources_smoke = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/exc/smoke/it_test_exc_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/exc/smoke/it_test_exc_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/exc/smoke/it_test_exc_003.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/exc/smoke/it_test_exc_004.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/exc/smoke/it_test_exc_005.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
exc_sources_full =
|
||||||
|
[ "$TEST_UNITTEST_DIR/basic/exc/full/it_test_fexecve_001.cpp" ]
|
|
@ -0,0 +1,52 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
mem_shm_include_dirs = [ "$TEST_UNITTEST_DIR/basic/mem/shm" ]
|
||||||
|
|
||||||
|
mem_shm_sources_entry = [ "$TEST_UNITTEST_DIR/basic/mem/shm/mem_shm_test.cpp" ]
|
||||||
|
|
||||||
|
mem_shm_sources_smoke =
|
||||||
|
[ "$TEST_UNITTEST_DIR/basic/mem/shm/smoke/shm_test_011.cpp" ]
|
||||||
|
|
||||||
|
mem_shm_sources_full = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_003.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_004.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_005.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_006.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_007.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_008.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_009.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_010.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_012.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_013.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/shm/full/shm_test_014.cpp",
|
||||||
|
]
|
|
@ -0,0 +1,53 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
mem_vm_include_dirs = [ "$TEST_UNITTEST_DIR/basic/mem/vm" ]
|
||||||
|
|
||||||
|
mem_vm_sources_entry = [ "$TEST_UNITTEST_DIR/basic/mem/vm/mem_vm_test.cpp" ]
|
||||||
|
|
||||||
|
mem_vm_sources_smoke = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_003.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_004.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_005.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_006.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_007.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_008.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_009.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mmap_test_010.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mprotect_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/mremap_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/oom_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/open_wmemstream_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/mem/vm/smoke/user_copy_test_001.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
mem_vm_sources_full = []
|
|
@ -0,0 +1,65 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
mutex_include_dirs = [ "$TEST_UNITTEST_DIR/basic/process/mutex" ]
|
||||||
|
|
||||||
|
mutex_sources_entry =
|
||||||
|
[ "$TEST_UNITTEST_DIR/basic/process/mutex/process_mutex_test.cpp" ]
|
||||||
|
|
||||||
|
mutex_sources_smoke = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_003.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_004.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_005.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_006.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_007.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_008.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_009.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_010.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_011.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_012.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_013.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_014.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_015.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_016.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_017.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_019.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_020.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_021.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/smoke/pthread_mutex_test_022.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
mutex_sources_full = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/full/pthread_mutex_test_018.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/full/pthread_mutex_test_023.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/full/pthread_mutex_test_024.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/mutex/full/pthread_mutex_test_025.cpp",
|
||||||
|
]
|
|
@ -0,0 +1,114 @@
|
||||||
|
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
# are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
# of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
# provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||||
|
# to endorse or promote products derived from this software without specific prior written
|
||||||
|
# permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
import("//kernel/liteos_a/testsuites/unittest/config.gni")
|
||||||
|
|
||||||
|
process_include_dirs = [ "$TEST_UNITTEST_DIR/basic/process/process" ]
|
||||||
|
|
||||||
|
process_sources_entry =
|
||||||
|
[ "$TEST_UNITTEST_DIR/basic/process/process/process_process_test.cpp" ]
|
||||||
|
|
||||||
|
process_sources_smoke = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_004.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_005.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_006.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_008.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_009.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_010.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_011.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_012.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_013.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_014.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_015.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_016.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_017.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_018.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_019.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_020.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_021.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_022.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_023.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_024.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_025.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_026.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_027.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_029.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_030.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_038.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_039.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_043.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_044.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_045.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_046.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_047.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_048.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_054.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smoke/process_test_061.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_001.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_002.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_003.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_004.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_005.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_006.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_007.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/smp/process_test_smp_008.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
process_sources_full = [
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_007.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_031.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_032.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_033.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_034.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_035.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_036.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_037.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_040.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_041.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_042.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_049.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_050.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_051.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_055.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_056.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_057.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_058.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_059.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_060.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_063.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_064.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_065.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_066.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_067.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_068.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_069.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_053.cpp",
|
||||||
|
"$TEST_UNITTEST_DIR/basic/process/process/full/process_test_062.cpp",
|
||||||
|
]
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue