feat(build): 使用xts -notest选项时,内核用例不参与编译构建和用例编译配置方式调整

【背景】
1.编译新增-notest选项为了排除用例参与构建,使用该选项时内核用例仍会参与构建,不符合预期
2.用例编译配置选项太多,需调整优化
【修改方案】
1.原内核用例的源文件是通过框架自带的source_set(一种虚拟静态库)的方式组织的,
不受unittests(自定义的一种方式)控制,修改为文件列表直接加入到unittest中。
2.编译配置通过level控制
【影响】
对现有的产品编译不会有影响。

Change-Id: I2c6a96e7276346de96f222b725d417418ff0e537
This commit is contained in:
lnlan 2021-05-28 14:25:54 +08:00
parent 3f16f1684a
commit 9bdf716407
34 changed files with 2506 additions and 2732 deletions

View File

@ -29,51 +29,38 @@
import("config.gni") import("config.gni")
local_flags = [] local_flags = [
local_flags_smoke = [] "-fpermissive",
local_flags_full = [] "-O2",
"-fbuiltin",
"-Wno-narrowing",
"-fPIE",
]
if (LOSCFG_USER_TEST_SMP == "enable" || (LOSCFG_USER_TEST_SMP == "default" && board_name == "hispark_taurus")) { if (LOSCFG_USER_TEST_SMP == "enable" || (LOSCFG_USER_TEST_SMP == "default" && board_name == "hispark_taurus")) {
local_flags = [ "-DLOSCFG_USER_TEST_SMP" ] local_flags += [ "-DLOSCFG_USER_TEST_SMP" ]
} }
local_flags_smoke += [ "-DLOSCFG_USER_TEST_SMOKE" ]
local_flags_full += [ "-DLOSCFG_USER_TEST_SMOKE" ]
local_flags_full += [ "-DLOSCFG_USER_TEST_FULL" ]
#local_flags_full += [ "-DLOSCFG_USER_TEST_PRESSURE" ]
config("local_public_config") { config("public_config_for_door") {
cflags = [ "-fpermissive" ] cflags = [
cflags += [ "-DLOSCFG_USER_TEST_SMOKE",
"-O2",
"-fbuiltin",
"-Wno-narrowing",
"-fPIE",
] ]
cflags += local_flags cflags += local_flags
cflags_cc = cflags cflags_cc = cflags
} }
config("public_config_smk") { config("public_config_for_all") {
cflags = [ "-fpermissive" ] cflags = [
cflags += [ "-DLOSCFG_USER_TEST_SMOKE",
"-O2", "-DLOSCFG_USER_TEST_FULL",
"-fbuiltin",
"-Wno-narrowing",
"-fPIE",
] ]
cflags += local_flags_smoke
cflags += local_flags cflags += local_flags
cflags_cc = cflags cflags_cc = cflags
} }
config("public_config_full") { config("public_config_for_pressure") {
cflags = [ "-fpermissive" ] cflags = [
cflags += [ "-DLOSCFG_USER_TEST_PRESSURE",
"-O2",
"-fbuiltin",
"-Wno-narrowing",
"-fPIE",
] ]
cflags += local_flags_full
cflags += local_flags cflags += local_flags
cflags_cc = cflags cflags_cc = cflags
} }
@ -81,253 +68,267 @@ config("public_config_full") {
group("unittest") { group("unittest") {
deps = [] deps = []
if (ohos_build_type == "debug") { if (ohos_build_type == "debug") {
if (LOSCFG_USER_TEST_MISC == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "misc:liteos_a_misc_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "misc:liteos_a_misc_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_DRIVERS_HID == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "drivers/hid:liteos_a_drivers_hid_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "drivers/hid:liteos_a_drivers_hid_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_DRIVERS_STORAGE == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "drivers/storage:liteos_a_drivers_storage_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "drivers/storage:liteos_a_drivers_storage_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_DYNLOAD == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "dynload:liteos_a_dynload_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "dynload:liteos_a_dynload_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_EXC == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "exc:liteos_a_exc_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "exc:liteos_a_exc_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_FS_JFFS == true) { if (LOSCFG_USER_TEST_FS_JFFS == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "fs:liteos_a_fs_unittest_door" ]
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
deps += [ "fs:liteos_a_fs_unittest" ] deps += [ "fs:liteos_a_fs_unittest" ]
} }
if (LOSCFG_USER_TEST_FOR_DOOR == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_HIGH) {
deps += [ "fs:liteos_a_fs_unittest_door" ] deps += [ "fs:liteos_a_fs_unittest_pressure" ]
} }
} }
if (LOSCFG_USER_TEST_FS_VFAT == true) { if (LOSCFG_USER_TEST_FS_VFAT == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest_door" ]
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest" ] deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest" ]
} }
if (LOSCFG_USER_TEST_FOR_DOOR == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_HIGH) {
deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest_door" ] deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest_pressure" ]
}
}
if (LOSCFG_USER_TEST_FS_PROC == true) {
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "fs/proc:liteos_a_fs_procfs_unittest_door" ]
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
deps += [ "fs/proc:liteos_a_fs_procfs_unittest" ]
}
}
if (LOSCFG_USER_TEST_MISC == true) {
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "misc:liteos_a_misc_unittest_door" ]
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
deps += [ "misc:liteos_a_misc_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_IO == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "IO:liteos_a_io_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "IO:liteos_a_io_unittest_door" ] 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_IPC == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "IPC:liteos_a_ipc_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "IPC:liteos_a_ipc_unittest_door" ] 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_LITEIPC == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "liteipc:liteos_a_liteipc_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "liteipc:liteos_a_liteipc_unittest_door" ] 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_MEM_SHM == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "mem/shm:liteos_a_mem_shm_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "mem/shm:liteos_a_mem_shm_unittest_door" ] 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_MEM_VM == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "mem/vm:liteos_a_mem_vm_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "mem/vm:liteos_a_mem_vm_unittest_door" ] 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_NET_NETDB == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "net/netdb:liteos_a_net_netdb_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "net/netdb:liteos_a_net_netdb_unittest_door" ] 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_NET_RESOLV == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "net/resolv:liteos_a_net_resolv_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "net/resolv:liteos_a_net_resolv_unittest_door" ] 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_NET_SOCKET == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "net/socket:liteos_a_net_socket_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "net/socket:liteos_a_net_socket_unittest_door" ] 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_POSIX_MEM == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "posix/mem:liteos_a_posix_mem_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "posix/mem:liteos_a_posix_mem_unittest_door" ] 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_POSIX_MQUEUE == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest_door" ] 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_POSIX_PTHREAD == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest_door" ] 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_MUTEX == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "process/mutex:liteos_a_mutex_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/mutex:liteos_a_mutex_unittest_door" ] 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_PROCESS == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "process/process:liteos_a_process_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/process:liteos_a_process_unittest_door" ] 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_PTHREAD == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "process/pthread:liteos_a_pthread_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/pthread:liteos_a_pthread_unittest_door" ] 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_RWLOCK == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "process/rwlock:liteos_a_rwlock_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/rwlock:liteos_a_rwlock_unittest_door" ] 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_SPINLOCK == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "process/spinlock:liteos_a_spinlock_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/spinlock:liteos_a_spinlock_unittest_door" ] 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_SECURITY_REUGID == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "security/reugid:liteos_a_security_reugid_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "security/reugid:liteos_a_security_reugid_unittest_door" ] 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_SECURITY_CAPABILITY == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "security/capability:liteos_a_security_capability_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "security/capability:liteos_a_security_capability_unittest_door" ] 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_SECURITY_VID == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "security/vid:liteos_a_security_vid_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "security/vid:liteos_a_security_vid_unittest_door" ] 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_UTIL == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "util:liteos_a_util_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "util:liteos_a_util_unittest_door" ] 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_TIME_TIMER == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "time/timer:liteos_a_time_timer_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "time/timer:liteos_a_time_timer_unittest_door" ] 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_TIME_CLOCK == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "time/clock:liteos_a_time_clock_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "time/clock:liteos_a_time_clock_unittest_door" ] 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_SYS == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "sys:liteos_a_sys_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "sys:liteos_a_sys_unittest_door" ] 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_SIGNAL == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "signal:liteos_a_signal_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "signal:liteos_a_signal_unittest_door" ] deps += [ "signal:liteos_a_signal_unittest_door" ]
} }
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
deps += [ "signal:liteos_a_signal_unittest" ]
}
} }
} }
} }

View File

@ -41,20 +41,14 @@ sources_entry = [
"io_test.cpp", "io_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/IO_test_005.cpp", "smoke/IO_test_005.cpp",
"smoke/IO_test_008.cpp", "smoke/IO_test_008.cpp",
"smoke/IO_test_010.cpp", "smoke/IO_test_010.cpp",
"smoke/IO_test_013.cpp", "smoke/IO_test_013.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/IO_test_confstr_001.cpp", "full/IO_test_confstr_001.cpp",
"full/IO_test_dcgettext_001.cpp", "full/IO_test_dcgettext_001.cpp",
"full/IO_test_dcgettext_002.cpp", "full/IO_test_dcgettext_002.cpp",
@ -89,33 +83,31 @@ source_set("sources_other") {
"full/IO_test_gettext_001.cpp", "full/IO_test_gettext_001.cpp",
"full/IO_test_strncasecmp_l_001.cpp", "full/IO_test_strncasecmp_l_001.cpp",
"full/IO_test_strncasecmp_l_002.cpp", "full/IO_test_strncasecmp_l_002.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_io_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_io_unittest_door") { unittest("liteos_a_io_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_io_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" ]
} }
} }

View File

@ -41,45 +41,37 @@ sources_entry = [
"ipc_test.cpp", "ipc_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [ ]
]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/IPC_test_mkfifoat_001.cpp", "full/IPC_test_mkfifoat_001.cpp",
"full/IPC_test_mkfifoat_002.cpp", "full/IPC_test_mkfifoat_002.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_ipc_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_ipc_unittest_door") { unittest("liteos_a_ipc_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_ipc_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" ]
} }
} }

View File

@ -27,13 +27,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LOSCFG_USER_TEST_FOR_DOOR = true TEST_LEVEL_LOW = 1
LOSCFG_USER_TEST_FOR_ALL = false TEST_LEVEL_MIDDLE = 3
LOSCFG_USER_TEST_PRESSURE = false TEST_LEVEL_HIGH = 5
# 0: don`t generate
# TEST_LEVEL_LOW: only generate xxx_unittest_door.bin (smoke)
# TEST_LEVEL_MIDDLE: generate xxx_unittest_door.bin (smoke) & xxx_unittest.bin (smoke + full)
# TEST_LEVEL_HIGH: generate xxx_unittest_door.bin (smoke) & xxx_unittest.bin (smoke + full) & xxx_unittest_pressure.bin (pressure)
LOSCFG_USER_TEST_LEVEL = TEST_LEVEL_HIGH
# "default": depend on board_name # "default": depend on board_name
# "enable": those testsuites testing for SMP is enable # "enable": those testsuites testing for SMP is enable
# "disable" those testsuites is disable # "disable": those testsuites is disable
LOSCFG_USER_TEST_SMP = "default" LOSCFG_USER_TEST_SMP = "default"
LOSCFG_USER_TEST_MISC = true LOSCFG_USER_TEST_MISC = true
@ -42,6 +48,7 @@ LOSCFG_USER_TEST_DRIVERS_STORAGE = true
LOSCFG_USER_TEST_DYNLOAD = true LOSCFG_USER_TEST_DYNLOAD = true
LOSCFG_USER_TEST_EXC = true LOSCFG_USER_TEST_EXC = true
LOSCFG_USER_TEST_FS_JFFS = false LOSCFG_USER_TEST_FS_JFFS = false
LOSCFG_USER_TEST_FS_PROC = false
LOSCFG_USER_TEST_FS_VFAT = false LOSCFG_USER_TEST_FS_VFAT = false
LOSCFG_USER_TEST_IO = true LOSCFG_USER_TEST_IO = true
LOSCFG_USER_TEST_IPC = false LOSCFG_USER_TEST_IPC = false

View File

@ -41,44 +41,36 @@ sources_entry = [
"drivers_hid_test.cpp", "drivers_hid_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/hid_test_001.cpp", "smoke/hid_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_drivers_hid_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_drivers_hid_unittest_door") { unittest("liteos_a_drivers_hid_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_drivers_hid_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" ]
} }
} }

View File

@ -41,44 +41,36 @@ sources_entry = [
"drivers_storage_test.cpp", "drivers_storage_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/storage_test_001.cpp", "smoke/storage_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_drivers_storage_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_drivers_storage_unittest_door") { unittest("liteos_a_drivers_storage_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_drivers_storage_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" ]
} }
} }

View File

@ -41,45 +41,37 @@ sources_entry = [
"dynload_test.cpp", "dynload_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/dynload_test_002.cpp", "smoke/dynload_test_002.cpp",
"smoke/dynload_test_004.cpp", "smoke/dynload_test_004.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_dynload_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_dynload_unittest_door") { unittest("liteos_a_dynload_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_dynload_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" ]
} }
} }

View File

@ -41,49 +41,41 @@ sources_entry = [
"exc_test.cpp", "exc_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/it_test_exc_001.cpp", "smoke/it_test_exc_001.cpp",
"smoke/it_test_exc_002.cpp", "smoke/it_test_exc_002.cpp",
"smoke/it_test_exc_003.cpp", "smoke/it_test_exc_003.cpp",
"smoke/it_test_exc_004.cpp", "smoke/it_test_exc_004.cpp",
"smoke/it_test_exc_005.cpp", "smoke/it_test_exc_005.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/it_test_fexecve_001.cpp", "full/it_test_fexecve_001.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_exc_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_exc_unittest_door") { unittest("liteos_a_exc_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_exc_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" ]
} }
} }

View File

@ -42,8 +42,7 @@ sources_entry = [
"jffs/vfs_jffs_test.cpp", "jffs/vfs_jffs_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"jffs/smoke/It_vfs_jffs_001.cpp", "jffs/smoke/It_vfs_jffs_001.cpp",
"jffs/smoke/It_vfs_jffs_002.cpp", "jffs/smoke/It_vfs_jffs_002.cpp",
"jffs/smoke/It_vfs_jffs_003.cpp", "jffs/smoke/It_vfs_jffs_003.cpp",
@ -59,15 +58,9 @@ source_set("sources_smoke") {
#"jffs/smoke/It_vfs_jffs_103.cpp", #"jffs/smoke/It_vfs_jffs_103.cpp",
"jffs/smoke/It_vfs_jffs_535.cpp", "jffs/smoke/It_vfs_jffs_535.cpp",
"jffs/smoke/It_vfs_jffs_Dac_001.cpp", "jffs/smoke/It_vfs_jffs_Dac_001.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_PRESSURE == true) { sources_pressure = [
source_set("sources_pressure") {
sources = [
"jffs/pressure/It_fs_jffs_performance_001.cpp", "jffs/pressure/It_fs_jffs_performance_001.cpp",
"jffs/pressure/It_fs_jffs_performance_002.cpp", "jffs/pressure/It_fs_jffs_performance_002.cpp",
"jffs/pressure/It_fs_jffs_performance_003.cpp", "jffs/pressure/It_fs_jffs_performance_003.cpp",
@ -211,14 +204,9 @@ if (LOSCFG_USER_TEST_PRESSURE == true) {
"jffs/pressure/It_vfs_jffs_multipthread_061.cpp", "jffs/pressure/It_vfs_jffs_multipthread_061.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_062.cpp", "jffs/pressure/It_vfs_jffs_multipthread_062.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_063.cpp", "jffs/pressure/It_vfs_jffs_multipthread_063.cpp",
] ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
source_set("sources_other") { sources_full = [
sources = [
"jffs/full/It_jffs_001.cpp", "jffs/full/It_jffs_001.cpp",
"jffs/full/It_jffs_002.cpp", "jffs/full/It_jffs_002.cpp",
"jffs/full/It_jffs_003.cpp", "jffs/full/It_jffs_003.cpp",
@ -791,36 +779,51 @@ source_set("sources_other") {
"jffs/full/It_vfs_jffs_701.cpp", "jffs/full/It_vfs_jffs_701.cpp",
"jffs/full/It_vfs_jffs_807.cpp", "jffs/full/It_vfs_jffs_807.cpp",
"jffs/full/It_vfs_jffs_808.cpp", "jffs/full/It_vfs_jffs_808.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_fs_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
if (LOSCFG_USER_TEST_PRESSURE == true) {
deps += [ ":sources_pressure" ]
}
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_fs_unittest_door") { unittest("liteos_a_fs_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] sources += sources_full
sources_pressure = []
sources += sources_pressure
configs = [ "..:public_config_for_door" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_fs_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
sources_pressure = []
sources += sources_pressure
configs = [ "..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_HIGH) {
unittest("liteos_a_fs_unittest_pressure") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
sources_smoke = []
sources += sources_smoke
sources_full = []
sources += sources_full
sources += sources_pressure
configs = [ "..:public_config_for_pressure" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
} }
} }

View File

@ -41,49 +41,41 @@ sources_entry = [
"It_vfs_proc.cpp", "It_vfs_proc.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/It_vfs_proc_001.cpp", "full/It_vfs_proc_001.cpp",
"full/It_vfs_proc_002.cpp", "full/It_vfs_proc_002.cpp",
"full/It_vfs_proc_003.cpp", "full/It_vfs_proc_003.cpp",
"full/It_vfs_proc_004.cpp", "full/It_vfs_proc_004.cpp",
"full/It_vfs_proc_005.cpp", "full/It_vfs_proc_005.cpp",
"full/It_vfs_proc_006.cpp", "full/It_vfs_proc_006.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_fs_procfs_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_fs_procfs_unittest_door") { unittest("liteos_a_fs_procfs_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_fs_procfs_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" ]
} }
} }

View File

@ -42,18 +42,11 @@ sources_entry = [
"VfsFatTest.cpp", "VfsFatTest.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/It_vfs_fat_026.cpp", "smoke/It_vfs_fat_026.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_PRESSURE == true) { sources_pressure = [
source_set("sources_pressure") {
sources = [
"pressure/It_fs_fat_performance_001.cpp", "pressure/It_fs_fat_performance_001.cpp",
"pressure/It_fs_fat_performance_002.cpp", "pressure/It_fs_fat_performance_002.cpp",
"pressure/It_fs_fat_performance_003.cpp", "pressure/It_fs_fat_performance_003.cpp",
@ -119,14 +112,9 @@ if (LOSCFG_USER_TEST_PRESSURE == true) {
"pressure/It_vfs_fat_mutipthread_048.cpp", "pressure/It_vfs_fat_mutipthread_048.cpp",
"pressure/It_vfs_fat_mutipthread_049.cpp", "pressure/It_vfs_fat_mutipthread_049.cpp",
"pressure/It_vfs_fat_mutipthread_050.cpp", "pressure/It_vfs_fat_mutipthread_050.cpp",
] ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
source_set("sources_other") { sources_full = [
sources = [
"full/It_vfs_fat_066.cpp", "full/It_vfs_fat_066.cpp",
"full/It_vfs_fat_068.cpp", "full/It_vfs_fat_068.cpp",
"full/It_vfs_fat_072.cpp", "full/It_vfs_fat_072.cpp",
@ -193,36 +181,51 @@ source_set("sources_other") {
"full/It_vfs_fat_903.cpp", "full/It_vfs_fat_903.cpp",
"full/It_vfs_fat_904.cpp", "full/It_vfs_fat_904.cpp",
"full/It_vfs_fat_909.cpp", "full/It_vfs_fat_909.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_fs_vfat_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
if (LOSCFG_USER_TEST_PRESSURE == true) {
deps += [ ":sources_pressure" ]
}
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_fs_vfat_unittest_door") { unittest("liteos_a_fs_vfat_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] sources += sources_full
sources_pressure = []
sources += sources_pressure
configs = [ "../..:public_config_for_door" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_fs_vfat_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
sources_pressure = []
sources += sources_pressure
configs = [ "../..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_HIGH) {
unittest("liteos_a_fs_vfat_unittest_pressure") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
sources_smoke = []
sources += sources_smoke
sources_full = []
sources += sources_full
sources += sources_pressure
configs = [ "../..:public_config_for_pressure" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
} }
} }

View File

@ -42,45 +42,37 @@ sources_entry = [
"it_test_liteipc.cpp", "it_test_liteipc.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/liteipc_test_001.cpp", "smoke/liteipc_test_001.cpp",
"smoke/liteipc_test_002.cpp", "smoke/liteipc_test_002.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_liteipc_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_liteipc_unittest_door") { unittest("liteos_a_liteipc_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_liteipc_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"mem_shm_test.cpp", "mem_shm_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/shm_test_001.cpp", "smoke/shm_test_001.cpp",
"smoke/shm_test_002.cpp", "smoke/shm_test_002.cpp",
"smoke/shm_test_003.cpp", "smoke/shm_test_003.cpp",
@ -57,41 +56,34 @@ source_set("sources_smoke") {
"smoke/shm_test_012.cpp", "smoke/shm_test_012.cpp",
"smoke/shm_test_013.cpp", "smoke/shm_test_013.cpp",
"smoke/shm_test_014.cpp", "smoke/shm_test_014.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_mem_shm_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_mem_shm_unittest_door") { unittest("liteos_a_mem_shm_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_mem_shm_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"mem_vm_test.cpp", "mem_vm_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/mmap_test_001.cpp", "smoke/mmap_test_001.cpp",
"smoke/mmap_test_002.cpp", "smoke/mmap_test_002.cpp",
"smoke/mmap_test_003.cpp", "smoke/mmap_test_003.cpp",
@ -58,41 +57,34 @@ source_set("sources_smoke") {
"smoke/oom_test_001.cpp", "smoke/oom_test_001.cpp",
"smoke/open_wmemstream_test_001.cpp", "smoke/open_wmemstream_test_001.cpp",
"smoke/user_copy_test_001.cpp", "smoke/user_copy_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_mem_vm_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_mem_vm_unittest_door") { unittest("liteos_a_mem_vm_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_mem_vm_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" ]
} }
} }

View File

@ -41,22 +41,16 @@ sources_entry = [
"misc_test.cpp", "misc_test.cpp",
] ]
source_set("sources_other") { sources_full = [
sources = [
"full/misc_test_006.cpp", "full/misc_test_006.cpp",
"full/misc_test_007.cpp", "full/misc_test_007.cpp",
"full/misc_test_010.cpp", "full/misc_test_010.cpp",
"full/misc_test_011.cpp", "full/misc_test_011.cpp",
"full/misc_test_012.cpp", "full/misc_test_012.cpp",
"full/misc_test_013.cpp", "full/misc_test_013.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/misc_test_001.cpp", "smoke/misc_test_001.cpp",
"smoke/misc_test_002.cpp", "smoke/misc_test_002.cpp",
"smoke/misc_test_003.cpp", "smoke/misc_test_003.cpp",
@ -65,33 +59,31 @@ source_set("sources_smoke") {
"smoke/misc_test_008.cpp", "smoke/misc_test_008.cpp",
"smoke/misc_test_009.cpp", "smoke/misc_test_009.cpp",
"smoke/misc_test_014.cpp", "smoke/misc_test_014.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_misc_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_misc_unittest_door") { unittest("liteos_a_misc_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_misc_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" ]
} }
} }

View File

@ -48,18 +48,12 @@ sources_entry = [
"net_netdb_test.cpp", "net_netdb_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/net_netdb_test_001.cpp", "smoke/net_netdb_test_001.cpp",
"smoke/net_netdb_test_013.cpp", "smoke/net_netdb_test_013.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/net_netdb_test_002.cpp", "full/net_netdb_test_002.cpp",
"full/net_netdb_test_003.cpp", "full/net_netdb_test_003.cpp",
"full/net_netdb_test_004.cpp", "full/net_netdb_test_004.cpp",
@ -80,33 +74,33 @@ source_set("sources_other") {
"full/net_netdb_test_020.cpp", "full/net_netdb_test_020.cpp",
"full/net_netdb_test_021.cpp", "full/net_netdb_test_021.cpp",
"full/net_netdb_test_022.cpp", "full/net_netdb_test_022.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
unittest("liteos_a_net_netdb_unittest") { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
configs += [ ":net_local_config" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_net_netdb_unittest_door") { unittest("liteos_a_net_netdb_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
sources_full = []
sources += sources_full
configs = [ "../..:public_config_for_door" ]
configs += [ ":net_local_config" ] configs += [ ":net_local_config" ]
deps = [] deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
deps += [ ":sources_smoke" ] }
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_net_netdb_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
sources += sources_full
sources += sources_smoke
configs = [ "../..:public_config_for_all" ]
configs += [ ":net_local_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
} }
} }

View File

@ -48,53 +48,45 @@ sources_entry = [
"net_resolv_test.cpp", "net_resolv_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/net_resolv_test_001.cpp", "smoke/net_resolv_test_001.cpp",
"smoke/net_resolv_test_002.cpp", "smoke/net_resolv_test_002.cpp",
"smoke/net_resolv_test_003.cpp", "smoke/net_resolv_test_003.cpp",
"smoke/net_resolv_test_006.cpp", "smoke/net_resolv_test_006.cpp",
"smoke/net_resolv_test_007.cpp", "smoke/net_resolv_test_007.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/net_resolv_test_004.cpp", "full/net_resolv_test_004.cpp",
"full/net_resolv_test_005.cpp", "full/net_resolv_test_005.cpp",
"full/net_resolv_test_008.cpp", "full/net_resolv_test_008.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_net_resolv_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
configs += [ ":net_local_config" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_net_resolv_unittest_door") { unittest("liteos_a_net_resolv_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
sources_full = []
sources += sources_full
configs = [ "../..:public_config_for_door" ]
configs += [ ":net_local_config" ] configs += [ ":net_local_config" ]
deps = [] deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
deps += [ ":sources_smoke" ] }
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_net_resolv_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" ]
configs += [ ":net_local_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
} }
} }

View File

@ -48,8 +48,7 @@ sources_entry = [
"net_socket_test.cpp", "net_socket_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/net_socket_test_001.cpp", "smoke/net_socket_test_001.cpp",
"smoke/net_socket_test_002.cpp", "smoke/net_socket_test_002.cpp",
"smoke/net_socket_test_003.cpp", "smoke/net_socket_test_003.cpp",
@ -63,43 +62,36 @@ source_set("sources_smoke") {
"smoke/net_socket_test_011.cpp", "smoke/net_socket_test_011.cpp",
"smoke/net_socket_test_012.cpp", "smoke/net_socket_test_012.cpp",
"smoke/net_socket_test_013.cpp", "smoke/net_socket_test_013.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_net_socket_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
configs += [ ":net_local_config" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_net_socket_unittest_door") { unittest("liteos_a_net_socket_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
sources_full = []
sources += sources_full
configs = [ "../..:public_config_for_door" ]
configs += [ ":net_local_config" ] configs += [ ":net_local_config" ]
deps = [] deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
deps += [ ":sources_smoke" ] }
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_net_socket_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" ]
configs += [ ":net_local_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
} }
} }

View File

@ -41,45 +41,37 @@ sources_entry = [
"posix_mem_test.cpp", "posix_mem_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/It_posix_mem_001.cpp", "smoke/It_posix_mem_001.cpp",
"smoke/It_posix_mem_003.cpp", "smoke/It_posix_mem_003.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_posix_mem_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_posix_mem_unittest_door") { unittest("liteos_a_posix_mem_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_posix_mem_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" ]
} }
} }

View File

@ -46,8 +46,7 @@ sources_entry = [
"posix_mqueue_test.cpp", "posix_mqueue_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/It_posix_queue_001.cpp", "smoke/It_posix_queue_001.cpp",
"smoke/It_posix_queue_003.cpp", "smoke/It_posix_queue_003.cpp",
"smoke/It_posix_queue_028.cpp", "smoke/It_posix_queue_028.cpp",
@ -59,14 +58,9 @@ source_set("sources_smoke") {
"smoke/It_posix_queue_207.cpp", "smoke/It_posix_queue_207.cpp",
"smoke/It_posix_queue_208.cpp", "smoke/It_posix_queue_208.cpp",
"smoke/It_posix_queue_209.cpp", "smoke/It_posix_queue_209.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/It_posix_queue_002.cpp", "full/It_posix_queue_002.cpp",
"full/It_posix_queue_005.cpp", "full/It_posix_queue_005.cpp",
"full/It_posix_queue_008.cpp", "full/It_posix_queue_008.cpp",
@ -206,35 +200,33 @@ source_set("sources_other") {
"full/It_posix_queue_202.cpp", "full/It_posix_queue_202.cpp",
"full/It_posix_queue_203.cpp", "full/It_posix_queue_203.cpp",
"full/It_posix_queue_204.cpp", "full/It_posix_queue_204.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_posix_mqueue_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
configs += [ ":mqueue_config" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_posix_mqueue_unittest_door") { unittest("liteos_a_posix_mqueue_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
sources_full = []
sources += sources_full
configs = [ "../..:public_config_for_door" ]
configs += [ ":mqueue_config" ] configs += [ ":mqueue_config" ]
deps = [] deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
deps += [ ":sources_smoke" ] }
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_posix_mqueue_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" ]
configs += [ ":mqueue_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
} }
} }

View File

@ -46,8 +46,7 @@ sources_entry = [
"posix_pthread_test.cpp", "posix_pthread_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/It_posix_pthread_003.cpp", "smoke/It_posix_pthread_003.cpp",
"smoke/It_posix_pthread_004.cpp", "smoke/It_posix_pthread_004.cpp",
"smoke/It_posix_pthread_005.cpp", "smoke/It_posix_pthread_005.cpp",
@ -58,14 +57,9 @@ source_set("sources_smoke") {
"smoke/It_posix_pthread_021.cpp", "smoke/It_posix_pthread_021.cpp",
"smoke/It_posix_pthread_022.cpp", "smoke/It_posix_pthread_022.cpp",
"smoke/It_posix_pthread_203.cpp", "smoke/It_posix_pthread_203.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/It_posix_pthread_001.cpp", "full/It_posix_pthread_001.cpp",
"full/It_posix_pthread_002.cpp", "full/It_posix_pthread_002.cpp",
"full/It_posix_pthread_007.cpp", "full/It_posix_pthread_007.cpp",
@ -171,35 +165,31 @@ source_set("sources_other") {
"full/It_posix_pthread_239.cpp", "full/It_posix_pthread_239.cpp",
"full/It_posix_pthread_240.cpp", "full/It_posix_pthread_240.cpp",
"full/It_posix_pthread_241.cpp", "full/It_posix_pthread_241.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_posix_pthread_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
configs += [ ":pthread_config" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_posix_pthread_unittest_door") { unittest("liteos_a_posix_pthread_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
sources_full = []
sources += sources_full
configs = [ "../..:public_config_for_door" ]
configs += [ ":pthread_config" ]
}
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
unittest("liteos_a_posix_pthread_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" ]
configs += [ ":pthread_config" ] configs += [ ":pthread_config" ]
deps = []
deps += [ ":sources_smoke" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"process_mutex_test.cpp", "process_mutex_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/pthread_mutex_test_001.cpp", "smoke/pthread_mutex_test_001.cpp",
"smoke/pthread_mutex_test_002.cpp", "smoke/pthread_mutex_test_002.cpp",
"smoke/pthread_mutex_test_003.cpp", "smoke/pthread_mutex_test_003.cpp",
@ -68,41 +67,34 @@ source_set("sources_smoke") {
"smoke/pthread_mutex_test_023.cpp", "smoke/pthread_mutex_test_023.cpp",
"smoke/pthread_mutex_test_024.cpp", "smoke/pthread_mutex_test_024.cpp",
"smoke/pthread_mutex_test_025.cpp", "smoke/pthread_mutex_test_025.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_mutex_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_mutex_unittest_door") { unittest("liteos_a_mutex_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_mutex_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"process_process_test.cpp", "process_process_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/process_test_001.cpp", "smoke/process_test_001.cpp",
"smoke/process_test_002.cpp", "smoke/process_test_002.cpp",
"smoke/process_test_004.cpp", "smoke/process_test_004.cpp",
@ -117,41 +116,34 @@ source_set("sources_smoke") {
"smp/process_test_smp_006.cpp", "smp/process_test_smp_006.cpp",
"smp/process_test_smp_007.cpp", "smp/process_test_smp_007.cpp",
"smp/process_test_smp_008.cpp", "smp/process_test_smp_008.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_process_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_process_unittest_door") { unittest("liteos_a_process_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_process_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"process_pthread_test.cpp", "process_pthread_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/pthread_atfork_test_001.cpp", "smoke/pthread_atfork_test_001.cpp",
"smoke/pthread_atfork_test_002.cpp", "smoke/pthread_atfork_test_002.cpp",
"smoke/pthread_cond_test_001.cpp", "smoke/pthread_cond_test_001.cpp",
@ -67,41 +66,34 @@ source_set("sources_smoke") {
"smoke/pthread_test_017.cpp", "smoke/pthread_test_017.cpp",
"smoke/pthread_test_018.cpp", "smoke/pthread_test_018.cpp",
"smoke/pthread_test_019.cpp", "smoke/pthread_test_019.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_pthread_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_pthread_unittest_door") { unittest("liteos_a_pthread_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_pthread_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" ]
} }
} }

View File

@ -41,45 +41,37 @@ sources_entry = [
"process_rwlock_test.cpp", "process_rwlock_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/pthread_rwlock_test_001.cpp", "smoke/pthread_rwlock_test_001.cpp",
"smoke/pthread_rwlock_test_002.cpp", "smoke/pthread_rwlock_test_002.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_rwlock_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_rwlock_unittest_door") { unittest("liteos_a_rwlock_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_rwlock_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" ]
} }
} }

View File

@ -41,44 +41,36 @@ sources_entry = [
"process_spinlock_test.cpp", "process_spinlock_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/pthread_spinlock_test_001.cpp", "smoke/pthread_spinlock_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_spinlock_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_spinlock_unittest_door") { unittest("liteos_a_spinlock_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_spinlock_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" ]
} }
} }

View File

@ -13,44 +13,36 @@ sources_entry = [
"security_capability_test.cpp", "security_capability_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/cap_test_001.cpp", "smoke/cap_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_security_capability_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_security_capability_unittest_door") { unittest("liteos_a_security_capability_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_security_capability_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" ]
} }
} }

View File

@ -41,44 +41,36 @@ sources_entry = [
"security_reugid_test.cpp", "security_reugid_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/reugid_test_001.cpp", "smoke/reugid_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_security_reugid_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_security_reugid_unittest_door") { unittest("liteos_a_security_reugid_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_security_reugid_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" ]
} }
} }

View File

@ -41,44 +41,36 @@ sources_entry = [
"security_vid_test.cpp", "security_vid_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/vid_test_001.cpp", "smoke/vid_test_001.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_security_vid_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_security_vid_unittest_door") { unittest("liteos_a_security_vid_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_security_vid_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"signal_test.cpp", "signal_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/It_ipc_fdisset_001.cpp", "smoke/It_ipc_fdisset_001.cpp",
"smoke/It_ipc_mkfifo_002.cpp", "smoke/It_ipc_mkfifo_002.cpp",
"smoke/It_ipc_mkfifo_003.cpp", "smoke/It_ipc_mkfifo_003.cpp",
@ -71,14 +70,9 @@ source_set("sources_smoke") {
"smoke/signal_test_042.cpp", "smoke/signal_test_042.cpp",
"smoke/sigset_test_001.cpp", "smoke/sigset_test_001.cpp",
"smoke/sigset_test_002.cpp", "smoke/sigset_test_002.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/It_ipc_fdclr_001.cpp", "full/It_ipc_fdclr_001.cpp",
"full/It_ipc_fdset_001.cpp", "full/It_ipc_fdset_001.cpp",
"full/It_ipc_fdzero_001.cpp", "full/It_ipc_fdzero_001.cpp",
@ -115,33 +109,31 @@ source_set("sources_other") {
"full/pipe_test_001.cpp", "full/pipe_test_001.cpp",
"full/pipe_test_003.cpp", "full/pipe_test_003.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_signal_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_signal_unittest_door") { unittest("liteos_a_signal_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_signal_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"sys_unit_test.cpp", "sys_unit_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/sys_test_001.cpp", "smoke/sys_test_001.cpp",
"smoke/sys_test_004.cpp", "smoke/sys_test_004.cpp",
"smoke/sys_test_005.cpp", "smoke/sys_test_005.cpp",
@ -71,41 +70,34 @@ source_set("sources_smoke") {
"smoke/sys_test_029.cpp", "smoke/sys_test_029.cpp",
"smoke/sys_test_030.cpp", "smoke/sys_test_030.cpp",
"smoke/sys_test_031.cpp", "smoke/sys_test_031.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_sys_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_sys_unittest_door") { unittest("liteos_a_sys_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_sys_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" ]
} }
} }

View File

@ -41,8 +41,7 @@ sources_entry = [
"time_clock_test.cpp", "time_clock_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/clock_test_001.cpp", "smoke/clock_test_001.cpp",
"smoke/clock_test_002.cpp", "smoke/clock_test_002.cpp",
"smoke/clock_test_003.cpp", "smoke/clock_test_003.cpp",
@ -53,42 +52,35 @@ source_set("sources_smoke") {
"smoke/clock_test_009.cpp", "smoke/clock_test_009.cpp",
"smoke/clock_test_011.cpp", "smoke/clock_test_011.cpp",
"smoke/clock_test_012.cpp", "smoke/clock_test_012.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [
"full/clock_test_010.cpp", "full/clock_test_010.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_time_clock_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_time_clock_unittest_door") { unittest("liteos_a_time_clock_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_time_clock_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" ]
} }
} }

View File

@ -41,49 +41,41 @@ sources_entry = [
"time_timer_test.cpp", "time_timer_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/timer_test_001.cpp", "smoke/timer_test_001.cpp",
"smoke/timer_test_002.cpp", "smoke/timer_test_002.cpp",
"smoke/timer_test_003.cpp", "smoke/timer_test_003.cpp",
"smoke/timer_test_004.cpp", "smoke/timer_test_004.cpp",
"smoke/timer_test_tzset_001.cpp", "smoke/timer_test_tzset_001.cpp",
"smoke/timer_test_tzset_002.cpp", "smoke/timer_test_tzset_002.cpp",
] ]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "../..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_time_timer_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_time_timer_unittest_door") { unittest("liteos_a_time_timer_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "../..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_time_timer_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" ]
} }
} }

View File

@ -43,8 +43,7 @@ sources_entry = [
"util_test.cpp", "util_test.cpp",
] ]
source_set("sources_smoke") { sources_smoke = [
sources = [
"smoke/it_test_util_100.cpp", "smoke/it_test_util_100.cpp",
"smoke/it_test_util_101.cpp", "smoke/it_test_util_101.cpp",
"smoke/util_test_001.cpp", "smoke/util_test_001.cpp",
@ -54,41 +53,34 @@ source_set("sources_smoke") {
"smoke/util_test_005.cpp", "smoke/util_test_005.cpp",
"smoke/util_test_006.cpp", "smoke/util_test_006.cpp",
"smoke/util_test_007.cpp", "smoke/util_test_007.cpp",
] ]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") { sources_full = [
sources = [ ]
]
configs += [ "..:local_public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) { if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_util_unittest") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_full" ]
deps = []
deps += [ ":sources_smoke" ]
deps += [ ":sources_other" ]
}
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
unittest("liteos_a_util_unittest_door") { unittest("liteos_a_util_unittest_door") {
output_extension = "bin" output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel" output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs include_dirs = common_include_dirs
sources = sources_entry sources = sources_entry
configs = [ "..:public_config_smk" ] sources += sources_smoke
deps = [] sources_full = []
deps += [ ":sources_smoke" ] 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_util_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" ]
} }
} }