full & smoke separate

Change-Id: I885610a62b980bd3720b337aced886450338bdcf
This commit is contained in:
lnlan 2021-05-11 11:06:14 +08:00
parent f99e7b3388
commit 3aa14c9ae7
55 changed files with 3054 additions and 1972 deletions

View File

@ -29,133 +29,289 @@
import("config.gni")
local_flags = []
local_flags_smoke = []
local_flags_full = []
if (board_name == "hispark_taurus") {
local_flags += [ "-DLOSCFG_USER_TEST_SMP" ]
}
if (LOSCFG_USER_TEST_SMOKE == true) {
local_flags += [ "-DLOSCFG_USER_TEST_SMOKE" ]
}
if (LOSCFG_USER_TEST_FULL == true) {
local_flags += [ "-DLOSCFG_USER_TEST_FULL" ]
}
if (LOSCFG_USER_TEST_PRESSURE == true) {
local_flags += [ "-DLOSCFG_USER_TEST_PRESSURE" ]
}
if (LOSCFG_USER_TEST_LLT == true) {
local_flags += [ "-DLOSCFG_USER_TEST_LLT" ]
local_flags_smoke += [ "-DLOSCFG_USER_TEST_SMP" ]
local_flags_full += [ "-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("public_config") {
config("public_config_smk") {
cflags = [ "-fpermissive" ]
cflags += [
"-O2",
"-fbuiltin",
"-Wno-narrowing",
]
cflags += local_flags
cflags += local_flags_smoke
cflags_cc = cflags
}
config("public_config_full") {
cflags = [ "-fpermissive" ]
cflags += [
"-O2",
"-fbuiltin",
"-Wno-narrowing",
]
cflags += local_flags_full
cflags_cc = cflags
}
group("unittest") {
deps = []
if (LOSCFG_USER_TEST_UTIL == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "util:liteos_a_util_unittest_door" ]
}
if (LOSCFG_USER_TEST_TIME_TIMER == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "time/timer:liteos_a_time_timer_unittest_door" ]
}
if (LOSCFG_USER_TEST_TIME_CLOCK == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true)) {
deps += [ "time/clock:liteos_a_time_clock_unittest_door" ]
}
if (LOSCFG_USER_TEST_SYS == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "sys:liteos_a_sys_unittest_door" ]
}
if (LOSCFG_USER_TEST_SIGNAL == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "signal:liteos_a_signal_unittest_door" ]
}
if (LOSCFG_USER_TEST_SECURITY_REUGID == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "security/reugid:liteos_a_security_reugid_unittest_door" ]
}
if (LOSCFG_USER_TEST_SECURITY_CAPABILITY == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "security/capability:liteos_a_security_capability_unittest_door" ]
}
if (LOSCFG_USER_TEST_SECURITY_VID == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "security/vid:liteos_a_security_vid_unittest_door" ]
}
if (LOSCFG_USER_TEST_MUTEX == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/mutex:liteos_a_mutex_unittest_door" ]
}
if (LOSCFG_USER_TEST_PROCESS == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/process:liteos_a_process_unittest_door" ]
}
if (LOSCFG_USER_TEST_PTHREAD == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/pthread:liteos_a_pthread_unittest_door" ]
}
if (LOSCFG_USER_TEST_RWLOCK == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/rwlock:liteos_a_rwlock_unittest_door" ]
}
if (LOSCFG_USER_TEST_SPINLOCK == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/spinlock:liteos_a_spinlock_unittest_door" ]
}
if (LOSCFG_USER_TEST_POSIX_MEM == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "posix/mem:liteos_a_posix_mem_unittest_door" ]
}
if (LOSCFG_USER_TEST_POSIX_MQUEUE == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true)) {
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest_door" ]
}
if (LOSCFG_USER_TEST_POSIX_PTHREAD == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true)) {
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest_door" ]
}
if (LOSCFG_USER_TEST_MISC == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true)) {
deps += [ "misc:liteos_a_misc_unittest_door" ]
}
if (LOSCFG_USER_TEST_MEM_SHM == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "mem/shm:liteos_a_mem_shm_unittest_door" ]
}
if (LOSCFG_USER_TEST_MEM_VM == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "mem/vm:liteos_a_mem_vm_unittest_door" ]
}
if (LOSCFG_USER_TEST_IO == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "IO:liteos_a_io_unittest_door" ]
}
if (LOSCFG_USER_TEST_EXC == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "exc:liteos_a_exc_unittest_door" ]
}
if (LOSCFG_USER_TEST_DYNLOAD == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "dynload:liteos_a_dynload_unittest_door" ]
}
if (LOSCFG_USER_TEST_DRIVERS_HID == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "drivers/hid:liteos_a_drivers_hid_unittest_door" ]
}
if (LOSCFG_USER_TEST_DRIVERS_STORAGE == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "drivers/storage:liteos_a_drivers_storage_unittest_door" ]
}
if (LOSCFG_USER_TEST_NET_NETDB == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "net/netdb:liteos_a_net_netdb_unittest_door" ]
}
if (LOSCFG_USER_TEST_NET_RESOLV == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "net/resolv:liteos_a_net_resolv_unittest_door" ]
}
if (LOSCFG_USER_TEST_NET_SOCKET == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "net/socket:liteos_a_net_socket_unittest_door" ]
}
if (LOSCFG_USER_TEST_IPC == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "IPC:liteos_a_ipc_unittest_door" ]
}
if (LOSCFG_USER_TEST_LITEIPC == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "liteipc:liteos_a_liteipc_unittest_door" ]
}
if (LOSCFG_USER_TEST_FS_JFFS == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true || LOSCFG_USER_TEST_PRESSURE == true)) {
deps += [ "fs:liteos_a_fs_unittest_door" ]
}
if (LOSCFG_USER_TEST_FS_VFAT == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true || LOSCFG_USER_TEST_PRESSURE == true)) {
deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest_door" ]
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_FOR_ALL == true) {
deps += [ "fs:liteos_a_fs_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "fs:liteos_a_fs_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_FS_VFAT == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "fs/vfat2:liteos_a_fs_vfat_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_IO == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "IO:liteos_a_io_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "IO:liteos_a_io_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_IPC == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "IPC:liteos_a_ipc_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "IPC:liteos_a_ipc_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_LITEIPC == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "liteipc:liteos_a_liteipc_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "liteipc:liteos_a_liteipc_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_MEM_SHM == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "mem/shm:liteos_a_mem_shm_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "mem/shm:liteos_a_mem_shm_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_MEM_VM == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "mem/vm:liteos_a_mem_vm_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "mem/vm:liteos_a_mem_vm_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_NET_NETDB == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "net/netdb:liteos_a_net_netdb_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "net/netdb:liteos_a_net_netdb_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_NET_RESOLV == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "net/resolv:liteos_a_net_resolv_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "net/resolv:liteos_a_net_resolv_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_NET_SOCKET == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "net/socket:liteos_a_net_socket_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "net/socket:liteos_a_net_socket_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_POSIX_MEM == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "posix/mem:liteos_a_posix_mem_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "posix/mem:liteos_a_posix_mem_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_POSIX_MQUEUE == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "posix/mqueue:liteos_a_posix_mqueue_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_POSIX_PTHREAD == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "posix/pthread:liteos_a_posix_pthread_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_MUTEX == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "process/mutex:liteos_a_mutex_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/mutex:liteos_a_mutex_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_PROCESS == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "process/process:liteos_a_process_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/process:liteos_a_process_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_PTHREAD == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "process/pthread:liteos_a_pthread_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/pthread:liteos_a_pthread_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_RWLOCK == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "process/rwlock:liteos_a_rwlock_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/rwlock:liteos_a_rwlock_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_SPINLOCK == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "process/spinlock:liteos_a_spinlock_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "process/spinlock:liteos_a_spinlock_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_SECURITY_REUGID == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "security/reugid:liteos_a_security_reugid_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "security/reugid:liteos_a_security_reugid_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_SECURITY_CAPABILITY == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "security/capability:liteos_a_security_capability_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "security/capability:liteos_a_security_capability_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_SECURITY_VID == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "security/vid:liteos_a_security_vid_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "security/vid:liteos_a_security_vid_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_UTIL == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "util:liteos_a_util_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "util:liteos_a_util_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_TIME_TIMER == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "time/timer:liteos_a_time_timer_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "time/timer:liteos_a_time_timer_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_TIME_CLOCK == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "time/clock:liteos_a_time_clock_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "time/clock:liteos_a_time_clock_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_SYS == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "sys:liteos_a_sys_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "sys:liteos_a_sys_unittest_door" ]
}
}
if (LOSCFG_USER_TEST_SIGNAL == true) {
if (LOSCFG_USER_TEST_FOR_ALL == true) {
deps += [ "signal:liteos_a_signal_unittest" ]
}
if (LOSCFG_USER_TEST_FOR_DOOR == true) {
deps += [ "signal:liteos_a_signal_unittest_door" ]
}
}
}
}

View File

@ -30,60 +30,90 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_io_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../IO",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../IO",
]
sources_entry = [
"../common/osTest.cpp",
"io_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"io_test.cpp",
"smoke/IO_test_005.cpp",
"smoke/IO_test_008.cpp",
"smoke/IO_test_010.cpp",
"smoke/IO_test_013.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/IO_test_005.cpp",
"full/IO_test_008.cpp",
"full/IO_test_010.cpp",
"full/IO_test_013.cpp",
"full/IO_test_confstr_001.cpp",
"full/IO_test_dcgettext_001.cpp",
"full/IO_test_dcgettext_002.cpp",
"full/IO_test_dcngettext_001.cpp",
"full/IO_test_dcngettext_002.cpp",
"full/IO_test_dngettext_001.cpp",
"full/IO_test_dngettext_002.cpp",
"full/IO_test_duplocale_001.cpp",
"full/IO_test_locale_001.cpp",
"full/IO_test_locale_002.cpp",
"full/IO_test_ngettext_001.cpp",
"full/IO_test_nl_langinfo_001.cpp",
"full/IO_test_nl_langinfo_l_001.cpp",
"full/IO_test_strcasecmp_l_001.cpp",
"full/IO_test_strcasecmp_l_002.cpp",
"full/IO_test_strfmon_l_001.cpp",
"full/IO_test_strfmon_l_002.cpp",
"full/It_locale_localeconv_001.cpp",
"full/It_stdio_fputws_001.cpp",
"full/It_stdio_fwprintf_001.cpp",
"full/It_stdio_getc_unlocked_001.cpp",
"full/It_stdio_hasmntopt_001.cpp",
"full/It_stdio_mblen_001.cpp",
"full/It_stdio_mbrlen_001.cpp",
"full/It_stdio_putwc_001.cpp",
"full/It_stdio_readv_001.cpp",
"full/It_stdio_rindex_001.cpp",
"full/It_stdio_setlogmask_001.cpp",
"full/It_stdlib_gcvt_001.cpp",
"full/It_stdlib_poll_002.cpp",
"full/It_stdlib_poll_003.cpp",
"full/IO_test_gettext_001.cpp",
"full/IO_test_strncasecmp_l_001.cpp",
"full/IO_test_strncasecmp_l_002.cpp",
]
sources += sources_full
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
"full/IO_test_confstr_001.cpp",
"full/IO_test_dcgettext_001.cpp",
"full/IO_test_dcgettext_002.cpp",
"full/IO_test_dcngettext_001.cpp",
"full/IO_test_dcngettext_002.cpp",
"full/IO_test_dngettext_001.cpp",
"full/IO_test_dngettext_002.cpp",
"full/IO_test_duplocale_001.cpp",
"full/IO_test_locale_001.cpp",
"full/IO_test_locale_002.cpp",
"full/IO_test_ngettext_001.cpp",
"full/IO_test_nl_langinfo_001.cpp",
"full/IO_test_nl_langinfo_l_001.cpp",
"full/IO_test_strcasecmp_l_001.cpp",
"full/IO_test_strcasecmp_l_002.cpp",
"full/IO_test_strfmon_l_001.cpp",
"full/IO_test_strfmon_l_002.cpp",
"full/It_locale_localeconv_001.cpp",
"full/It_stdio_fputws_001.cpp",
"full/It_stdio_fwprintf_001.cpp",
"full/It_stdio_getc_unlocked_001.cpp",
"full/It_stdio_hasmntopt_001.cpp",
"full/It_stdio_mblen_001.cpp",
"full/It_stdio_mbrlen_001.cpp",
"full/It_stdio_putwc_001.cpp",
"full/It_stdio_readv_001.cpp",
"full/It_stdio_rindex_001.cpp",
"full/It_stdio_setlogmask_001.cpp",
"full/It_stdlib_gcvt_001.cpp",
"full/It_stdlib_poll_002.cpp",
"full/It_stdlib_poll_003.cpp",
"full/IO_test_gettext_001.cpp",
"full/IO_test_strncasecmp_l_001.cpp",
"full/IO_test_strncasecmp_l_002.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -43,7 +43,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL)
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: IT_TEST_IO_005
* @tc.desc: function for IoTest
@ -90,7 +90,9 @@ HWTEST_F(IoTest, ItTestIo013, TestSize.Level0)
{
ItTestIo013();
}
#endif
#if defined(LOSCFG_USER_TEST_FULL)
/* *
* @tc.name: IT_STDLIB_POLL_002
* @tc.desc: function for IoTest

View File

@ -30,24 +30,54 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_ipc_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../IPC",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../IPC",
]
sources_entry = [
"../common/osTest.cpp",
"ipc_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"ipc_test.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/IPC_test_mkfifoat_001.cpp",
"full/IPC_test_mkfifoat_002.cpp",
]
sources += sources_full
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
"full/IPC_test_mkfifoat_001.cpp",
"full/IPC_test_mkfifoat_002.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -27,19 +27,25 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LOSCFG_USER_TEST_LLT = false
LOSCFG_USER_TEST_SMOKE = true
LOSCFG_USER_TEST_FOR_DOOR = true
LOSCFG_USER_TEST_FOR_ALL = true
LOSCFG_USER_TEST_PRESSURE = false
LOSCFG_USER_TEST_FULL = false
LOSCFG_USER_TEST_DRIVERS_STORAGE = true
LOSCFG_USER_TEST_MISC = true
LOSCFG_USER_TEST_DRIVERS_HID = true
LOSCFG_USER_TEST_DRIVERS_STORAGE = true
LOSCFG_USER_TEST_DYNLOAD = true
LOSCFG_USER_TEST_EXC = true
LOSCFG_USER_TEST_FS_JFFS = false
LOSCFG_USER_TEST_FS_VFAT = false
LOSCFG_USER_TEST_IO = true
LOSCFG_USER_TEST_IPC = false
LOSCFG_USER_TEST_LITEIPC = false
LOSCFG_USER_TEST_MEM_VM = true
LOSCFG_USER_TEST_MEM_SHM = true
LOSCFG_USER_TEST_MISC = true
LOSCFG_USER_TEST_NET_NETDB = true
LOSCFG_USER_TEST_NET_RESOLV = true
LOSCFG_USER_TEST_NET_SOCKET = true
LOSCFG_USER_TEST_POSIX_PTHREAD = false
LOSCFG_USER_TEST_POSIX_MQUEUE = true
LOSCFG_USER_TEST_POSIX_MEM = true
@ -55,11 +61,4 @@ LOSCFG_USER_TEST_SIGNAL = true
LOSCFG_USER_TEST_SYS = true
LOSCFG_USER_TEST_TIME_CLOCK = true
LOSCFG_USER_TEST_TIME_TIMER = true
LOSCFG_USER_TEST_UTIL = true
LOSCFG_USER_TEST_NET_NETDB = true
LOSCFG_USER_TEST_NET_RESOLV = true
LOSCFG_USER_TEST_NET_SOCKET = true
LOSCFG_USER_TEST_IPC = false
LOSCFG_USER_TEST_LITEIPC = false
LOSCFG_USER_TEST_FS_JFFS = false
LOSCFG_USER_TEST_FS_VFAT = false
LOSCFG_USER_TEST_UTIL = true

View File

@ -30,23 +30,53 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_drivers_hid_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../drivers/hid",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"../../drivers/hid",
]
sources_entry = [
"../../common/osTest.cpp",
"drivers_hid_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"drivers_hid_test.cpp",
"smoke/hid_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/hid_test_001.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,23 +30,53 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_drivers_storage_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../drivers/storage",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"../../drivers/storage",
]
sources_entry = [
"../../common/osTest.cpp",
"drivers_storage_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"drivers_storage_test.cpp",
"smoke/storage_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/storage_test_001.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,24 +30,54 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_dynload_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../dynload",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../dynload",
]
sources_entry = [
"../common/osTest.cpp",
"dynload_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"dynload_test.cpp",
"smoke/dynload_test_002.cpp",
"smoke/dynload_test_004.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/dynload_test_002.cpp",
"smoke/dynload_test_004.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,28 +30,58 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_exc_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../exc",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../exc",
]
sources_entry = [
"../common/osTest.cpp",
"exc_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"exc_test.cpp",
"smoke/it_test_exc_001.cpp",
"smoke/it_test_exc_002.cpp",
"smoke/it_test_exc_003.cpp",
"smoke/it_test_exc_004.cpp",
"smoke/it_test_exc_005.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/it_test_exc_001.cpp",
"full/it_test_exc_002.cpp",
"full/it_test_exc_003.cpp",
"full/it_test_exc_004.cpp",
"full/it_test_exc_005.cpp",
"full/it_test_fexecve_001.cpp",
]
sources += sources_full
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
"full/it_test_fexecve_001.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -41,7 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL)
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: ItTestExc005
* @tc.desc: function for ExcTest

File diff suppressed because it is too large Load Diff

View File

@ -30,29 +30,58 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_fs_procfs_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"//kernel/liteos_a/test/unittest/common/include",
"//kernel/liteos_a/test/unittest/fs/proc",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"//kernel/liteos_a/test/unittest/fs/proc",
]
sources_entry = [
"../../common/osTest.cpp",
"It_vfs_proc.cpp",
]
source_set("sources_smoke") {
sources = [
"//kernel/liteos_a/test/unittest/common/osTest.cpp",
"It_vfs_proc.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/It_vfs_proc_001.cpp",
"full/It_vfs_proc_002.cpp",
"full/It_vfs_proc_003.cpp",
"full/It_vfs_proc_004.cpp",
"full/It_vfs_proc_005.cpp",
"full/It_vfs_proc_006.cpp",
]
sources += sources_full
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "//kernel/liteos_a/test/unittest:public_config" ]
deps += [ "//kernel/liteos_a:kernel" ]
}
source_set("sources_other") {
sources = [
"full/It_vfs_proc_001.cpp",
"full/It_vfs_proc_002.cpp",
"full/It_vfs_proc_003.cpp",
"full/It_vfs_proc_004.cpp",
"full/It_vfs_proc_005.cpp",
"full/It_vfs_proc_006.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,20 +30,29 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_fs_vfat_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"//kernel/liteos_a/testsuites/unittest/common/include",
"//kernel/liteos_a/testsuites/unittest/fs/vfs",
"//kernel/liteos_a/testsuites/unittest/fs/vfat2",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"//kernel/liteos_a/testsuites/unittest/fs/vfs",
"//kernel/liteos_a/testsuites/unittest/fs/vfat2",
]
sources_entry = [
"../../common/osTest.cpp",
"VfsFatTest.cpp",
]
source_set("sources_smoke") {
sources = [
"//kernel/liteos_a/testsuites/unittest/common/osTest.cpp",
"VfsFatTest.cpp",
"smoke/It_vfs_fat_026.cpp",
]
if (LOSCFG_USER_TEST_PRESSURE == true) {
sources_pressure = [
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_PRESSURE == true) {
source_set("sources_pressure") {
sources = [
"pressure/It_fs_fat_performance_001.cpp",
"pressure/It_fs_fat_performance_002.cpp",
"pressure/It_fs_fat_performance_003.cpp",
@ -110,85 +119,108 @@ unittest("liteos_a_fs_vfat_unittest_door") {
"pressure/It_vfs_fat_mutipthread_049.cpp",
"pressure/It_vfs_fat_mutipthread_050.cpp",
]
sources += sources_pressure
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/It_vfs_fat_026.cpp",
]
sources += sources_smoke
}
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/It_vfs_fat_066.cpp",
"full/It_vfs_fat_068.cpp",
"full/It_vfs_fat_072.cpp",
"full/It_vfs_fat_073.cpp",
"full/It_vfs_fat_074.cpp",
"full/It_vfs_fat_496.cpp",
"full/It_vfs_fat_497.cpp",
"full/It_vfs_fat_498.cpp",
"full/It_vfs_fat_499.cpp",
"full/It_vfs_fat_500.cpp",
"full/It_vfs_fat_501.cpp",
"full/It_vfs_fat_502.cpp",
"full/It_vfs_fat_503.cpp",
"full/It_vfs_fat_504.cpp",
"full/It_vfs_fat_506.cpp",
"full/It_vfs_fat_507.cpp",
"full/It_vfs_fat_508.cpp",
"full/It_vfs_fat_509.cpp",
"full/It_vfs_fat_510.cpp",
"full/It_vfs_fat_511.cpp",
"full/It_vfs_fat_512.cpp",
"full/It_vfs_fat_513.cpp",
"full/It_vfs_fat_514.cpp",
"full/It_vfs_fat_515.cpp",
"full/It_vfs_fat_516.cpp",
"full/It_vfs_fat_517.cpp",
"full/It_vfs_fat_518.cpp",
"full/It_vfs_fat_519.cpp",
"full/It_vfs_fat_662.cpp",
"full/It_vfs_fat_663.cpp",
"full/It_vfs_fat_664.cpp",
"full/It_vfs_fat_665.cpp",
"full/It_vfs_fat_666.cpp",
"full/It_vfs_fat_667.cpp",
"full/It_vfs_fat_668.cpp",
"full/It_vfs_fat_669.cpp",
"full/It_vfs_fat_670.cpp",
"full/It_vfs_fat_671.cpp",
"full/It_vfs_fat_672.cpp",
"full/It_vfs_fat_673.cpp",
"full/It_vfs_fat_674.cpp",
"full/It_vfs_fat_675.cpp",
"full/It_vfs_fat_676.cpp",
"full/It_vfs_fat_677.cpp",
"full/It_vfs_fat_678.cpp",
"full/It_vfs_fat_679.cpp",
"full/It_vfs_fat_680.cpp",
"full/It_vfs_fat_681.cpp",
"full/It_vfs_fat_682.cpp",
"full/It_vfs_fat_683.cpp",
"full/It_vfs_fat_684.cpp",
"full/It_vfs_fat_685.cpp",
"full/It_vfs_fat_686.cpp",
"full/It_vfs_fat_687.cpp",
"full/It_vfs_fat_692.cpp",
"full/It_vfs_fat_693.cpp",
"full/It_vfs_fat_694.cpp",
"full/It_vfs_fat_870.cpp",
"full/It_vfs_fat_872.cpp",
"full/It_vfs_fat_873.cpp",
"full/It_vfs_fat_874.cpp",
"full/It_vfs_fat_875.cpp",
"full/It_vfs_fat_902.cpp",
"full/It_vfs_fat_903.cpp",
"full/It_vfs_fat_904.cpp",
"full/It_vfs_fat_909.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "//kernel/liteos_a/testsuites/unittest:public_config" ]
}
source_set("sources_other") {
sources = [
"full/It_vfs_fat_066.cpp",
"full/It_vfs_fat_068.cpp",
"full/It_vfs_fat_072.cpp",
"full/It_vfs_fat_073.cpp",
"full/It_vfs_fat_074.cpp",
"full/It_vfs_fat_496.cpp",
"full/It_vfs_fat_497.cpp",
"full/It_vfs_fat_498.cpp",
"full/It_vfs_fat_499.cpp",
"full/It_vfs_fat_500.cpp",
"full/It_vfs_fat_501.cpp",
"full/It_vfs_fat_502.cpp",
"full/It_vfs_fat_503.cpp",
"full/It_vfs_fat_504.cpp",
"full/It_vfs_fat_506.cpp",
"full/It_vfs_fat_507.cpp",
"full/It_vfs_fat_508.cpp",
"full/It_vfs_fat_509.cpp",
"full/It_vfs_fat_510.cpp",
"full/It_vfs_fat_511.cpp",
"full/It_vfs_fat_512.cpp",
"full/It_vfs_fat_513.cpp",
"full/It_vfs_fat_514.cpp",
"full/It_vfs_fat_515.cpp",
"full/It_vfs_fat_516.cpp",
"full/It_vfs_fat_517.cpp",
"full/It_vfs_fat_518.cpp",
"full/It_vfs_fat_519.cpp",
"full/It_vfs_fat_662.cpp",
"full/It_vfs_fat_663.cpp",
"full/It_vfs_fat_664.cpp",
"full/It_vfs_fat_665.cpp",
"full/It_vfs_fat_666.cpp",
"full/It_vfs_fat_667.cpp",
"full/It_vfs_fat_668.cpp",
"full/It_vfs_fat_669.cpp",
"full/It_vfs_fat_670.cpp",
"full/It_vfs_fat_671.cpp",
"full/It_vfs_fat_672.cpp",
"full/It_vfs_fat_673.cpp",
"full/It_vfs_fat_674.cpp",
"full/It_vfs_fat_675.cpp",
"full/It_vfs_fat_676.cpp",
"full/It_vfs_fat_677.cpp",
"full/It_vfs_fat_678.cpp",
"full/It_vfs_fat_679.cpp",
"full/It_vfs_fat_680.cpp",
"full/It_vfs_fat_681.cpp",
"full/It_vfs_fat_682.cpp",
"full/It_vfs_fat_683.cpp",
"full/It_vfs_fat_684.cpp",
"full/It_vfs_fat_685.cpp",
"full/It_vfs_fat_686.cpp",
"full/It_vfs_fat_687.cpp",
"full/It_vfs_fat_692.cpp",
"full/It_vfs_fat_693.cpp",
"full/It_vfs_fat_694.cpp",
"full/It_vfs_fat_870.cpp",
"full/It_vfs_fat_872.cpp",
"full/It_vfs_fat_873.cpp",
"full/It_vfs_fat_874.cpp",
"full/It_vfs_fat_875.cpp",
"full/It_vfs_fat_902.cpp",
"full/It_vfs_fat_903.cpp",
"full/It_vfs_fat_904.cpp",
"full/It_vfs_fat_909.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,25 +30,55 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_liteipc_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../liteipc",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../liteipc",
]
sources_entry = [
"../common/osTest.cpp",
"smgr_demo.cpp",
"it_test_liteipc.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"smgr_demo.cpp",
"it_test_liteipc.cpp",
"smoke/liteipc_test_001.cpp",
"smoke/liteipc_test_002.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/liteipc_test_001.cpp",
"smoke/liteipc_test_002.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,19 +30,19 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_mem_shm_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../mem/shm",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"../../mem/shm",
]
sources_entry = [
"../../common/osTest.cpp",
"mem_shm_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"mem_shm_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/shm_test_001.cpp",
"smoke/shm_test_002.cpp",
"smoke/shm_test_003.cpp",
@ -57,9 +57,39 @@ unittest("liteos_a_mem_shm_unittest_door") {
"smoke/shm_test_012.cpp",
"smoke/shm_test_013.cpp",
"smoke/shm_test_014.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,37 +30,67 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_mem_vm_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../mem/vm",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"../../mem/vm",
]
sources_entry = [
"../../common/osTest.cpp",
"mem_vm_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"mem_vm_test.cpp",
"smoke/mmap_test_001.cpp",
"smoke/mmap_test_002.cpp",
"smoke/mmap_test_003.cpp",
"smoke/mmap_test_004.cpp",
"smoke/mmap_test_005.cpp",
"smoke/mmap_test_006.cpp",
"smoke/mmap_test_007.cpp",
"smoke/mmap_test_008.cpp",
"smoke/mmap_test_009.cpp",
"smoke/mmap_test_010.cpp",
"smoke/mprotect_test_001.cpp",
"smoke/mremap_test_001.cpp",
"smoke/oom_test_001.cpp",
"smoke/open_wmemstream_test_001.cpp",
"smoke/user_copy_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/mmap_test_001.cpp",
"smoke/mmap_test_002.cpp",
"smoke/mmap_test_003.cpp",
"smoke/mmap_test_004.cpp",
"smoke/mmap_test_005.cpp",
"smoke/mmap_test_006.cpp",
"smoke/mmap_test_007.cpp",
"smoke/mmap_test_008.cpp",
"smoke/mmap_test_009.cpp",
"smoke/mmap_test_010.cpp",
"smoke/mprotect_test_001.cpp",
"smoke/mremap_test_001.cpp",
"smoke/oom_test_001.cpp",
"smoke/open_wmemstream_test_001.cpp",
"smoke/user_copy_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,44 +30,66 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_misc_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../misc",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../misc",
]
sources_entry = [
"../common/osTest.cpp",
"misc_test.cpp",
]
source_set("sources_other") {
sources = [
"../common/osTest.cpp",
"misc_test.cpp",
"full/misc_test_006.cpp",
"full/misc_test_007.cpp",
"full/misc_test_010.cpp",
"full/misc_test_011.cpp",
"full/misc_test_012.cpp",
"full/misc_test_013.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/misc_test_006.cpp",
"full/misc_test_007.cpp",
"full/misc_test_010.cpp",
"full/misc_test_011.cpp",
"full/misc_test_012.cpp",
"full/misc_test_013.cpp",
]
sources += sources_full
}
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/misc_test_001.cpp",
"smoke/misc_test_002.cpp",
"smoke/misc_test_003.cpp",
"smoke/misc_test_004.cpp",
"smoke/misc_test_005.cpp",
"smoke/misc_test_008.cpp",
"smoke/misc_test_009.cpp",
"smoke/misc_test_014.cpp",
]
sources += sources_smoke
}
configs = [ "..:public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_smoke") {
sources = [
"smoke/misc_test_001.cpp",
"smoke/misc_test_002.cpp",
"smoke/misc_test_003.cpp",
"smoke/misc_test_004.cpp",
"smoke/misc_test_005.cpp",
"smoke/misc_test_008.cpp",
"smoke/misc_test_009.cpp",
"smoke/misc_test_014.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -37,46 +37,74 @@ config("net_local_config") {
}
}
unittest("liteos_a_net_netdb_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"./",
]
sources = [
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"net_netdb_test.cpp",
]
source_set("sources_smoke") {
sources = [
"smoke/net_netdb_test_001.cpp",
"smoke/net_netdb_test_013.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/net_netdb_test_001.cpp",
"full/net_netdb_test_002.cpp",
"full/net_netdb_test_003.cpp",
"full/net_netdb_test_004.cpp",
"full/net_netdb_test_005.cpp",
"full/net_netdb_test_006.cpp",
"full/net_netdb_test_007.cpp",
"full/net_netdb_test_008.cpp",
"full/net_netdb_test_009.cpp",
"full/net_netdb_test_010.cpp",
"full/net_netdb_test_011.cpp",
"full/net_netdb_test_012.cpp",
"full/net_netdb_test_013.cpp",
"full/net_netdb_test_014.cpp",
"full/net_netdb_test_015.cpp",
"full/net_netdb_test_016.cpp",
"full/net_netdb_test_017.cpp",
"full/net_netdb_test_018.cpp",
"full/net_netdb_test_019.cpp",
"full/net_netdb_test_020.cpp",
"full/net_netdb_test_021.cpp",
"full/net_netdb_test_022.cpp",
]
sources += sources_full
}
configs = [
"../..:public_config",
":net_local_config",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
"full/net_netdb_test_002.cpp",
"full/net_netdb_test_003.cpp",
"full/net_netdb_test_004.cpp",
"full/net_netdb_test_005.cpp",
"full/net_netdb_test_006.cpp",
"full/net_netdb_test_007.cpp",
"full/net_netdb_test_008.cpp",
"full/net_netdb_test_009.cpp",
"full/net_netdb_test_010.cpp",
"full/net_netdb_test_011.cpp",
"full/net_netdb_test_012.cpp",
"full/net_netdb_test_014.cpp",
"full/net_netdb_test_015.cpp",
"full/net_netdb_test_016.cpp",
"full/net_netdb_test_017.cpp",
"full/net_netdb_test_018.cpp",
"full/net_netdb_test_019.cpp",
"full/net_netdb_test_020.cpp",
"full/net_netdb_test_021.cpp",
"full/net_netdb_test_022.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
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
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
configs += [ ":net_local_config" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -49,7 +49,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL) && defined(LOSCFG_USER_TEST_NET_NETDB)
#if defined(LOSCFG_USER_TEST_SMOKE) && defined(LOSCFG_USER_TEST_NET_NETDB)
/* *
* @tc.name: NetNetDbTest001
* @tc.desc: function for NetDbTest

View File

@ -37,32 +37,62 @@ config("net_local_config") {
}
}
unittest("liteos_a_net_resolv_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"./",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"net_resolv_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"net_resolv_test.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/net_resolv_test_001.cpp",
"full/net_resolv_test_002.cpp",
"full/net_resolv_test_003.cpp",
"full/net_resolv_test_004.cpp",
"full/net_resolv_test_005.cpp",
"full/net_resolv_test_006.cpp",
"full/net_resolv_test_007.cpp",
"full/net_resolv_test_008.cpp",
]
sources += sources_full
}
configs = [
"../..:public_config",
":net_local_config",
"smoke/net_resolv_test_001.cpp",
"smoke/net_resolv_test_002.cpp",
"smoke/net_resolv_test_003.cpp",
"smoke/net_resolv_test_006.cpp",
"smoke/net_resolv_test_007.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
"full/net_resolv_test_004.cpp",
"full/net_resolv_test_005.cpp",
"full/net_resolv_test_008.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
configs += [ ":net_local_config" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -52,7 +52,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL) && defined(LOSCFG_USER_TEST_NET_RESOLV)
#if defined(LOSCFG_USER_TEST_SMOKE) && defined(LOSCFG_USER_TEST_NET_RESOLV)
/* *
* @tc.name: NetResolvTest001
* @tc.desc: function for NetResolvTest

View File

@ -37,38 +37,67 @@ config("net_local_config") {
}
}
unittest("liteos_a_net_socket_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../net/socket",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"net_socket_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"net_socket_test.cpp",
"smoke/net_socket_test_001.cpp",
"smoke/net_socket_test_002.cpp",
"smoke/net_socket_test_003.cpp",
"smoke/net_socket_test_004.cpp",
"smoke/net_socket_test_005.cpp",
"smoke/net_socket_test_006.cpp",
"smoke/net_socket_test_007.cpp",
"smoke/net_socket_test_008.cpp",
"smoke/net_socket_test_009.cpp",
"smoke/net_socket_test_010.cpp",
"smoke/net_socket_test_011.cpp",
"smoke/net_socket_test_012.cpp",
"smoke/net_socket_test_013.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/net_socket_test_001.cpp",
"smoke/net_socket_test_002.cpp",
"smoke/net_socket_test_003.cpp",
"smoke/net_socket_test_004.cpp",
"smoke/net_socket_test_005.cpp",
"smoke/net_socket_test_006.cpp",
"smoke/net_socket_test_007.cpp",
"smoke/net_socket_test_008.cpp",
"smoke/net_socket_test_009.cpp",
"smoke/net_socket_test_010.cpp",
"smoke/net_socket_test_011.cpp",
"smoke/net_socket_test_012.cpp",
"smoke/net_socket_test_013.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [
"../../:public_config",
":net_local_config",
]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
configs += [ ":net_local_config" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,26 +30,54 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_posix_mem_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../posix/mem",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"posix_mem_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"posix_mem_test.cpp",
"smoke/It_posix_mem_001.cpp",
"smoke/It_posix_mem_003.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/It_posix_mem_001.cpp",
"smoke/It_posix_mem_003.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -35,180 +35,204 @@ config("mqueue_config") {
cflags_cc = cflags
}
unittest("liteos_a_posix_mqueue_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../posix/mqueue",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"posix_mqueue_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"posix_mqueue_test.cpp",
"smoke/It_posix_queue_001.cpp",
"smoke/It_posix_queue_003.cpp",
"smoke/It_posix_queue_028.cpp",
"smoke/It_posix_queue_053.cpp",
"smoke/It_posix_queue_144.cpp",
"smoke/It_posix_queue_062.cpp",
"smoke/It_posix_queue_205.cpp",
"smoke/It_posix_queue_206.cpp",
"smoke/It_posix_queue_207.cpp",
"smoke/It_posix_queue_208.cpp",
"smoke/It_posix_queue_209.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/It_posix_queue_002.cpp",
"full/It_posix_queue_005.cpp",
"full/It_posix_queue_008.cpp",
"full/It_posix_queue_011.cpp",
"full/It_posix_queue_013.cpp",
"full/It_posix_queue_014.cpp",
"full/It_posix_queue_015.cpp",
"full/It_posix_queue_016.cpp",
"full/It_posix_queue_018.cpp",
"full/It_posix_queue_019.cpp",
"full/It_posix_queue_020.cpp",
"full/It_posix_queue_021.cpp",
"full/It_posix_queue_025.cpp",
"full/It_posix_queue_026.cpp",
"full/It_posix_queue_027.cpp",
"full/It_posix_queue_030.cpp",
"full/It_posix_queue_031.cpp",
"full/It_posix_queue_032.cpp",
"full/It_posix_queue_033.cpp",
"full/It_posix_queue_036.cpp",
"full/It_posix_queue_038.cpp",
"full/It_posix_queue_040.cpp",
"full/It_posix_queue_041.cpp",
"full/It_posix_queue_042.cpp",
"full/It_posix_queue_043.cpp",
"full/It_posix_queue_044.cpp",
"full/It_posix_queue_046.cpp",
"full/It_posix_queue_047.cpp",
"full/It_posix_queue_048.cpp",
"full/It_posix_queue_049.cpp",
"full/It_posix_queue_050.cpp",
"full/It_posix_queue_052.cpp",
"full/It_posix_queue_054.cpp",
"full/It_posix_queue_055.cpp",
"full/It_posix_queue_056.cpp",
"full/It_posix_queue_057.cpp",
"full/It_posix_queue_058.cpp",
"full/It_posix_queue_060.cpp",
"full/It_posix_queue_061.cpp",
"full/It_posix_queue_063.cpp",
"full/It_posix_queue_064.cpp",
"full/It_posix_queue_065.cpp",
"full/It_posix_queue_066.cpp",
"full/It_posix_queue_067.cpp",
"full/It_posix_queue_069.cpp",
"full/It_posix_queue_070.cpp",
"full/It_posix_queue_071.cpp",
"full/It_posix_queue_072.cpp",
"full/It_posix_queue_073.cpp",
"full/It_posix_queue_074.cpp",
"full/It_posix_queue_075.cpp",
"full/It_posix_queue_076.cpp",
"full/It_posix_queue_077.cpp",
"full/It_posix_queue_078.cpp",
"full/It_posix_queue_079.cpp",
"full/It_posix_queue_080.cpp",
"full/It_posix_queue_081.cpp",
"full/It_posix_queue_082.cpp",
"full/It_posix_queue_083.cpp",
"full/It_posix_queue_084.cpp",
"full/It_posix_queue_085.cpp",
"full/It_posix_queue_086.cpp",
"full/It_posix_queue_087.cpp",
"full/It_posix_queue_088.cpp",
"full/It_posix_queue_089.cpp",
"full/It_posix_queue_090.cpp",
"full/It_posix_queue_091.cpp",
"full/It_posix_queue_093.cpp",
"full/It_posix_queue_094.cpp",
"full/It_posix_queue_095.cpp",
"full/It_posix_queue_096.cpp",
"full/It_posix_queue_097.cpp",
"full/It_posix_queue_098.cpp",
"full/It_posix_queue_100.cpp",
"full/It_posix_queue_101.cpp",
"full/It_posix_queue_102.cpp",
"full/It_posix_queue_103.cpp",
"full/It_posix_queue_104.cpp",
"full/It_posix_queue_106.cpp",
"full/It_posix_queue_108.cpp",
"full/It_posix_queue_109.cpp",
"full/It_posix_queue_110.cpp",
"full/It_posix_queue_111.cpp",
"full/It_posix_queue_112.cpp",
"full/It_posix_queue_113.cpp",
"full/It_posix_queue_114.cpp",
"full/It_posix_queue_115.cpp",
"full/It_posix_queue_116.cpp",
"full/It_posix_queue_117.cpp",
"full/It_posix_queue_118.cpp",
"full/It_posix_queue_119.cpp",
"full/It_posix_queue_120.cpp",
"full/It_posix_queue_121.cpp",
"full/It_posix_queue_122.cpp",
"full/It_posix_queue_123.cpp",
"full/It_posix_queue_124.cpp",
"full/It_posix_queue_125.cpp",
"full/It_posix_queue_126.cpp",
"full/It_posix_queue_127.cpp",
"full/It_posix_queue_128.cpp",
"full/It_posix_queue_129.cpp",
"full/It_posix_queue_130.cpp",
"full/It_posix_queue_133.cpp",
"full/It_posix_queue_134.cpp",
"full/It_posix_queue_136.cpp",
"full/It_posix_queue_143.cpp",
"full/It_posix_queue_145.cpp",
"full/It_posix_queue_146.cpp",
"full/It_posix_queue_147.cpp",
"full/It_posix_queue_148.cpp",
"full/It_posix_queue_149.cpp",
"full/It_posix_queue_150.cpp",
"full/It_posix_queue_151.cpp",
"full/It_posix_queue_152.cpp",
"full/It_posix_queue_153.cpp",
"full/It_posix_queue_154.cpp",
"full/It_posix_queue_155.cpp",
"full/It_posix_queue_156.cpp",
"full/It_posix_queue_157.cpp",
"full/It_posix_queue_159.cpp",
"full/It_posix_queue_160.cpp",
"full/It_posix_queue_161.cpp",
"full/It_posix_queue_162.cpp",
"full/It_posix_queue_163.cpp",
"full/It_posix_queue_164.cpp",
"full/It_posix_queue_165.cpp",
"full/It_posix_queue_166.cpp",
"full/It_posix_queue_168.cpp",
"full/It_posix_queue_169.cpp",
"full/It_posix_queue_173.cpp",
"full/It_posix_queue_175.cpp",
"full/It_posix_queue_176.cpp",
"full/It_posix_queue_177.cpp",
"full/It_posix_queue_187.cpp",
"full/It_posix_queue_200.cpp",
"full/It_posix_queue_201.cpp",
"full/It_posix_queue_202.cpp",
"full/It_posix_queue_203.cpp",
"full/It_posix_queue_204.cpp",
]
sources += sources_full
}
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/It_posix_queue_001.cpp",
"smoke/It_posix_queue_003.cpp",
"smoke/It_posix_queue_028.cpp",
"smoke/It_posix_queue_053.cpp",
"smoke/It_posix_queue_144.cpp",
"smoke/It_posix_queue_062.cpp",
"smoke/It_posix_queue_205.cpp",
"smoke/It_posix_queue_206.cpp",
"smoke/It_posix_queue_207.cpp",
"smoke/It_posix_queue_208.cpp",
"smoke/It_posix_queue_209.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
configs += [ ":mqueue_config" ]
}
source_set("sources_other") {
sources = [
"full/It_posix_queue_002.cpp",
"full/It_posix_queue_005.cpp",
"full/It_posix_queue_008.cpp",
"full/It_posix_queue_011.cpp",
"full/It_posix_queue_013.cpp",
"full/It_posix_queue_014.cpp",
"full/It_posix_queue_015.cpp",
"full/It_posix_queue_016.cpp",
"full/It_posix_queue_018.cpp",
"full/It_posix_queue_019.cpp",
"full/It_posix_queue_020.cpp",
"full/It_posix_queue_021.cpp",
"full/It_posix_queue_025.cpp",
"full/It_posix_queue_026.cpp",
"full/It_posix_queue_027.cpp",
"full/It_posix_queue_030.cpp",
"full/It_posix_queue_031.cpp",
"full/It_posix_queue_032.cpp",
"full/It_posix_queue_033.cpp",
"full/It_posix_queue_036.cpp",
"full/It_posix_queue_038.cpp",
"full/It_posix_queue_040.cpp",
"full/It_posix_queue_041.cpp",
"full/It_posix_queue_042.cpp",
"full/It_posix_queue_043.cpp",
"full/It_posix_queue_044.cpp",
"full/It_posix_queue_046.cpp",
"full/It_posix_queue_047.cpp",
"full/It_posix_queue_048.cpp",
"full/It_posix_queue_049.cpp",
"full/It_posix_queue_050.cpp",
"full/It_posix_queue_052.cpp",
"full/It_posix_queue_054.cpp",
"full/It_posix_queue_055.cpp",
"full/It_posix_queue_056.cpp",
"full/It_posix_queue_057.cpp",
"full/It_posix_queue_058.cpp",
"full/It_posix_queue_060.cpp",
"full/It_posix_queue_061.cpp",
"full/It_posix_queue_063.cpp",
"full/It_posix_queue_064.cpp",
"full/It_posix_queue_065.cpp",
"full/It_posix_queue_066.cpp",
"full/It_posix_queue_067.cpp",
"full/It_posix_queue_069.cpp",
"full/It_posix_queue_070.cpp",
"full/It_posix_queue_071.cpp",
"full/It_posix_queue_072.cpp",
"full/It_posix_queue_073.cpp",
"full/It_posix_queue_074.cpp",
"full/It_posix_queue_075.cpp",
"full/It_posix_queue_076.cpp",
"full/It_posix_queue_077.cpp",
"full/It_posix_queue_078.cpp",
"full/It_posix_queue_079.cpp",
"full/It_posix_queue_080.cpp",
"full/It_posix_queue_081.cpp",
"full/It_posix_queue_082.cpp",
"full/It_posix_queue_083.cpp",
"full/It_posix_queue_084.cpp",
"full/It_posix_queue_085.cpp",
"full/It_posix_queue_086.cpp",
"full/It_posix_queue_087.cpp",
"full/It_posix_queue_088.cpp",
"full/It_posix_queue_089.cpp",
"full/It_posix_queue_090.cpp",
"full/It_posix_queue_091.cpp",
"full/It_posix_queue_093.cpp",
"full/It_posix_queue_094.cpp",
"full/It_posix_queue_095.cpp",
"full/It_posix_queue_096.cpp",
"full/It_posix_queue_097.cpp",
"full/It_posix_queue_098.cpp",
"full/It_posix_queue_100.cpp",
"full/It_posix_queue_101.cpp",
"full/It_posix_queue_102.cpp",
"full/It_posix_queue_103.cpp",
"full/It_posix_queue_104.cpp",
"full/It_posix_queue_106.cpp",
"full/It_posix_queue_108.cpp",
"full/It_posix_queue_109.cpp",
"full/It_posix_queue_110.cpp",
"full/It_posix_queue_111.cpp",
"full/It_posix_queue_112.cpp",
"full/It_posix_queue_113.cpp",
"full/It_posix_queue_114.cpp",
"full/It_posix_queue_115.cpp",
"full/It_posix_queue_116.cpp",
"full/It_posix_queue_117.cpp",
"full/It_posix_queue_118.cpp",
"full/It_posix_queue_119.cpp",
"full/It_posix_queue_120.cpp",
"full/It_posix_queue_121.cpp",
"full/It_posix_queue_122.cpp",
"full/It_posix_queue_123.cpp",
"full/It_posix_queue_124.cpp",
"full/It_posix_queue_125.cpp",
"full/It_posix_queue_126.cpp",
"full/It_posix_queue_127.cpp",
"full/It_posix_queue_128.cpp",
"full/It_posix_queue_129.cpp",
"full/It_posix_queue_130.cpp",
"full/It_posix_queue_133.cpp",
"full/It_posix_queue_134.cpp",
"full/It_posix_queue_136.cpp",
"full/It_posix_queue_143.cpp",
"full/It_posix_queue_145.cpp",
"full/It_posix_queue_146.cpp",
"full/It_posix_queue_147.cpp",
"full/It_posix_queue_148.cpp",
"full/It_posix_queue_149.cpp",
"full/It_posix_queue_150.cpp",
"full/It_posix_queue_151.cpp",
"full/It_posix_queue_152.cpp",
"full/It_posix_queue_153.cpp",
"full/It_posix_queue_154.cpp",
"full/It_posix_queue_155.cpp",
"full/It_posix_queue_156.cpp",
"full/It_posix_queue_157.cpp",
"full/It_posix_queue_159.cpp",
"full/It_posix_queue_160.cpp",
"full/It_posix_queue_161.cpp",
"full/It_posix_queue_162.cpp",
"full/It_posix_queue_163.cpp",
"full/It_posix_queue_164.cpp",
"full/It_posix_queue_165.cpp",
"full/It_posix_queue_166.cpp",
"full/It_posix_queue_168.cpp",
"full/It_posix_queue_169.cpp",
"full/It_posix_queue_173.cpp",
"full/It_posix_queue_175.cpp",
"full/It_posix_queue_176.cpp",
"full/It_posix_queue_177.cpp",
"full/It_posix_queue_187.cpp",
"full/It_posix_queue_200.cpp",
"full/It_posix_queue_201.cpp",
"full/It_posix_queue_202.cpp",
"full/It_posix_queue_203.cpp",
"full/It_posix_queue_204.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
configs += [ ":mqueue_config" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -35,143 +35,169 @@ config("pthread_config") {
cflags_cc = cflags
}
unittest("liteos_a_posix_pthread_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../posix/pthread",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"posix_pthread_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"posix_pthread_test.cpp",
"smoke/It_posix_pthread_003.cpp",
"smoke/It_posix_pthread_004.cpp",
"smoke/It_posix_pthread_005.cpp",
"smoke/It_posix_pthread_006.cpp",
"smoke/It_posix_pthread_018.cpp",
"smoke/It_posix_pthread_019.cpp",
"smoke/It_posix_pthread_020.cpp",
"smoke/It_posix_pthread_021.cpp",
"smoke/It_posix_pthread_022.cpp",
"smoke/It_posix_pthread_203.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/It_posix_pthread_003.cpp",
"smoke/It_posix_pthread_004.cpp",
"smoke/It_posix_pthread_005.cpp",
"smoke/It_posix_pthread_006.cpp",
"smoke/It_posix_pthread_018.cpp",
"smoke/It_posix_pthread_019.cpp",
"smoke/It_posix_pthread_020.cpp",
"smoke/It_posix_pthread_021.cpp",
"smoke/It_posix_pthread_022.cpp",
"smoke/It_posix_pthread_203.cpp",
]
sources += sources_smoke
}
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/It_posix_pthread_001.cpp",
"full/It_posix_pthread_002.cpp",
"full/It_posix_pthread_007.cpp",
"full/It_posix_pthread_010.cpp",
"full/It_posix_pthread_011.cpp",
"full/It_posix_pthread_013.cpp",
"full/It_posix_pthread_023.cpp",
"full/It_posix_pthread_025.cpp",
"full/It_posix_pthread_026.cpp",
"full/It_posix_pthread_027.cpp",
"full/It_posix_pthread_028.cpp",
"full/It_posix_pthread_029.cpp",
"full/It_posix_pthread_030.cpp",
"full/It_posix_pthread_031.cpp",
"full/It_posix_pthread_034.cpp",
"full/It_posix_pthread_035.cpp",
"full/It_posix_pthread_039.cpp",
"full/It_posix_pthread_040.cpp",
"full/It_posix_pthread_042.cpp",
"full/It_posix_pthread_044.cpp",
"full/It_posix_pthread_045.cpp",
"full/It_posix_pthread_046.cpp",
"full/It_posix_pthread_051.cpp",
"full/It_posix_pthread_052.cpp",
"full/It_posix_pthread_053.cpp",
"full/It_posix_pthread_054.cpp",
"full/It_posix_pthread_055.cpp",
"full/It_posix_pthread_057.cpp",
"full/It_posix_pthread_059.cpp",
"full/It_posix_pthread_060.cpp",
"full/It_posix_pthread_061.cpp",
"full/It_posix_pthread_062.cpp",
"full/It_posix_pthread_063.cpp",
"full/It_posix_pthread_064.cpp",
"full/It_posix_pthread_066.cpp",
"full/It_posix_pthread_069.cpp",
"full/It_posix_pthread_070.cpp",
"full/It_posix_pthread_071.cpp",
"full/It_posix_pthread_072.cpp",
"full/It_posix_pthread_073.cpp",
"full/It_posix_pthread_074.cpp",
"full/It_posix_pthread_078.cpp",
"full/It_posix_pthread_079.cpp",
"full/It_posix_pthread_080.cpp",
"full/It_posix_pthread_081.cpp",
"full/It_posix_pthread_082.cpp",
"full/It_posix_pthread_083.cpp",
"full/It_posix_pthread_084.cpp",
"full/It_posix_pthread_085.cpp",
"full/It_posix_pthread_087.cpp",
"full/It_posix_pthread_088.cpp",
"full/It_posix_pthread_089.cpp",
"full/It_posix_pthread_090.cpp",
"full/It_posix_pthread_091.cpp",
"full/It_posix_pthread_092.cpp",
"full/It_posix_pthread_094.cpp",
"full/It_posix_pthread_095.cpp",
"full/It_posix_pthread_106.cpp",
"full/It_posix_pthread_107.cpp",
"full/It_posix_pthread_116.cpp",
"full/It_posix_pthread_123.cpp",
"full/It_posix_pthread_124.cpp",
"full/It_posix_pthread_125.cpp",
"full/It_posix_pthread_127.cpp",
"full/It_posix_pthread_129.cpp",
"full/It_posix_pthread_132.cpp",
"full/It_posix_pthread_133.cpp",
"full/It_posix_pthread_134.cpp",
"full/It_posix_pthread_136.cpp",
"full/It_posix_pthread_138.cpp",
"full/It_posix_pthread_141.cpp",
"full/It_posix_pthread_142.cpp",
"full/It_posix_pthread_144.cpp",
"full/It_posix_pthread_152.cpp",
"full/It_posix_pthread_154.cpp",
"full/It_posix_pthread_166.cpp",
"full/It_posix_pthread_167.cpp",
"full/It_posix_pthread_173.cpp",
"full/It_posix_pthread_175.cpp",
"full/It_posix_pthread_176.cpp",
"full/It_posix_pthread_177.cpp",
"full/It_posix_pthread_182.cpp",
"full/It_posix_pthread_185.cpp",
"full/It_posix_pthread_186.cpp",
"full/It_posix_pthread_187.cpp",
"full/It_posix_pthread_188.cpp",
"full/It_posix_pthread_193.cpp",
"full/It_posix_pthread_194.cpp",
"full/It_posix_pthread_200.cpp",
"full/It_posix_pthread_204.cpp",
"full/It_posix_pthread_205.cpp",
"full/It_posix_pthread_206.cpp",
"full/It_posix_pthread_209.cpp",
"full/It_posix_pthread_213.cpp",
"full/It_posix_pthread_217.cpp",
"full/It_posix_pthread_218.cpp",
"full/It_posix_pthread_219.cpp",
"full/It_posix_pthread_221.cpp",
"full/It_posix_pthread_224.cpp",
"full/It_posix_pthread_226.cpp",
"full/It_posix_pthread_233.cpp",
"full/It_posix_pthread_238.cpp",
"full/It_posix_pthread_239.cpp",
"full/It_posix_pthread_240.cpp",
"full/It_posix_pthread_241.cpp",
]
sources += sources_full
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
configs += [ ":pthread_config" ]
}
source_set("sources_other") {
sources = [
"full/It_posix_pthread_001.cpp",
"full/It_posix_pthread_002.cpp",
"full/It_posix_pthread_007.cpp",
"full/It_posix_pthread_010.cpp",
"full/It_posix_pthread_011.cpp",
"full/It_posix_pthread_013.cpp",
"full/It_posix_pthread_023.cpp",
"full/It_posix_pthread_025.cpp",
"full/It_posix_pthread_026.cpp",
"full/It_posix_pthread_027.cpp",
"full/It_posix_pthread_028.cpp",
"full/It_posix_pthread_029.cpp",
"full/It_posix_pthread_030.cpp",
"full/It_posix_pthread_031.cpp",
"full/It_posix_pthread_034.cpp",
"full/It_posix_pthread_035.cpp",
"full/It_posix_pthread_039.cpp",
"full/It_posix_pthread_040.cpp",
"full/It_posix_pthread_042.cpp",
"full/It_posix_pthread_044.cpp",
"full/It_posix_pthread_045.cpp",
"full/It_posix_pthread_046.cpp",
"full/It_posix_pthread_051.cpp",
"full/It_posix_pthread_052.cpp",
"full/It_posix_pthread_053.cpp",
"full/It_posix_pthread_054.cpp",
"full/It_posix_pthread_055.cpp",
"full/It_posix_pthread_057.cpp",
"full/It_posix_pthread_059.cpp",
"full/It_posix_pthread_060.cpp",
"full/It_posix_pthread_061.cpp",
"full/It_posix_pthread_062.cpp",
"full/It_posix_pthread_063.cpp",
"full/It_posix_pthread_064.cpp",
"full/It_posix_pthread_066.cpp",
"full/It_posix_pthread_069.cpp",
"full/It_posix_pthread_070.cpp",
"full/It_posix_pthread_071.cpp",
"full/It_posix_pthread_072.cpp",
"full/It_posix_pthread_073.cpp",
"full/It_posix_pthread_074.cpp",
"full/It_posix_pthread_078.cpp",
"full/It_posix_pthread_079.cpp",
"full/It_posix_pthread_080.cpp",
"full/It_posix_pthread_081.cpp",
"full/It_posix_pthread_082.cpp",
"full/It_posix_pthread_083.cpp",
"full/It_posix_pthread_084.cpp",
"full/It_posix_pthread_085.cpp",
"full/It_posix_pthread_087.cpp",
"full/It_posix_pthread_088.cpp",
"full/It_posix_pthread_089.cpp",
"full/It_posix_pthread_090.cpp",
"full/It_posix_pthread_091.cpp",
"full/It_posix_pthread_092.cpp",
"full/It_posix_pthread_094.cpp",
"full/It_posix_pthread_095.cpp",
"full/It_posix_pthread_106.cpp",
"full/It_posix_pthread_107.cpp",
"full/It_posix_pthread_116.cpp",
"full/It_posix_pthread_123.cpp",
"full/It_posix_pthread_124.cpp",
"full/It_posix_pthread_125.cpp",
"full/It_posix_pthread_127.cpp",
"full/It_posix_pthread_129.cpp",
"full/It_posix_pthread_132.cpp",
"full/It_posix_pthread_133.cpp",
"full/It_posix_pthread_134.cpp",
"full/It_posix_pthread_136.cpp",
"full/It_posix_pthread_138.cpp",
"full/It_posix_pthread_141.cpp",
"full/It_posix_pthread_142.cpp",
"full/It_posix_pthread_144.cpp",
"full/It_posix_pthread_152.cpp",
"full/It_posix_pthread_154.cpp",
"full/It_posix_pthread_166.cpp",
"full/It_posix_pthread_167.cpp",
"full/It_posix_pthread_173.cpp",
"full/It_posix_pthread_175.cpp",
"full/It_posix_pthread_176.cpp",
"full/It_posix_pthread_177.cpp",
"full/It_posix_pthread_182.cpp",
"full/It_posix_pthread_185.cpp",
"full/It_posix_pthread_186.cpp",
"full/It_posix_pthread_187.cpp",
"full/It_posix_pthread_188.cpp",
"full/It_posix_pthread_193.cpp",
"full/It_posix_pthread_194.cpp",
"full/It_posix_pthread_200.cpp",
"full/It_posix_pthread_204.cpp",
"full/It_posix_pthread_205.cpp",
"full/It_posix_pthread_206.cpp",
"full/It_posix_pthread_209.cpp",
"full/It_posix_pthread_213.cpp",
"full/It_posix_pthread_217.cpp",
"full/It_posix_pthread_218.cpp",
"full/It_posix_pthread_219.cpp",
"full/It_posix_pthread_221.cpp",
"full/It_posix_pthread_224.cpp",
"full/It_posix_pthread_226.cpp",
"full/It_posix_pthread_233.cpp",
"full/It_posix_pthread_238.cpp",
"full/It_posix_pthread_239.cpp",
"full/It_posix_pthread_240.cpp",
"full/It_posix_pthread_241.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
configs += [ ":pthread_config" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,47 +30,77 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_mutex_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../process/mutex",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"process_mutex_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"process_mutex_test.cpp",
"smoke/pthread_mutex_test_001.cpp",
"smoke/pthread_mutex_test_002.cpp",
"smoke/pthread_mutex_test_003.cpp",
"smoke/pthread_mutex_test_004.cpp",
"smoke/pthread_mutex_test_005.cpp",
"smoke/pthread_mutex_test_006.cpp",
"smoke/pthread_mutex_test_007.cpp",
"smoke/pthread_mutex_test_008.cpp",
"smoke/pthread_mutex_test_009.cpp",
"smoke/pthread_mutex_test_010.cpp",
"smoke/pthread_mutex_test_011.cpp",
"smoke/pthread_mutex_test_012.cpp",
"smoke/pthread_mutex_test_013.cpp",
"smoke/pthread_mutex_test_014.cpp",
"smoke/pthread_mutex_test_015.cpp",
"smoke/pthread_mutex_test_016.cpp",
"smoke/pthread_mutex_test_017.cpp",
"smoke/pthread_mutex_test_018.cpp",
"smoke/pthread_mutex_test_019.cpp",
"smoke/pthread_mutex_test_020.cpp",
"smoke/pthread_mutex_test_021.cpp",
"smoke/pthread_mutex_test_022.cpp",
"smoke/pthread_mutex_test_023.cpp",
"smoke/pthread_mutex_test_024.cpp",
"smoke/pthread_mutex_test_025.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/pthread_mutex_test_001.cpp",
"smoke/pthread_mutex_test_002.cpp",
"smoke/pthread_mutex_test_003.cpp",
"smoke/pthread_mutex_test_004.cpp",
"smoke/pthread_mutex_test_005.cpp",
"smoke/pthread_mutex_test_006.cpp",
"smoke/pthread_mutex_test_007.cpp",
"smoke/pthread_mutex_test_008.cpp",
"smoke/pthread_mutex_test_009.cpp",
"smoke/pthread_mutex_test_010.cpp",
"smoke/pthread_mutex_test_011.cpp",
"smoke/pthread_mutex_test_012.cpp",
"smoke/pthread_mutex_test_013.cpp",
"smoke/pthread_mutex_test_014.cpp",
"smoke/pthread_mutex_test_015.cpp",
"smoke/pthread_mutex_test_016.cpp",
"smoke/pthread_mutex_test_017.cpp",
"smoke/pthread_mutex_test_018.cpp",
"smoke/pthread_mutex_test_019.cpp",
"smoke/pthread_mutex_test_020.cpp",
"smoke/pthread_mutex_test_021.cpp",
"smoke/pthread_mutex_test_022.cpp",
"smoke/pthread_mutex_test_023.cpp",
"smoke/pthread_mutex_test_024.cpp",
"smoke/pthread_mutex_test_025.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,96 +30,126 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_process_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../process/process",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"process_process_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"process_process_test.cpp",
"smoke/process_test_001.cpp",
"smoke/process_test_002.cpp",
"smoke/process_test_004.cpp",
"smoke/process_test_005.cpp",
"smoke/process_test_006.cpp",
"smoke/process_test_007.cpp",
"smoke/process_test_008.cpp",
"smoke/process_test_009.cpp",
"smoke/process_test_010.cpp",
"smoke/process_test_011.cpp",
"smoke/process_test_012.cpp",
"smoke/process_test_013.cpp",
"smoke/process_test_014.cpp",
"smoke/process_test_015.cpp",
"smoke/process_test_016.cpp",
"smoke/process_test_017.cpp",
"smoke/process_test_018.cpp",
"smoke/process_test_019.cpp",
"smoke/process_test_020.cpp",
"smoke/process_test_021.cpp",
"smoke/process_test_022.cpp",
"smoke/process_test_023.cpp",
"smoke/process_test_024.cpp",
"smoke/process_test_025.cpp",
"smoke/process_test_026.cpp",
"smoke/process_test_027.cpp",
"smoke/process_test_029.cpp",
"smoke/process_test_030.cpp",
"smoke/process_test_031.cpp",
"smoke/process_test_032.cpp",
"smoke/process_test_033.cpp",
"smoke/process_test_034.cpp",
"smoke/process_test_035.cpp",
"smoke/process_test_036.cpp",
"smoke/process_test_037.cpp",
"smoke/process_test_038.cpp",
"smoke/process_test_039.cpp",
"smoke/process_test_040.cpp",
"smoke/process_test_041.cpp",
"smoke/process_test_042.cpp",
"smoke/process_test_043.cpp",
"smoke/process_test_044.cpp",
"smoke/process_test_045.cpp",
"smoke/process_test_046.cpp",
"smoke/process_test_047.cpp",
"smoke/process_test_048.cpp",
"smoke/process_test_049.cpp",
"smoke/process_test_050.cpp",
"smoke/process_test_051.cpp",
"smoke/process_test_053.cpp",
"smoke/process_test_054.cpp",
"smoke/process_test_055.cpp",
"smoke/process_test_056.cpp",
"smoke/process_test_057.cpp",
"smoke/process_test_058.cpp",
"smoke/process_test_059.cpp",
"smoke/process_test_060.cpp",
"smoke/process_test_061.cpp",
"smoke/process_test_062.cpp",
"smoke/process_test_063.cpp",
"smoke/process_test_064.cpp",
"smoke/process_test_065.cpp",
"smoke/process_test_066.cpp",
"smoke/process_test_067.cpp",
"smoke/process_test_068.cpp",
"smoke/process_test_069.cpp",
"smp/process_test_smp_001.cpp",
"smp/process_test_smp_002.cpp",
"smp/process_test_smp_003.cpp",
"smp/process_test_smp_004.cpp",
"smp/process_test_smp_005.cpp",
"smp/process_test_smp_006.cpp",
"smp/process_test_smp_007.cpp",
"smp/process_test_smp_008.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/process_test_001.cpp",
"smoke/process_test_002.cpp",
"smoke/process_test_004.cpp",
"smoke/process_test_005.cpp",
"smoke/process_test_006.cpp",
"smoke/process_test_007.cpp",
"smoke/process_test_008.cpp",
"smoke/process_test_009.cpp",
"smoke/process_test_010.cpp",
"smoke/process_test_011.cpp",
"smoke/process_test_012.cpp",
"smoke/process_test_013.cpp",
"smoke/process_test_014.cpp",
"smoke/process_test_015.cpp",
"smoke/process_test_016.cpp",
"smoke/process_test_017.cpp",
"smoke/process_test_018.cpp",
"smoke/process_test_019.cpp",
"smoke/process_test_020.cpp",
"smoke/process_test_021.cpp",
"smoke/process_test_022.cpp",
"smoke/process_test_023.cpp",
"smoke/process_test_024.cpp",
"smoke/process_test_025.cpp",
"smoke/process_test_026.cpp",
"smoke/process_test_027.cpp",
"smoke/process_test_029.cpp",
"smoke/process_test_030.cpp",
"smoke/process_test_031.cpp",
"smoke/process_test_032.cpp",
"smoke/process_test_033.cpp",
"smoke/process_test_034.cpp",
"smoke/process_test_035.cpp",
"smoke/process_test_036.cpp",
"smoke/process_test_037.cpp",
"smoke/process_test_038.cpp",
"smoke/process_test_039.cpp",
"smoke/process_test_040.cpp",
"smoke/process_test_041.cpp",
"smoke/process_test_042.cpp",
"smoke/process_test_043.cpp",
"smoke/process_test_044.cpp",
"smoke/process_test_045.cpp",
"smoke/process_test_046.cpp",
"smoke/process_test_047.cpp",
"smoke/process_test_048.cpp",
"smoke/process_test_049.cpp",
"smoke/process_test_050.cpp",
"smoke/process_test_051.cpp",
"smoke/process_test_053.cpp",
"smoke/process_test_054.cpp",
"smoke/process_test_055.cpp",
"smoke/process_test_056.cpp",
"smoke/process_test_057.cpp",
"smoke/process_test_058.cpp",
"smoke/process_test_059.cpp",
"smoke/process_test_060.cpp",
"smoke/process_test_061.cpp",
"smoke/process_test_062.cpp",
"smoke/process_test_063.cpp",
"smoke/process_test_064.cpp",
"smoke/process_test_065.cpp",
"smoke/process_test_066.cpp",
"smoke/process_test_067.cpp",
"smoke/process_test_068.cpp",
"smoke/process_test_069.cpp",
"smp/process_test_smp_001.cpp",
"smp/process_test_smp_002.cpp",
"smp/process_test_smp_003.cpp",
"smp/process_test_smp_004.cpp",
"smp/process_test_smp_005.cpp",
"smp/process_test_smp_006.cpp",
"smp/process_test_smp_007.cpp",
"smp/process_test_smp_008.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,46 +30,76 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_pthread_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../process/pthread",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"process_pthread_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"process_pthread_test.cpp",
"smoke/pthread_atfork_test_001.cpp",
"smoke/pthread_atfork_test_002.cpp",
"smoke/pthread_cond_test_001.cpp",
"smoke/pthread_cond_test_002.cpp",
"smoke/pthread_once_test_001.cpp",
"smoke/pthread_test_001.cpp",
"smoke/pthread_test_002.cpp",
"smoke/pthread_test_003.cpp",
"smoke/pthread_test_004.cpp",
"smoke/pthread_test_005.cpp",
"smoke/pthread_test_006.cpp",
"smoke/pthread_test_007.cpp",
"smoke/pthread_test_008.cpp",
"smoke/pthread_test_009.cpp",
"smoke/pthread_test_010.cpp",
"smoke/pthread_test_011.cpp",
"smoke/pthread_test_012.cpp",
"smoke/pthread_test_013.cpp",
"smoke/pthread_test_014.cpp",
"smoke/pthread_test_015.cpp",
"smoke/pthread_test_016.cpp",
"smoke/pthread_test_017.cpp",
"smoke/pthread_test_018.cpp",
"smoke/pthread_test_019.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/pthread_atfork_test_001.cpp",
"smoke/pthread_atfork_test_002.cpp",
"smoke/pthread_cond_test_001.cpp",
"smoke/pthread_cond_test_002.cpp",
"smoke/pthread_once_test_001.cpp",
"smoke/pthread_test_001.cpp",
"smoke/pthread_test_002.cpp",
"smoke/pthread_test_003.cpp",
"smoke/pthread_test_004.cpp",
"smoke/pthread_test_005.cpp",
"smoke/pthread_test_006.cpp",
"smoke/pthread_test_007.cpp",
"smoke/pthread_test_008.cpp",
"smoke/pthread_test_009.cpp",
"smoke/pthread_test_010.cpp",
"smoke/pthread_test_011.cpp",
"smoke/pthread_test_012.cpp",
"smoke/pthread_test_013.cpp",
"smoke/pthread_test_014.cpp",
"smoke/pthread_test_015.cpp",
"smoke/pthread_test_016.cpp",
"smoke/pthread_test_017.cpp",
"smoke/pthread_test_018.cpp",
"smoke/pthread_test_019.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,24 +30,54 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_rwlock_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../process/rwlock",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"process_rwlock_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"process_rwlock_test.cpp",
"smoke/pthread_rwlock_test_001.cpp",
"smoke/pthread_rwlock_test_002.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/pthread_rwlock_test_001.cpp",
"smoke/pthread_rwlock_test_002.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,23 +30,53 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_spinlock_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../process/spinlock",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"process_spinlock_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"process_spinlock_test.cpp",
"smoke/pthread_spinlock_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/pthread_spinlock_test_001.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -2,24 +2,53 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_security_capability_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../security/capability",
"//third_party/bounds_checking_function/include",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"security_capability_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"security_capability_test.cpp",
"smoke/cap_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/cap_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -47,12 +47,13 @@ static void Sigac(int param)
static void Child()
{
int i = 100;
int i = 10;
signal(25, Sigac);
while (i--) {
sleep(10);
sleep(1);
}
exit(0);
}
static int TestChild(VOID)
@ -131,7 +132,7 @@ static int TestChild(VOID)
ret = capset(&capheader, &capdata[0]);
ret = sched_setparam(pid, &param);
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
wait(nullptr);
exit(92);
return 0;

View File

@ -30,23 +30,53 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_security_reugid_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../security/reugid",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"security_reugid_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"security_reugid_test.cpp",
"smoke/reugid_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/reugid_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,23 +30,53 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_security_vid_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../security/vid",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"security_vid_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"security_vid_test.cpp",
"smoke/vid_test_001.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/vid_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,85 +30,115 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_signal_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../signal",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"./",
]
sources_entry = [
"../common/osTest.cpp",
"signal_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"signal_test.cpp",
"smoke/It_ipc_fdclr_001.cpp",
"smoke/It_ipc_fdisset_001.cpp",
"smoke/It_ipc_fdset_001.cpp",
"smoke/It_ipc_fdzero_001.cpp",
"smoke/It_ipc_mkfifo_002.cpp",
"smoke/It_ipc_mkfifo_003.cpp",
"smoke/It_ipc_pipe_002.cpp",
"smoke/It_ipc_pipe_003.cpp",
"smoke/It_ipc_pipe_004.cpp",
"smoke/It_ipc_pipe_005.cpp",
"smoke/It_ipc_sigaction_001.cpp",
"smoke/It_ipc_sigpause_001.cpp",
"smoke/It_ipc_sigprocmask_001.cpp",
"smoke/mkfifo_test_001.cpp",
"smoke/mkfifo_test_002.cpp",
"smoke/pipe_test_001.cpp",
"smoke/pipe_test_002.cpp",
"smoke/pipe_test_003.cpp",
"smoke/pipe_test_004.cpp",
"smoke/pipe_test_005.cpp",
"smoke/pipe_test_006.cpp",
"smoke/signal_test_001.cpp",
"smoke/signal_test_002.cpp",
"smoke/signal_test_003.cpp",
"smoke/signal_test_004.cpp",
"smoke/signal_test_005.cpp",
"smoke/signal_test_006.cpp",
"smoke/signal_test_007.cpp",
"smoke/signal_test_008.cpp",
"smoke/signal_test_009.cpp",
"smoke/signal_test_010.cpp",
"smoke/signal_test_011.cpp",
"smoke/signal_test_012.cpp",
"smoke/signal_test_013.cpp",
"smoke/signal_test_014.cpp",
"smoke/signal_test_015.cpp",
"smoke/signal_test_016.cpp",
"smoke/signal_test_017.cpp",
"smoke/signal_test_018.cpp",
"smoke/signal_test_019.cpp",
"smoke/signal_test_020.cpp",
"smoke/signal_test_021.cpp",
"smoke/signal_test_022.cpp",
"smoke/signal_test_023.cpp",
"smoke/signal_test_024.cpp",
"smoke/signal_test_025.cpp",
"smoke/signal_test_026.cpp",
"smoke/signal_test_028.cpp",
"smoke/signal_test_029.cpp",
"smoke/signal_test_030.cpp",
"smoke/signal_test_031.cpp",
"smoke/signal_test_032.cpp",
"smoke/signal_test_033.cpp",
"smoke/signal_test_035.cpp",
"smoke/signal_test_036.cpp",
"smoke/signal_test_037.cpp",
"smoke/signal_test_038.cpp",
"smoke/signal_test_039.cpp",
"smoke/signal_test_040.cpp",
"smoke/signal_test_041.cpp",
"smoke/signal_test_042.cpp",
"smoke/sigset_test_001.cpp",
"smoke/sigset_test_002.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/It_ipc_fdclr_001.cpp",
"smoke/It_ipc_fdisset_001.cpp",
"smoke/It_ipc_fdset_001.cpp",
"smoke/It_ipc_fdzero_001.cpp",
"smoke/It_ipc_mkfifo_002.cpp",
"smoke/It_ipc_mkfifo_003.cpp",
"smoke/It_ipc_pipe_002.cpp",
"smoke/It_ipc_pipe_003.cpp",
"smoke/It_ipc_pipe_004.cpp",
"smoke/It_ipc_pipe_005.cpp",
"smoke/It_ipc_sigaction_001.cpp",
"smoke/It_ipc_sigpause_001.cpp",
"smoke/It_ipc_sigprocmask_001.cpp",
"smoke/mkfifo_test_001.cpp",
"smoke/mkfifo_test_002.cpp",
"smoke/pipe_test_001.cpp",
"smoke/pipe_test_002.cpp",
"smoke/pipe_test_003.cpp",
"smoke/pipe_test_004.cpp",
"smoke/pipe_test_005.cpp",
"smoke/pipe_test_006.cpp",
"smoke/signal_test_001.cpp",
"smoke/signal_test_002.cpp",
"smoke/signal_test_003.cpp",
"smoke/signal_test_004.cpp",
"smoke/signal_test_005.cpp",
"smoke/signal_test_006.cpp",
"smoke/signal_test_007.cpp",
"smoke/signal_test_008.cpp",
"smoke/signal_test_009.cpp",
"smoke/signal_test_010.cpp",
"smoke/signal_test_011.cpp",
"smoke/signal_test_012.cpp",
"smoke/signal_test_013.cpp",
"smoke/signal_test_014.cpp",
"smoke/signal_test_015.cpp",
"smoke/signal_test_016.cpp",
"smoke/signal_test_017.cpp",
"smoke/signal_test_018.cpp",
"smoke/signal_test_019.cpp",
"smoke/signal_test_020.cpp",
"smoke/signal_test_021.cpp",
"smoke/signal_test_022.cpp",
"smoke/signal_test_023.cpp",
"smoke/signal_test_024.cpp",
"smoke/signal_test_025.cpp",
"smoke/signal_test_026.cpp",
"smoke/signal_test_028.cpp",
"smoke/signal_test_029.cpp",
"smoke/signal_test_030.cpp",
"smoke/signal_test_031.cpp",
"smoke/signal_test_032.cpp",
"smoke/signal_test_033.cpp",
"smoke/signal_test_035.cpp",
"smoke/signal_test_036.cpp",
"smoke/signal_test_037.cpp",
"smoke/signal_test_038.cpp",
"smoke/signal_test_039.cpp",
"smoke/signal_test_040.cpp",
"smoke/signal_test_041.cpp",
"smoke/signal_test_042.cpp",
"smoke/sigset_test_001.cpp",
"smoke/sigset_test_002.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,52 +30,80 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_sys_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"../sys",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"./",
]
sources_entry = [
"../common/osTest.cpp",
"sys_unit_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"sys_unit_test.cpp",
"smoke/sys_test_001.cpp",
"smoke/sys_test_004.cpp",
"smoke/sys_test_005.cpp",
"smoke/sys_test_006.cpp",
"smoke/sys_test_007.cpp",
"smoke/sys_test_008.cpp",
"smoke/sys_test_009.cpp",
"smoke/sys_test_010.cpp",
"smoke/sys_test_012.cpp",
"smoke/sys_test_013.cpp",
"smoke/sys_test_014.cpp",
"smoke/sys_test_015.cpp",
"smoke/sys_test_016.cpp",
"smoke/sys_test_017.cpp",
"smoke/sys_test_018.cpp",
"smoke/sys_test_019.cpp",
"smoke/sys_test_020.cpp",
"smoke/sys_test_021.cpp",
"smoke/sys_test_022.cpp",
"smoke/sys_test_023.cpp",
"smoke/sys_test_024.cpp",
"smoke/sys_test_025.cpp",
"smoke/sys_test_026.cpp",
"smoke/sys_test_027.cpp",
"smoke/sys_test_028.cpp",
"smoke/sys_test_029.cpp",
"smoke/sys_test_030.cpp",
"smoke/sys_test_031.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/sys_test_001.cpp",
"smoke/sys_test_004.cpp",
"smoke/sys_test_005.cpp",
"smoke/sys_test_006.cpp",
"smoke/sys_test_007.cpp",
"smoke/sys_test_008.cpp",
"smoke/sys_test_009.cpp",
"smoke/sys_test_010.cpp",
"smoke/sys_test_012.cpp",
"smoke/sys_test_013.cpp",
"smoke/sys_test_014.cpp",
"smoke/sys_test_015.cpp",
"smoke/sys_test_016.cpp",
"smoke/sys_test_017.cpp",
"smoke/sys_test_018.cpp",
"smoke/sys_test_019.cpp",
"smoke/sys_test_020.cpp",
"smoke/sys_test_021.cpp",
"smoke/sys_test_022.cpp",
"smoke/sys_test_023.cpp",
"smoke/sys_test_024.cpp",
"smoke/sys_test_025.cpp",
"smoke/sys_test_026.cpp",
"smoke/sys_test_027.cpp",
"smoke/sys_test_028.cpp",
"smoke/sys_test_029.cpp",
"smoke/sys_test_030.cpp",
"smoke/sys_test_031.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,41 +30,63 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_time_clock_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../time/clock",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"time_clock_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"time_clock_test.cpp",
"smoke/clock_test_001.cpp",
"smoke/clock_test_002.cpp",
"smoke/clock_test_003.cpp",
"smoke/clock_test_004.cpp",
"smoke/clock_test_006.cpp",
"smoke/clock_test_007.cpp",
"smoke/clock_test_008.cpp",
"smoke/clock_test_009.cpp",
"smoke/clock_test_011.cpp",
"smoke/clock_test_012.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/clock_test_001.cpp",
"smoke/clock_test_002.cpp",
"smoke/clock_test_003.cpp",
"smoke/clock_test_004.cpp",
"smoke/clock_test_006.cpp",
"smoke/clock_test_007.cpp",
"smoke/clock_test_008.cpp",
"smoke/clock_test_009.cpp",
"smoke/clock_test_011.cpp",
"smoke/clock_test_012.cpp",
]
sources += sources_smoke
}
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/clock_test_010.cpp",
]
sources += sources_full
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../../../unittest:public_config" ]
}
source_set("sources_other") {
sources = [
"full/clock_test_010.cpp",
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,31 +30,58 @@
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_time_timer_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../../common/include",
"../../time/timer",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../../common/include",
"./",
]
sources_entry = [
"../../common/osTest.cpp",
"time_timer_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../../common/osTest.cpp",
"time_timer_test.cpp",
"smoke/timer_test_001.cpp",
"smoke/timer_test_002.cpp",
"smoke/timer_test_003.cpp",
"smoke/timer_test_004.cpp",
"smoke/timer_test_tzset_001.cpp",
"smoke/timer_test_tzset_002.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/timer_test_001.cpp",
"smoke/timer_test_002.cpp",
"smoke/timer_test_003.cpp",
"smoke/timer_test_004.cpp",
"smoke/timer_test_tzset_001.cpp",
"smoke/timer_test_tzset_002.cpp",
]
sources += sources_smoke
}
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../../../unittest:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "../..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}

View File

@ -30,22 +30,21 @@
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_util_unittest_door") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = [
"../common/include",
"./",
"../misc",
]
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
"../misc",
"./",
]
sources_entry = [
"../common/osTest.cpp",
"util_test.cpp",
]
source_set("sources_smoke") {
sources = [
"../common/osTest.cpp",
"util_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/it_test_util_100.cpp",
"smoke/it_test_util_101.cpp",
"smoke/util_test_001.cpp",
@ -55,10 +54,39 @@ unittest("liteos_a_util_unittest_door") {
"smoke/util_test_005.cpp",
"smoke/util_test_006.cpp",
"smoke/util_test_007.cpp",
]
sources += sources_smoke
}
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../../unittest:public_config" ]
}
source_set("sources_other") {
sources = [
]
include_dirs = common_include_dirs
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
if (LOSCFG_USER_TEST_FOR_ALL == true) {
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") {
output_extension = "bin"
output_dir = "$root_out_dir/test/unittest/kernel"
include_dirs = common_include_dirs
sources = sources_entry
configs = [ "..:public_config_smk" ]
deps = []
deps += [ ":sources_smoke" ]
}
}