!208 用例框架完善,问题用例修复

Merge pull request !208 from lnlan/test_fixed
This commit is contained in:
openharmony_ci 2021-05-05 10:17:04 +08:00 committed by Gitee
commit 92a2aa6f77
84 changed files with 1897 additions and 1690 deletions

View File

@ -67,6 +67,7 @@ lite_subsystem("kernel") {
}
} else {
deps = [ ":make" ]
deps += [ "//kernel/liteos_a/testsuites/unittest:unittest" ]
}
}

View File

@ -59,97 +59,103 @@ config("public_config") {
group("unittest") {
deps = []
if (LOSCFG_USER_TEST_UTIL == true) {
if (LOSCFG_USER_TEST_UTIL == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "util:liteos_a_util_unittest" ]
}
if (LOSCFG_USER_TEST_TIME_TIMER == true) {
if (LOSCFG_USER_TEST_TIME_TIMER == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "time/timer:liteos_a_time_timer_unittest" ]
}
if (LOSCFG_USER_TEST_TIME_CLOCK == true) {
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" ]
}
if (LOSCFG_USER_TEST_SYS == true) {
if (LOSCFG_USER_TEST_SYS == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "sys:liteos_a_sys_unittest" ]
}
if (LOSCFG_USER_TEST_SIGNAL == true) {
if (LOSCFG_USER_TEST_SIGNAL == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "signal:liteos_a_signal_unittest" ]
}
if (LOSCFG_USER_TEST_SECURITY_REUGID == true) {
if (LOSCFG_USER_TEST_SECURITY_REUGID == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "security/reugid:liteos_a_security_reugid_unittest" ]
}
if (LOSCFG_USER_TEST_SECURITY_CAPABILITY == true) {
if (LOSCFG_USER_TEST_SECURITY_CAPABILITY == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "security/capability:liteos_a_security_capability_unittest" ]
}
if (LOSCFG_USER_TEST_SECURITY_VID == true) {
if (LOSCFG_USER_TEST_SECURITY_VID == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "security/vid:liteos_a_security_vid_unittest" ]
}
if (LOSCFG_USER_TEST_MUTEX == true) {
if (LOSCFG_USER_TEST_MUTEX == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/mutex:liteos_a_mutex_unittest" ]
}
if (LOSCFG_USER_TEST_PROCESS == true) {
if (LOSCFG_USER_TEST_PROCESS == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/process:liteos_a_process_unittest" ]
}
if (LOSCFG_USER_TEST_PTHREAD == true) {
if (LOSCFG_USER_TEST_PTHREAD == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/pthread:liteos_a_pthread_unittest" ]
}
if (LOSCFG_USER_TEST_RWLOCK == true) {
if (LOSCFG_USER_TEST_RWLOCK == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/rwlock:liteos_a_rwlock_unittest" ]
}
if (LOSCFG_USER_TEST_SPINLOCK == true) {
if (LOSCFG_USER_TEST_SPINLOCK == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "process/spinlock:liteos_a_spinlock_unittest" ]
}
if (LOSCFG_USER_TEST_POSIX_MEM == true) {
if (LOSCFG_USER_TEST_POSIX_MEM == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "posix/mem:liteos_a_posix_mem_unittest" ]
}
if (LOSCFG_USER_TEST_POSIX_MQUEUE == true) {
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" ]
}
if (LOSCFG_USER_TEST_POSIX_PTHREAD == true) {
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" ]
}
if (LOSCFG_USER_TEST_MISC == true) {
if (LOSCFG_USER_TEST_MISC == true &&
(LOSCFG_USER_TEST_SMOKE == true || LOSCFG_USER_TEST_FULL == true)) {
deps += [ "misc:liteos_a_misc_unittest" ]
}
if (LOSCFG_USER_TEST_MEM_SHM == true) {
if (LOSCFG_USER_TEST_MEM_SHM == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "mem/shm:liteos_a_mem_shm_unittest" ]
}
if (LOSCFG_USER_TEST_MEM_VM == true) {
if (LOSCFG_USER_TEST_MEM_VM == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "mem/vm:liteos_a_mem_vm_unittest" ]
}
if (LOSCFG_USER_TEST_IO == true) {
if (LOSCFG_USER_TEST_IO == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "IO:liteos_a_io_unittest" ]
}
if (LOSCFG_USER_TEST_EXC == true) {
if (LOSCFG_USER_TEST_EXC == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "exc:liteos_a_exc_unittest" ]
}
if (LOSCFG_USER_TEST_DYNLOAD == true) {
if (LOSCFG_USER_TEST_DYNLOAD == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "dynload:liteos_a_dynload_unittest" ]
}
if (LOSCFG_USER_TEST_DRIVERS_HID == true) {
if (LOSCFG_USER_TEST_DRIVERS_HID == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "drivers/hid:liteos_a_drivers_hid_unittest" ]
}
if (LOSCFG_USER_TEST_DRIVERS_STORAGE == true) {
if (LOSCFG_USER_TEST_DRIVERS_STORAGE == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "drivers/storage:liteos_a_drivers_storage_unittest" ]
}
if (LOSCFG_USER_TEST_NET_NETDB == true) {
if (LOSCFG_USER_TEST_NET_NETDB == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "net/netdb:liteos_a_net_netdb_unittest" ]
}
if (LOSCFG_USER_TEST_NET_RESOLV == true) {
if (LOSCFG_USER_TEST_NET_RESOLV == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "net/resolv:liteos_a_net_resolv_unittest" ]
}
if (LOSCFG_USER_TEST_NET_SOCKET == true) {
if (LOSCFG_USER_TEST_NET_SOCKET == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "net/socket:liteos_a_net_socket_unittest" ]
}
if (LOSCFG_USER_TEST_IPC == true) {
if (LOSCFG_USER_TEST_IPC == true && LOSCFG_USER_TEST_FULL == true) {
deps += [ "IPC:liteos_a_ipc_unittest" ]
}
if (LOSCFG_USER_TEST_LITEIPC == true) {
if (LOSCFG_USER_TEST_LITEIPC == true && LOSCFG_USER_TEST_SMOKE == true) {
deps += [ "liteipc:liteos_a_liteipc_unittest" ]
}
if (LOSCFG_USER_TEST_FS_JFFS == true) {
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" ]
}
if (LOSCFG_USER_TEST_FS_VFAT == true) {
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" ]
}
}

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_io_unittest") {
output_extension = "bin"
@ -38,6 +39,10 @@ unittest("liteos_a_io_unittest") {
]
sources = [
"../common/osTest.cpp",
"io_test.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/IO_test_005.cpp",
"full/IO_test_008.cpp",
"full/IO_test_010.cpp",
@ -74,13 +79,11 @@ unittest("liteos_a_io_unittest") {
"full/It_stdlib_poll_002.cpp",
"full/It_stdlib_poll_003.cpp",
"full/IO_test_gettext_001.cpp",
#"full/IO_test_ppoll_001.cpp",
#"full/IO_test_ppoll_002.cpp",
#"full/IO_test_pselect_001.cpp",
"full/IO_test_strncasecmp_l_001.cpp",
"full/IO_test_strncasecmp_l_002.cpp",
"io_test.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -43,6 +43,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL)
/* *
* @tc.name: IT_TEST_IO_005
* @tc.desc: function for IoTest
@ -233,5 +234,5 @@ HWTEST_F(IoTest, ItStdioMbrlen001, TestSize.Level0)
{
ItStdioMbrlen001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_ipc_unittest") {
output_extension = "bin"
@ -38,10 +39,15 @@ unittest("liteos_a_ipc_unittest") {
]
sources = [
"../common/osTest.cpp",
"full/IPC_test_mkfifoat_001.cpp",
"full/IPC_test_mkfifoat_002.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
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL)
/* *
* @tc.name: IPC_TEST_MKFIFOAT_001
* @tc.desc: function for IoTest:mkfifoat-normal test
@ -66,4 +67,5 @@ HWTEST_F(IoTest, IPC_TEST_MKFIFOAT_002, TestSize.Level0)
IPC_TEST_MKFIFOAT_002();
}
#endif
#endif
} // namespace OHOS

View File

@ -68,9 +68,6 @@
#define OK 0
#endif
#define LOSCFG_USER_TEST_SMOKE 1
#define LOSCFG_USER_TEST_FULL 1
#define dprintf printf
#define ENOERR OK
#define LOSCFG_BASE_CORE_TSK_CONFIG 1024

View File

@ -30,7 +30,7 @@
LOSCFG_USER_TEST_LLT = false
LOSCFG_USER_TEST_SMOKE = true
LOSCFG_USER_TEST_PRESSURE = false
LOSCFG_USER_TEST_FULL = true
LOSCFG_USER_TEST_FULL = false
LOSCFG_USER_TEST_DRIVERS_STORAGE = true
LOSCFG_USER_TEST_DRIVERS_HID = true
@ -61,5 +61,5 @@ 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 = true
LOSCFG_USER_TEST_FS_VFAT = true
LOSCFG_USER_TEST_FS_JFFS = false
LOSCFG_USER_TEST_FS_VFAT = false

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_drivers_hid_unittest") {
output_extension = "bin"
@ -39,8 +40,13 @@ unittest("liteos_a_drivers_hid_unittest") {
sources = [
"../../common/osTest.cpp",
"drivers_hid_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/hid_test_001.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -40,6 +40,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_hid_001
* @tc.desc: function for drivers hid
@ -50,4 +51,5 @@ HWTEST_F(DriversHidTest, ItTestHid001, TestSize.Level0)
{
ItTestHid001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_drivers_storage_unittest") {
output_extension = "bin"
@ -39,7 +40,13 @@ unittest("liteos_a_drivers_storage_unittest") {
sources = [
"../../common/osTest.cpp",
"drivers_storage_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/storage_test_001.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -40,6 +40,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_storage_001
* @tc.desc: function for drivers storage
@ -50,4 +51,5 @@ HWTEST_F(DriversStorageTest, ItTestStorage001, TestSize.Level0)
{
ItTestStorage001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_dynload_unittest") {
output_extension = "bin"
@ -39,9 +40,14 @@ unittest("liteos_a_dynload_unittest") {
sources = [
"../common/osTest.cpp",
"dynload_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/dynload_test_002.cpp",
"smoke/dynload_test_004.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_dynload_002
* @tc.desc: function for DynloadTest
@ -62,4 +63,5 @@ HWTEST_F(DynloadTest, ItTestDynload004, TestSize.Level0)
{
ItTestDynload004();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_exc_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_exc_unittest") {
sources = [
"../common/osTest.cpp",
"exc_test.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",
@ -46,6 +50,8 @@ unittest("liteos_a_exc_unittest") {
"full/it_test_exc_005.cpp",
"full/it_test_fexecve_001.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_FULL)
/* *
* @tc.name: ItTestExc005
* @tc.desc: function for ExcTest
@ -95,5 +96,5 @@ HWTEST_F(ExcTest, ItTestExc004, TestSize.Level0)
{
ItTestExc004();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_fs_unittest") {
output_extension = "bin"
@ -40,6 +41,177 @@ unittest("liteos_a_fs_unittest") {
sources = [
"//kernel/liteos_a/testsuites/unittest/common/osTest.cpp",
"jffs/vfs_jffs_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"jffs/smoke/It_vfs_jffs_001.cpp",
"jffs/smoke/It_vfs_jffs_002.cpp",
"jffs/smoke/It_vfs_jffs_003.cpp",
"jffs/smoke/It_vfs_jffs_005.cpp",
"jffs/smoke/It_vfs_jffs_021.cpp",
"jffs/smoke/It_vfs_jffs_022.cpp",
"jffs/smoke/It_vfs_jffs_026.cpp",
"jffs/smoke/It_vfs_jffs_027.cpp",
"jffs/smoke/It_vfs_jffs_034.cpp",
"jffs/smoke/It_vfs_jffs_035.cpp",
"jffs/smoke/It_vfs_jffs_094.cpp",
"jffs/smoke/It_vfs_jffs_095.cpp",
#"jffs/smoke/It_vfs_jffs_103.cpp",
"jffs/smoke/It_vfs_jffs_535.cpp",
"jffs/smoke/It_vfs_jffs_Dac_001.cpp",
]
sources += sources_smoke
}
if (LOSCFG_USER_TEST_PRESSURE == true) {
sources_pressure = [
"jffs/pressure/It_fs_jffs_performance_001.cpp",
"jffs/pressure/It_fs_jffs_performance_002.cpp",
"jffs/pressure/It_fs_jffs_performance_003.cpp",
"jffs/pressure/It_fs_jffs_performance_004.cpp",
"jffs/pressure/It_fs_jffs_performance_005.cpp",
"jffs/pressure/It_fs_jffs_performance_006.cpp",
"jffs/pressure/It_fs_jffs_performance_007.cpp",
"jffs/pressure/It_fs_jffs_performance_008.cpp",
"jffs/pressure/It_fs_jffs_performance_009.cpp",
"jffs/pressure/It_fs_jffs_performance_010.cpp",
"jffs/pressure/It_fs_jffs_performance_011.cpp",
"jffs/pressure/It_fs_jffs_performance_012.cpp",
"jffs/pressure/It_fs_jffs_performance_013.cpp",
"jffs/pressure/It_fs_jffs_pressure_001.cpp",
"jffs/pressure/It_fs_jffs_pressure_002.cpp",
"jffs/pressure/It_fs_jffs_pressure_003.cpp",
"jffs/pressure/It_fs_jffs_pressure_004.cpp",
"jffs/pressure/It_fs_jffs_pressure_005.cpp",
"jffs/pressure/It_fs_jffs_pressure_006.cpp",
"jffs/pressure/It_fs_jffs_pressure_007.cpp",
"jffs/pressure/It_fs_jffs_pressure_008.cpp",
"jffs/pressure/It_fs_jffs_pressure_009.cpp",
"jffs/pressure/It_fs_jffs_pressure_010.cpp",
"jffs/pressure/It_fs_jffs_pressure_011.cpp",
"jffs/pressure/It_fs_jffs_pressure_012.cpp",
"jffs/pressure/It_fs_jffs_pressure_014.cpp",
"jffs/pressure/It_fs_jffs_pressure_015.cpp",
"jffs/pressure/It_fs_jffs_pressure_016.cpp",
"jffs/pressure/It_fs_jffs_pressure_017.cpp",
"jffs/pressure/It_fs_jffs_pressure_018.cpp",
"jffs/pressure/It_fs_jffs_pressure_019.cpp",
"jffs/pressure/It_fs_jffs_pressure_020.cpp",
"jffs/pressure/It_fs_jffs_pressure_021.cpp",
"jffs/pressure/It_fs_jffs_pressure_022.cpp",
"jffs/pressure/It_fs_jffs_pressure_023.cpp",
"jffs/pressure/It_fs_jffs_pressure_024.cpp",
"jffs/pressure/It_fs_jffs_pressure_025.cpp",
"jffs/pressure/It_fs_jffs_pressure_026.cpp",
"jffs/pressure/It_fs_jffs_pressure_027.cpp",
"jffs/pressure/It_fs_jffs_pressure_028.cpp",
"jffs/pressure/It_fs_jffs_pressure_029.cpp",
"jffs/pressure/It_fs_jffs_pressure_030.cpp",
"jffs/pressure/It_fs_jffs_pressure_031.cpp",
"jffs/pressure/It_fs_jffs_pressure_032.cpp",
"jffs/pressure/It_fs_jffs_pressure_033.cpp",
"jffs/pressure/It_fs_jffs_pressure_034.cpp",
"jffs/pressure/It_fs_jffs_pressure_035.cpp",
"jffs/pressure/It_fs_jffs_pressure_036.cpp",
"jffs/pressure/It_fs_jffs_pressure_037.cpp",
"jffs/pressure/It_fs_jffs_pressure_038.cpp",
"jffs/pressure/It_fs_jffs_pressure_039.cpp",
"jffs/pressure/It_fs_jffs_pressure_040.cpp",
"jffs/pressure/It_fs_jffs_pressure_041.cpp",
"jffs/pressure/It_fs_jffs_pressure_042.cpp",
"jffs/pressure/It_fs_jffs_pressure_043.cpp",
"jffs/pressure/It_fs_jffs_pressure_044.cpp",
"jffs/pressure/It_fs_jffs_pressure_045.cpp",
"jffs/pressure/It_fs_jffs_pressure_046.cpp",
"jffs/pressure/It_fs_jffs_pressure_047.cpp",
"jffs/pressure/It_fs_jffs_pressure_048.cpp",
"jffs/pressure/It_fs_jffs_pressure_049.cpp",
"jffs/pressure/It_fs_jffs_pressure_050.cpp",
"jffs/pressure/It_fs_jffs_pressure_051.cpp",
"jffs/pressure/It_fs_jffs_pressure_052.cpp",
"jffs/pressure/It_fs_jffs_pressure_053.cpp",
"jffs/pressure/It_fs_jffs_pressure_301.cpp",
"jffs/pressure/It_fs_jffs_pressure_302.cpp",
#"jffs/pressure/It_fs_jffs_pressure_303.cpp",
"jffs/pressure/It_fs_jffs_pressure_304.cpp",
"jffs/pressure/It_fs_jffs_pressure_305.cpp",
"jffs/pressure/It_fs_jffs_pressure_306.cpp",
"jffs/pressure/It_fs_jffs_pressure_307.cpp",
"jffs/pressure/It_fs_jffs_pressure_308.cpp",
"jffs/pressure/It_fs_jffs_pressure_309.cpp",
"jffs/pressure/It_fs_jffs_pressure_310.cpp",
"jffs/pressure/It_fs_jffs_pressure_311.cpp",
"jffs/pressure/It_fs_jffs_pressure_312.cpp",
"jffs/pressure/It_fs_jffs_pressure_313.cpp",
"jffs/pressure/It_fs_jffs_pressure_314.cpp",
"jffs/pressure/It_fs_jffs_pressure_315.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_001.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_002.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_003.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_004.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_005.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_006.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_007.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_008.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_009.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_010.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_011.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_012.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_013.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_014.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_015.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_016.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_017.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_018.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_019.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_020.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_021.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_022.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_023.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_024.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_025.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_026.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_027.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_028.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_029.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_030.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_031.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_032.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_033.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_034.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_035.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_036.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_037.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_038.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_039.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_040.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_041.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_042.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_043.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_044.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_045.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_046.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_047.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_048.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_049.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_050.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_051.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_052.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_053.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_054.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_055.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_056.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_057.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_058.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_059.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_060.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_061.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_062.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_063.cpp",
]
sources += sources_pressure
}
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"jffs/full/It_jffs_001.cpp",
"jffs/full/It_jffs_002.cpp",
"jffs/full/It_jffs_003.cpp",
@ -612,169 +784,9 @@ unittest("liteos_a_fs_unittest") {
"jffs/full/It_vfs_jffs_701.cpp",
"jffs/full/It_vfs_jffs_807.cpp",
"jffs/full/It_vfs_jffs_808.cpp",
"jffs/smoke/It_vfs_jffs_001.cpp",
"jffs/smoke/It_vfs_jffs_002.cpp",
"jffs/smoke/It_vfs_jffs_003.cpp",
"jffs/smoke/It_vfs_jffs_005.cpp",
"jffs/smoke/It_vfs_jffs_021.cpp",
"jffs/smoke/It_vfs_jffs_022.cpp",
"jffs/smoke/It_vfs_jffs_026.cpp",
"jffs/smoke/It_vfs_jffs_027.cpp",
"jffs/smoke/It_vfs_jffs_034.cpp",
"jffs/smoke/It_vfs_jffs_035.cpp",
"jffs/smoke/It_vfs_jffs_094.cpp",
"jffs/smoke/It_vfs_jffs_095.cpp",
#"jffs/smoke/It_vfs_jffs_103.cpp",
"jffs/smoke/It_vfs_jffs_535.cpp",
"jffs/smoke/It_vfs_jffs_Dac_001.cpp",
"jffs/pressure/It_fs_jffs_performance_001.cpp",
"jffs/pressure/It_fs_jffs_performance_002.cpp",
"jffs/pressure/It_fs_jffs_performance_003.cpp",
"jffs/pressure/It_fs_jffs_performance_004.cpp",
"jffs/pressure/It_fs_jffs_performance_005.cpp",
"jffs/pressure/It_fs_jffs_performance_006.cpp",
"jffs/pressure/It_fs_jffs_performance_007.cpp",
"jffs/pressure/It_fs_jffs_performance_008.cpp",
"jffs/pressure/It_fs_jffs_performance_009.cpp",
"jffs/pressure/It_fs_jffs_performance_010.cpp",
"jffs/pressure/It_fs_jffs_performance_011.cpp",
"jffs/pressure/It_fs_jffs_performance_012.cpp",
"jffs/pressure/It_fs_jffs_performance_013.cpp",
"jffs/pressure/It_fs_jffs_pressure_001.cpp",
"jffs/pressure/It_fs_jffs_pressure_002.cpp",
"jffs/pressure/It_fs_jffs_pressure_003.cpp",
"jffs/pressure/It_fs_jffs_pressure_004.cpp",
"jffs/pressure/It_fs_jffs_pressure_005.cpp",
"jffs/pressure/It_fs_jffs_pressure_006.cpp",
"jffs/pressure/It_fs_jffs_pressure_007.cpp",
"jffs/pressure/It_fs_jffs_pressure_008.cpp",
"jffs/pressure/It_fs_jffs_pressure_009.cpp",
"jffs/pressure/It_fs_jffs_pressure_010.cpp",
"jffs/pressure/It_fs_jffs_pressure_011.cpp",
"jffs/pressure/It_fs_jffs_pressure_012.cpp",
"jffs/pressure/It_fs_jffs_pressure_014.cpp",
"jffs/pressure/It_fs_jffs_pressure_015.cpp",
"jffs/pressure/It_fs_jffs_pressure_016.cpp",
"jffs/pressure/It_fs_jffs_pressure_017.cpp",
"jffs/pressure/It_fs_jffs_pressure_018.cpp",
"jffs/pressure/It_fs_jffs_pressure_019.cpp",
"jffs/pressure/It_fs_jffs_pressure_020.cpp",
"jffs/pressure/It_fs_jffs_pressure_021.cpp",
"jffs/pressure/It_fs_jffs_pressure_022.cpp",
"jffs/pressure/It_fs_jffs_pressure_023.cpp",
"jffs/pressure/It_fs_jffs_pressure_024.cpp",
"jffs/pressure/It_fs_jffs_pressure_025.cpp",
"jffs/pressure/It_fs_jffs_pressure_026.cpp",
"jffs/pressure/It_fs_jffs_pressure_027.cpp",
"jffs/pressure/It_fs_jffs_pressure_028.cpp",
"jffs/pressure/It_fs_jffs_pressure_029.cpp",
"jffs/pressure/It_fs_jffs_pressure_030.cpp",
"jffs/pressure/It_fs_jffs_pressure_031.cpp",
"jffs/pressure/It_fs_jffs_pressure_032.cpp",
"jffs/pressure/It_fs_jffs_pressure_033.cpp",
"jffs/pressure/It_fs_jffs_pressure_034.cpp",
"jffs/pressure/It_fs_jffs_pressure_035.cpp",
"jffs/pressure/It_fs_jffs_pressure_036.cpp",
"jffs/pressure/It_fs_jffs_pressure_037.cpp",
"jffs/pressure/It_fs_jffs_pressure_038.cpp",
"jffs/pressure/It_fs_jffs_pressure_039.cpp",
"jffs/pressure/It_fs_jffs_pressure_040.cpp",
"jffs/pressure/It_fs_jffs_pressure_041.cpp",
"jffs/pressure/It_fs_jffs_pressure_042.cpp",
"jffs/pressure/It_fs_jffs_pressure_043.cpp",
"jffs/pressure/It_fs_jffs_pressure_044.cpp",
"jffs/pressure/It_fs_jffs_pressure_045.cpp",
"jffs/pressure/It_fs_jffs_pressure_046.cpp",
"jffs/pressure/It_fs_jffs_pressure_047.cpp",
"jffs/pressure/It_fs_jffs_pressure_048.cpp",
"jffs/pressure/It_fs_jffs_pressure_049.cpp",
"jffs/pressure/It_fs_jffs_pressure_050.cpp",
"jffs/pressure/It_fs_jffs_pressure_051.cpp",
"jffs/pressure/It_fs_jffs_pressure_052.cpp",
"jffs/pressure/It_fs_jffs_pressure_053.cpp",
"jffs/pressure/It_fs_jffs_pressure_301.cpp",
"jffs/pressure/It_fs_jffs_pressure_302.cpp",
#"jffs/pressure/It_fs_jffs_pressure_303.cpp",
"jffs/pressure/It_fs_jffs_pressure_304.cpp",
"jffs/pressure/It_fs_jffs_pressure_305.cpp",
"jffs/pressure/It_fs_jffs_pressure_306.cpp",
"jffs/pressure/It_fs_jffs_pressure_307.cpp",
"jffs/pressure/It_fs_jffs_pressure_308.cpp",
"jffs/pressure/It_fs_jffs_pressure_309.cpp",
"jffs/pressure/It_fs_jffs_pressure_310.cpp",
"jffs/pressure/It_fs_jffs_pressure_311.cpp",
"jffs/pressure/It_fs_jffs_pressure_312.cpp",
"jffs/pressure/It_fs_jffs_pressure_313.cpp",
"jffs/pressure/It_fs_jffs_pressure_314.cpp",
"jffs/pressure/It_fs_jffs_pressure_315.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_001.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_002.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_003.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_004.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_005.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_006.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_007.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_008.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_009.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_010.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_011.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_012.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_013.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_014.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_015.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_016.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_017.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_018.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_019.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_020.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_021.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_022.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_023.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_024.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_025.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_026.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_027.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_028.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_029.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_030.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_031.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_032.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_033.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_034.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_035.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_036.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_037.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_038.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_039.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_040.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_041.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_042.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_043.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_044.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_045.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_046.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_047.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_048.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_049.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_050.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_051.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_052.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_053.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_054.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_055.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_056.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_057.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_058.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_059.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_060.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_061.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_062.cpp",
"jffs/pressure/It_vfs_jffs_multipthread_063.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "//kernel/liteos_a/testsuites/unittest:public_config" ]
}

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_fs_procfs_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_fs_procfs_unittest") {
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",
@ -46,6 +50,8 @@ unittest("liteos_a_fs_procfs_unittest") {
"full/It_vfs_proc_005.cpp",
"full/It_vfs_proc_006.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "//kernel/liteos_a/test/unittest:public_config" ]
deps += [ "//kernel/liteos_a:kernel" ]

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_fs_vfat_unittest") {
output_extension = "bin"
@ -40,6 +41,85 @@ unittest("liteos_a_fs_vfat_unittest") {
sources = [
"//kernel/liteos_a/testsuites/unittest/common/osTest.cpp",
"VfsFatTest.cpp",
]
if (LOSCFG_USER_TEST_PRESSURE == true) {
sources_pressure = [
"pressure/It_fs_fat_performance_001.cpp",
"pressure/It_fs_fat_performance_002.cpp",
"pressure/It_fs_fat_performance_003.cpp",
"pressure/It_fs_fat_performance_004.cpp",
"pressure/It_fs_fat_performance_005.cpp",
"pressure/It_fs_fat_performance_006.cpp",
"pressure/It_fs_fat_performance_007.cpp",
"pressure/It_fs_fat_performance_008.cpp",
"pressure/It_fs_fat_performance_013.cpp",
"pressure/It_fs_fat_performance_014.cpp",
"pressure/It_fs_fat_performance_015.cpp",
"pressure/It_fs_fat_performance_016.cpp",
"pressure/It_fs_fat_pressure_029.cpp",
"pressure/It_fs_fat_pressure_030.cpp",
"pressure/It_fs_fat_pressure_031.cpp",
"pressure/It_fs_fat_pressure_038.cpp",
"pressure/It_fs_fat_pressure_040.cpp",
"pressure/It_fs_fat_pressure_041.cpp",
"pressure/It_fs_fat_pressure_042.cpp",
"pressure/It_fs_fat_pressure_301.cpp",
"pressure/It_fs_fat_pressure_302.cpp",
"pressure/It_fs_fat_pressure_303.cpp",
"pressure/It_fs_fat_pressure_305.cpp",
"pressure/It_fs_fat_pressure_306.cpp",
"pressure/It_fs_fat_pressure_309.cpp",
"pressure/It_vfs_fat_mutipthread_003.cpp",
"pressure/It_vfs_fat_mutipthread_004.cpp",
"pressure/It_vfs_fat_mutipthread_005.cpp",
"pressure/It_vfs_fat_mutipthread_006.cpp",
"pressure/It_vfs_fat_mutipthread_008.cpp",
"pressure/It_vfs_fat_mutipthread_009.cpp",
"pressure/It_vfs_fat_mutipthread_010.cpp",
"pressure/It_vfs_fat_mutipthread_012.cpp",
"pressure/It_vfs_fat_mutipthread_014.cpp",
"pressure/It_vfs_fat_mutipthread_016.cpp",
"pressure/It_vfs_fat_mutipthread_017.cpp",
"pressure/It_vfs_fat_mutipthread_018.cpp",
"pressure/It_vfs_fat_mutipthread_019.cpp",
"pressure/It_vfs_fat_mutipthread_020.cpp",
"pressure/It_vfs_fat_mutipthread_021.cpp",
"pressure/It_vfs_fat_mutipthread_022.cpp",
"pressure/It_vfs_fat_mutipthread_023.cpp",
"pressure/It_vfs_fat_mutipthread_024.cpp",
"pressure/It_vfs_fat_mutipthread_027.cpp",
"pressure/It_vfs_fat_mutipthread_029.cpp",
"pressure/It_vfs_fat_mutipthread_030.cpp",
"pressure/It_vfs_fat_mutipthread_032.cpp",
"pressure/It_vfs_fat_mutipthread_033.cpp",
"pressure/It_vfs_fat_mutipthread_035.cpp",
"pressure/It_vfs_fat_mutipthread_036.cpp",
"pressure/It_vfs_fat_mutipthread_038.cpp",
"pressure/It_vfs_fat_mutipthread_039.cpp",
"pressure/It_vfs_fat_mutipthread_040.cpp",
"pressure/It_vfs_fat_mutipthread_041.cpp",
"pressure/It_vfs_fat_mutipthread_042.cpp",
"pressure/It_vfs_fat_mutipthread_043.cpp",
"pressure/It_vfs_fat_mutipthread_044.cpp",
"pressure/It_vfs_fat_mutipthread_045.cpp",
"pressure/It_vfs_fat_mutipthread_046.cpp",
"pressure/It_vfs_fat_mutipthread_047.cpp",
"pressure/It_vfs_fat_mutipthread_048.cpp",
"pressure/It_vfs_fat_mutipthread_049.cpp",
"pressure/It_vfs_fat_mutipthread_050.cpp",
]
sources += sources_pressure
}
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",
@ -106,75 +186,9 @@ unittest("liteos_a_fs_vfat_unittest") {
"full/It_vfs_fat_903.cpp",
"full/It_vfs_fat_904.cpp",
"full/It_vfs_fat_909.cpp",
"pressure/It_fs_fat_performance_001.cpp",
"pressure/It_fs_fat_performance_002.cpp",
"pressure/It_fs_fat_performance_003.cpp",
"pressure/It_fs_fat_performance_004.cpp",
"pressure/It_fs_fat_performance_005.cpp",
"pressure/It_fs_fat_performance_006.cpp",
"pressure/It_fs_fat_performance_007.cpp",
"pressure/It_fs_fat_performance_008.cpp",
"pressure/It_fs_fat_performance_013.cpp",
"pressure/It_fs_fat_performance_014.cpp",
"pressure/It_fs_fat_performance_015.cpp",
"pressure/It_fs_fat_performance_016.cpp",
"pressure/It_fs_fat_pressure_029.cpp",
"pressure/It_fs_fat_pressure_030.cpp",
"pressure/It_fs_fat_pressure_031.cpp",
"pressure/It_fs_fat_pressure_038.cpp",
"pressure/It_fs_fat_pressure_040.cpp",
"pressure/It_fs_fat_pressure_041.cpp",
"pressure/It_fs_fat_pressure_042.cpp",
"pressure/It_fs_fat_pressure_301.cpp",
"pressure/It_fs_fat_pressure_302.cpp",
"pressure/It_fs_fat_pressure_303.cpp",
"pressure/It_fs_fat_pressure_305.cpp",
"pressure/It_fs_fat_pressure_306.cpp",
"pressure/It_fs_fat_pressure_309.cpp",
"pressure/It_vfs_fat_mutipthread_003.cpp",
"pressure/It_vfs_fat_mutipthread_004.cpp",
"pressure/It_vfs_fat_mutipthread_005.cpp",
"pressure/It_vfs_fat_mutipthread_006.cpp",
"pressure/It_vfs_fat_mutipthread_008.cpp",
"pressure/It_vfs_fat_mutipthread_009.cpp",
"pressure/It_vfs_fat_mutipthread_010.cpp",
"pressure/It_vfs_fat_mutipthread_012.cpp",
"pressure/It_vfs_fat_mutipthread_014.cpp",
"pressure/It_vfs_fat_mutipthread_016.cpp",
"pressure/It_vfs_fat_mutipthread_017.cpp",
"pressure/It_vfs_fat_mutipthread_018.cpp",
"pressure/It_vfs_fat_mutipthread_019.cpp",
"pressure/It_vfs_fat_mutipthread_020.cpp",
"pressure/It_vfs_fat_mutipthread_021.cpp",
"pressure/It_vfs_fat_mutipthread_022.cpp",
"pressure/It_vfs_fat_mutipthread_023.cpp",
"pressure/It_vfs_fat_mutipthread_024.cpp",
"pressure/It_vfs_fat_mutipthread_027.cpp",
"pressure/It_vfs_fat_mutipthread_029.cpp",
"pressure/It_vfs_fat_mutipthread_030.cpp",
"pressure/It_vfs_fat_mutipthread_032.cpp",
"pressure/It_vfs_fat_mutipthread_033.cpp",
"pressure/It_vfs_fat_mutipthread_035.cpp",
"pressure/It_vfs_fat_mutipthread_036.cpp",
"pressure/It_vfs_fat_mutipthread_038.cpp",
"pressure/It_vfs_fat_mutipthread_039.cpp",
"pressure/It_vfs_fat_mutipthread_040.cpp",
"pressure/It_vfs_fat_mutipthread_041.cpp",
"pressure/It_vfs_fat_mutipthread_042.cpp",
"pressure/It_vfs_fat_mutipthread_043.cpp",
"pressure/It_vfs_fat_mutipthread_044.cpp",
"pressure/It_vfs_fat_mutipthread_045.cpp",
"pressure/It_vfs_fat_mutipthread_046.cpp",
"pressure/It_vfs_fat_mutipthread_047.cpp",
"pressure/It_vfs_fat_mutipthread_048.cpp",
"pressure/It_vfs_fat_mutipthread_049.cpp",
"pressure/It_vfs_fat_mutipthread_050.cpp",
"smoke/It_vfs_fat_026.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "//kernel/liteos_a/testsuites/unittest:public_config" ]
}

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_liteipc_unittest") {
output_extension = "bin"
@ -38,11 +39,16 @@ unittest("liteos_a_liteipc_unittest") {
]
sources = [
"../common/osTest.cpp",
"smoke/liteipc_test_001.cpp",
"smoke/liteipc_test_002.cpp",
"smgr_demo.cpp",
"it_test_liteipc.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/liteipc_test_001.cpp",
"smoke/liteipc_test_002.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_mem_shm_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_mem_shm_unittest") {
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",
@ -53,8 +57,9 @@ unittest("liteos_a_mem_shm_unittest") {
"smoke/shm_test_012.cpp",
"smoke/shm_test_013.cpp",
"smoke/shm_test_014.cpp",
# "smoke/it_test_mem_100.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_shm_001
* @tc.desc: function for MemShmTest
@ -91,10 +92,10 @@ HWTEST_F(MemShmTest, ItTestShm004, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*HWTEST_F(MemShmTest, ItTestShm005, TestSize.Level0)
HWTEST_F(MemShmTest, ItTestShm005, TestSize.Level0)
{
ItTestShm005(); // bug, errno
} */
ItTestShm005();
}
/* *
* @tc.name: it_test_shm_006
@ -161,6 +162,6 @@ HWTEST_F(MemShmTest, ItTestShm011, TestSize.Level0)
{
ItTestShm011();
}
#endif
}
// namespace OHOS

View File

@ -159,6 +159,7 @@ static int Testcase(VOID)
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
ICUNIT_ASSERT_EQUAL(g_threadCount, 2, g_threadCount);
return 0;
}

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_mem_vm_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_mem_vm_unittest") {
sources = [
"../../common/osTest.cpp",
"mem_vm_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/mmap_test_001.cpp",
"smoke/mmap_test_002.cpp",
"smoke/mmap_test_003.cpp",
@ -55,6 +59,8 @@ unittest("liteos_a_mem_vm_unittest") {
"smoke/open_wmemstream_test_001.cpp",
"smoke/user_copy_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_mmap_001
* @tc.desc: function for MemVmTest
@ -208,4 +209,5 @@ HWTEST_F(MemVmTest, open_wmemstream_test_001, TestSize.Level0)
{
open_wmemstream_test_001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_misc_unittest") {
output_extension = "bin"
@ -36,24 +37,37 @@ unittest("liteos_a_misc_unittest") {
"../common/include",
"../misc",
]
sources = [
"../common/osTest.cpp",
"full/misc_test_001.cpp",
"full/misc_test_002.cpp",
"full/misc_test_003.cpp",
"full/misc_test_004.cpp",
"full/misc_test_005.cpp",
"misc_test.cpp",
]
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/misc_test_006.cpp",
"full/misc_test_007.cpp",
"full/misc_test_008.cpp",
"full/misc_test_009.cpp",
"full/misc_test_010.cpp",
"full/misc_test_011.cpp",
"full/misc_test_012.cpp",
"full/misc_test_013.cpp",
"full/misc_test_014.cpp",
"misc_test.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" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}

View File

@ -42,6 +42,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: IT_TEST_MISC_001
* @tc.desc: function for MiscTest
@ -97,6 +98,19 @@ HWTEST_F(MiscTest, ItTestMisc005, TestSize.Level0)
ItTestMisc005();
}
/* *
* @tc.name: IT_TEST_MISC_014
* @tc.desc: function for tmpnam test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, IT_TEST_MISC_014, TestSize.Level0)
{
IT_TEST_MISC_014();
}
#endif
#if defined(LOSCFG_USER_TEST_FULL)
/* *
* @tc.name: IT_TEST_MISC_006
* @tc.desc: function for MiscTest
@ -151,16 +165,6 @@ HWTEST_F(MiscTest, ItTestMisc006, TestSize.Level0)
{
ItTestMisc013();
}*/
/* *
* @tc.name: IT_TEST_MISC_014
* @tc.desc: function for tmpnam test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, IT_TEST_MISC_014, TestSize.Level0)
{
IT_TEST_MISC_014();
}
#endif
} // namespace OHOS

View File

@ -46,6 +46,10 @@ unittest("liteos_a_net_netdb_unittest") {
]
sources = [
"../../common/osTest.cpp",
"net_netdb_test.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",
@ -68,8 +72,9 @@ unittest("liteos_a_net_netdb_unittest") {
"full/net_netdb_test_020.cpp",
"full/net_netdb_test_021.cpp",
"full/net_netdb_test_022.cpp",
"net_netdb_test.cpp",
]
sources += sources_full
}
configs = [
"../..:public_config",
":net_local_config",

View File

@ -46,6 +46,10 @@ unittest("liteos_a_net_resolv_unittest") {
]
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",
@ -54,8 +58,9 @@ unittest("liteos_a_net_resolv_unittest") {
"full/net_resolv_test_006.cpp",
"full/net_resolv_test_007.cpp",
"full/net_resolv_test_008.cpp",
"net_resolv_test.cpp",
]
sources += sources_full
}
configs = [
"../..:public_config",
":net_local_config",

View File

@ -47,6 +47,9 @@ unittest("liteos_a_net_socket_unittest") {
sources = [
"../../common/osTest.cpp",
"net_socket_test.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",
@ -61,6 +64,8 @@ unittest("liteos_a_net_socket_unittest") {
"smoke/net_socket_test_012.cpp",
"smoke/net_socket_test_013.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [
"../../:public_config",

View File

@ -38,7 +38,7 @@
#define SERVER_PORT 6666
#define INVALID_SOCKET -1
#define CLIENT_NUM 50
#define CLIENT_NUM 25
#define BACKLOG CLIENT_NUM
static int gFds[FD_SETSIZE];

View File

@ -38,7 +38,7 @@
#define SERVER_PORT 8888
#define INVALID_SOCKET -1
#define CLIENT_NUM 50
#define CLIENT_NUM 25
#define BACKLOG CLIENT_NUM
static int gFds[FD_SETSIZE];

View File

@ -38,7 +38,7 @@
#define SERVER_PORT 7777
#define INVALID_SOCKET -1
#define CLIENT_NUM 50
#define CLIENT_NUM 25
static int gFds[FD_SETSIZE];
static int gBye;
@ -97,7 +97,7 @@ static int CloseAllFd(void)
static int HandleRecv(int fd)
{
char buf[256];
char buf[128];
int ret = recv(fd, buf, sizeof(buf)-1, 0);
if (ret < 0) {
LogPrintln("[%d]Error: %s", fd, strerror(errno));
@ -151,11 +151,11 @@ static void *ClientsThread(void *param)
LogPrintln("[%d]<%d>connected to udp://%s:%d successful", fd, thrNo, inet_ntoa(sa.sin_addr), SERVER_PORT);
const char *msg[] = {
"hello, ",
"ohos, ",
"hello, ",
"my name is net_socket_test_011, ",
"see u next time, ",
"Bye!"
"Bye!",
};
for (int i = 0; i < sizeof(msg) / sizeof(msg[0]); ++i) {
@ -172,15 +172,20 @@ static void *ClientsThread(void *param)
static int StartClients(pthread_t *cli, int cliNum)
{
int ret;
pthread_attr_t attr;
pthread_attr_t attr = {0};
struct sched_param param = { 0 };
int policy;
ret = pthread_getschedparam(pthread_self(), &policy, &param);
ICUNIT_ASSERT_EQUAL(ret, 0, -ret);
for (int i = 0; i < cliNum; ++i) {
ret = pthread_attr_init(&attr);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
param.sched_priority = param.sched_priority + 1;
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
pthread_attr_setschedparam(&attr, &param);
ret = pthread_create(&cli[i], &attr, ClientsThread, (void *)(intptr_t)i);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
ret = pthread_attr_destroy(&attr);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
}

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_posix_mem_unittest") {
output_extension = "bin"
@ -39,9 +40,16 @@ unittest("liteos_a_posix_mem_unittest") {
sources = [
"../../common/osTest.cpp",
"posix_mem_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/It_posix_mem_001.cpp",
"smoke/It_posix_mem_003.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -42,55 +42,13 @@ unittest("liteos_a_posix_mqueue_unittest") {
"../../common/include",
"../../posix/mqueue",
]
sourcesllt = []
if (LOSCFG_USER_TEST_LLT == true) {
sourcesllt += [
"llt/It_posix_queue_006.cpp",
"llt/It_posix_queue_009.cpp",
"llt/It_posix_queue_022.cpp",
"llt/It_posix_queue_023.cpp",
"llt/It_posix_queue_024.cpp",
"llt/It_posix_queue_029.cpp",
"llt/It_posix_queue_034.cpp",
"llt/It_posix_queue_035.cpp",
"llt/It_posix_queue_037.cpp",
"llt/It_posix_queue_039.cpp",
"llt/It_posix_queue_045.cpp",
"llt/It_posix_queue_051.cpp",
"llt/It_posix_queue_059.cpp",
"llt/It_posix_queue_068.cpp",
"llt/It_posix_queue_092.cpp",
"llt/It_posix_queue_099.cpp",
"llt/It_posix_queue_105.cpp",
"llt/It_posix_queue_107.cpp",
"llt/It_posix_queue_131.cpp",
"llt/It_posix_queue_132.cpp",
"llt/It_posix_queue_135.cpp",
"llt/It_posix_queue_137.cpp",
"llt/It_posix_queue_138.cpp",
"llt/It_posix_queue_139.cpp",
"llt/It_posix_queue_140.cpp",
"llt/It_posix_queue_141.cpp",
"llt/It_posix_queue_142.cpp",
"llt/It_posix_queue_158.cpp",
"llt/LLT_posix_queue_001.cpp",
"llt/LLT_posix_queue_002.cpp",
"llt/LLT_posix_queue_003.cpp",
"llt/LLT_posix_queue_004.cpp",
"llt/LLT_posix_queue_005.cpp",
"llt/LLT_posix_queue_006.cpp",
"llt/LLT_posix_queue_007.cpp",
"llt/LLT_posix_queue_008.cpp",
"llt/LLT_posix_queue_009.cpp",
"llt/LLT_posix_queue_010.cpp",
"llt/LLT_posix_queue_011.cpp",
"llt/LLT_posix_queue_012.cpp",
"llt/LLT_posix_queue_013.cpp",
]
}
sources = [
"../../common/osTest.cpp",
"posix_mqueue_test.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",
@ -123,7 +81,6 @@ unittest("liteos_a_posix_mqueue_unittest") {
"full/It_posix_queue_049.cpp",
"full/It_posix_queue_050.cpp",
"full/It_posix_queue_052.cpp",
"full/It_posix_queue_053.cpp",
"full/It_posix_queue_054.cpp",
"full/It_posix_queue_055.cpp",
"full/It_posix_queue_056.cpp",
@ -198,7 +155,6 @@ unittest("liteos_a_posix_mqueue_unittest") {
"full/It_posix_queue_134.cpp",
"full/It_posix_queue_136.cpp",
"full/It_posix_queue_143.cpp",
"full/It_posix_queue_144.cpp",
"full/It_posix_queue_145.cpp",
"full/It_posix_queue_146.cpp",
"full/It_posix_queue_147.cpp",
@ -232,10 +188,16 @@ unittest("liteos_a_posix_mqueue_unittest") {
"full/It_posix_queue_202.cpp",
"full/It_posix_queue_203.cpp",
"full/It_posix_queue_204.cpp",
"posix_mqueue_test.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",
@ -243,7 +205,9 @@ unittest("liteos_a_posix_mqueue_unittest") {
"smoke/It_posix_queue_208.cpp",
"smoke/It_posix_queue_209.cpp",
]
sources += sourcesllt
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
configs += [ ":mqueue_config" ]

View File

@ -125,6 +125,8 @@ VOID ItPosixQueue206(VOID);
VOID ItPosixQueue207(VOID);
VOID ItPosixQueue208(VOID);
VOID ItPosixQueue209(VOID);
VOID ItPosixQueue053(VOID);
VOID ItPosixQueue144(VOID);
#endif
#if defined(LOSCFG_USER_TEST_FULL)
@ -166,7 +168,6 @@ VOID ItPosixQueue048(VOID);
VOID ItPosixQueue049(VOID);
VOID ItPosixQueue050(VOID);
VOID ItPosixQueue052(VOID);
VOID ItPosixQueue053(VOID);
VOID ItPosixQueue054(VOID);
VOID ItPosixQueue055(VOID);
VOID ItPosixQueue056(VOID);
@ -241,7 +242,6 @@ VOID ItPosixQueue133(VOID);
VOID ItPosixQueue134(VOID);
VOID ItPosixQueue136(VOID);
VOID ItPosixQueue143(VOID);
VOID ItPosixQueue144(VOID);
VOID ItPosixQueue145(VOID);
VOID ItPosixQueue146(VOID);
VOID ItPosixQueue147(VOID);

View File

@ -279,7 +279,6 @@ HWTEST_F(PosixMqueueTest, ItPosixQueue113, TestSize.Level0)
{
ItPosixQueue113();
}
#endif
/**
* @tc.name: IT_POSIX_QUEUE_018
@ -1194,10 +1193,10 @@ HWTEST_F(PosixMqueueTest, ItPosixQueue154, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/* HWTEST_F(PosixMqueueTest, ItPosixQueue155, TestSize.Level0)
HWTEST_F(PosixMqueueTest, ItPosixQueue155, TestSize.Level0)
{
ItPosixQueue155(); // bug, errno
} */
ItPosixQueue155();
}
/**
* @tc.name: IT_POSIX_QUEUE_156
@ -1316,10 +1315,10 @@ HWTEST_F(PosixMqueueTest, ItPosixQueue187, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*HWTEST_F(PosixMqueueTest, ItPosixQueue200, TestSize.Level0)
HWTEST_F(PosixMqueueTest, ItPosixQueue200, TestSize.Level0)
{
ItPosixQueue200(); // bug, errno
}*/
ItPosixQueue200();
}
/**
* @tc.name: IT_POSIX_QUEUE_201
@ -1327,10 +1326,10 @@ HWTEST_F(PosixMqueueTest, ItPosixQueue187, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*HWTEST_F(PosixMqueueTest, ItPosixQueue201, TestSize.Level0)
HWTEST_F(PosixMqueueTest, ItPosixQueue201, TestSize.Level0)
{
ItPosixQueue201(); // bug, errno
}*/
ItPosixQueue201();
}
/**
* @tc.name: IT_POSIX_QUEUE_202

View File

@ -140,32 +140,7 @@ EXIT:
return MQUEUE_NO_ERROR;
}
/* *
*-@test IT_POSIX_MQUEUE_053
*-@tspec The function test for mq_send
*-@ttitle Mq_send writes the mqueue interrupted by the signal
*-@tprecon The mqueue,signal and pthread module is open
*-@tbrief
1. use the pthread_create to create a legal pthread;
2. use the mq_send to write the mqueue in the pthread;
3. use the pthread_create to create another legal pthread;
4. use the mq_receive to read the mqueue in the second pthread;
5. use the mq_close to close the mqueue in the second pthread;
6. use the mq_unlink to delete the mqueue in the second pthread;
7. delete all the pthreads.
*-@texpect
1. Return successed
2. Return successed
3. Return successed
4. Return successed
5. Return successed
6. Return successed
7. Sucessful operation
*-@tprior 1
*-@tauto TRUE
*-@tremark
*/
VOID ItPosixQueue053(VOID)
{
TEST_ADD_CASE("IT_POSIX_QUEUE_053", Testcase, TEST_POSIX, TEST_QUE, TEST_LEVEL2, TEST_FUNCTION);
TEST_ADD_CASE("ItPosixQueue053", Testcase, TEST_POSIX, TEST_QUE, TEST_LEVEL2, TEST_FUNCTION);
}

View File

@ -149,5 +149,5 @@ EXIT:
VOID ItPosixQueue144(VOID) // IT_Layer_ModuleORFeature_No
{
TEST_ADD_CASE("IT_POSIX_QUEUE_144", Testcase, TEST_POSIX, TEST_QUE, TEST_LEVEL2, TEST_FUNCTION);
TEST_ADD_CASE("ItPosixQueue144", Testcase, TEST_POSIX, TEST_QUE, TEST_LEVEL2, TEST_FUNCTION);
}

View File

@ -42,9 +42,27 @@ unittest("liteos_a_posix_pthread_unittest") {
"../../common/include",
"../../posix/pthread",
]
sourcesllt = []
sources = [
"../../common/osTest.cpp",
"posix_pthread_test.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",
@ -150,19 +168,9 @@ unittest("liteos_a_posix_pthread_unittest") {
"full/It_posix_pthread_239.cpp",
"full/It_posix_pthread_240.cpp",
"full/It_posix_pthread_241.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",
]
sources += sourcesllt
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
configs += [ ":pthread_config" ]

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_mutex_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_mutex_unittest") {
sources = [
"../../common/osTest.cpp",
"process_mutex_test.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",
@ -65,6 +69,8 @@ unittest("liteos_a_mutex_unittest") {
"smoke/pthread_mutex_test_024.cpp",
"smoke/pthread_mutex_test_025.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -49,6 +49,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_pthread_mutex_001
* @tc.desc: function for ProcessMutexTest
@ -292,5 +293,5 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex022, TestSize.Level0)
{
ItTestPthreadMutex022();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_process_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_process_unittest") {
sources = [
"../../common/osTest.cpp",
"process_process_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/process_test_001.cpp",
"smoke/process_test_002.cpp",
"smoke/process_test_004.cpp",
@ -114,6 +118,8 @@ unittest("liteos_a_process_unittest") {
"smp/process_test_smp_007.cpp",
"smp/process_test_smp_008.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -70,6 +70,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_process_001
* @tc.desc: function for ProcessProcessTest
@ -890,6 +891,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp008, TestSize.Level0)
{
ItTestProcessSmp008();
}
#endif
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_pthread_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_pthread_unittest") {
sources = [
"../../common/osTest.cpp",
"process_pthread_test.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",
@ -64,6 +68,8 @@ unittest("liteos_a_pthread_unittest") {
"smoke/pthread_test_018.cpp",
"smoke/pthread_test_019.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -51,6 +51,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_pthread_001
* @tc.desc: function for ProcessPthreadTest
@ -165,8 +166,8 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread010, TestSize.Level0)
{
ItTestPthread010();
}
#endif
/* *
* @tc.name: it_test_pthread_011
* @tc.desc: function for ProcessPthreadTest
@ -211,8 +212,8 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread014, TestSize.Level0)
{
ItTestPthread014();
}
#endif
/* *
* @tc.name: it_test_pthread_015
* @tc.desc: function for ProcessPthreadTest
@ -322,4 +323,5 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadCond002, TestSize.Level0)
{
ItTestPthreadCond002();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_rwlock_unittest") {
output_extension = "bin"
@ -39,9 +40,14 @@ unittest("liteos_a_rwlock_unittest") {
sources = [
"../../common/osTest.cpp",
"process_rwlock_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/pthread_rwlock_test_001.cpp",
"smoke/pthread_rwlock_test_002.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_pthread_rwlock_001
* @tc.desc: function for ProcessRwlockTest
@ -62,4 +63,5 @@ HWTEST_F(ProcessRwlockTest, ItTestPthreadRwlock002, TestSize.Level0)
{
ItTestPthreadRwlock002();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_spinlock_unittest") {
output_extension = "bin"
@ -39,8 +40,13 @@ unittest("liteos_a_spinlock_unittest") {
sources = [
"../../common/osTest.cpp",
"process_spinlock_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/pthread_spinlock_test_001.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../..:public_config" ]
}

View File

@ -41,6 +41,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: it_test_pthread_spinlock_001
* @tc.desc: function for ProcessSpinlockTest
@ -51,4 +52,5 @@ HWTEST_F(ProcessSpinlockTest, ItTestPthreadSpinlock001, TestSize.Level0)
{
ItTestPthreadSpinlock001();
}
#endif
} // namespace OHOS

View File

@ -1,5 +1,6 @@
# Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_security_capability_unittest") {
output_extension = "bin"
@ -12,8 +13,13 @@ unittest("liteos_a_security_capability_unittest") {
sources = [
"../../common/osTest.cpp",
"security_capability_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/cap_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}

View File

@ -42,6 +42,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/**
* @tc.name: It_Test_Cap_001
* @tc.desc: function for SecurityCapbilityTest
@ -52,4 +53,5 @@ HWTEST_F(SecurityCapabilityTest, ItTestCap001, TestSize.Level0)
{
ItTestCap001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_security_reugid_unittest") {
output_extension = "bin"
@ -39,8 +40,13 @@ unittest("liteos_a_security_reugid_unittest") {
sources = [
"../../common/osTest.cpp",
"security_reugid_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/reugid_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}

View File

@ -42,6 +42,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/**
* @tc.name: ItTestReugid001
* @tc.desc: function for SecurityReugidTest
@ -52,4 +53,5 @@ HWTEST_F(SecurityReugidTest, ItTestReugid001, TestSize.Level0)
{
ItTestReugid001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_security_vid_unittest") {
output_extension = "bin"
@ -39,8 +40,13 @@ unittest("liteos_a_security_vid_unittest") {
sources = [
"../../common/osTest.cpp",
"security_vid_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/vid_test_001.cpp",
]
sources += sources_smoke
}
configs = [ "../..:public_config" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}

View File

@ -42,6 +42,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/**
* @tc.name: It_Sec_Vid_001
* @tc.desc: function for SecurityVidTest
@ -52,4 +53,5 @@ HWTEST_F(SecurityVidTest, ItSecVid001, TestSize.Level0)
{
ItSecVid001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_signal_unittest") {
output_extension = "bin"
@ -39,6 +40,9 @@ unittest("liteos_a_signal_unittest") {
sources = [
"../common/osTest.cpp",
"signal_test.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",
@ -103,6 +107,8 @@ unittest("liteos_a_signal_unittest") {
"smoke/sigset_test_001.cpp",
"smoke/sigset_test_002.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -40,6 +40,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: IT_POSIX_SIGNAL_001
* @tc.desc: function for SignalTest
@ -645,4 +646,5 @@ HWTEST_F(SignalTest, ItIpcSigpromask001, TestSize.Level0)
{
ItIpcSigpromask001();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_sys_unittest") {
output_extension = "bin"
@ -38,6 +39,11 @@ unittest("liteos_a_sys_unittest") {
]
sources = [
"../common/osTest.cpp",
"sys_unit_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/sys_test_001.cpp",
"smoke/sys_test_004.cpp",
"smoke/sys_test_005.cpp",
@ -66,8 +72,10 @@ unittest("liteos_a_sys_unittest") {
"smoke/sys_test_029.cpp",
"smoke/sys_test_030.cpp",
"smoke/sys_test_031.cpp",
"sys_unit_test.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "..:public_config" ]
}

View File

@ -42,6 +42,7 @@ public:
static void TearDownTestCase(void) {}
};
#if defined(LOSCFG_USER_TEST_SMOKE)
/* *
* @tc.name: IT_TEST_SYS_004
* @tc.desc: function for SysTest
@ -217,4 +218,5 @@ HWTEST_F(SysTest, IT_TEST_SYS_031, TestSize.Level0)
{
IT_TEST_SYS_031();
}
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_time_clock_unittest") {
output_extension = "bin"
@ -36,8 +37,14 @@ unittest("liteos_a_time_clock_unittest") {
"../../common/include",
"../../time/clock",
]
sources = [
"../../common/osTest.cpp",
"time_clock_test.cpp",
]
if (LOSCFG_USER_TEST_SMOKE == true) {
sources_smoke = [
"smoke/clock_test_001.cpp",
"smoke/clock_test_002.cpp",
"smoke/clock_test_003.cpp",
@ -46,11 +53,18 @@ unittest("liteos_a_time_clock_unittest") {
"smoke/clock_test_007.cpp",
"smoke/clock_test_008.cpp",
"smoke/clock_test_009.cpp",
"smoke/clock_test_010.cpp",
"smoke/clock_test_011.cpp",
"smoke/clock_test_012.cpp",
"time_clock_test.cpp",
]
sources += sources_smoke
}
if (LOSCFG_USER_TEST_FULL == true) {
sources_full = [
"full/clock_test_010.cpp",
]
sources += sources_full
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../../../unittest:public_config" ]
}

View File

@ -64,7 +64,7 @@ static int SleepTest(int64_t expectTime)
LogPrintln("slept time (expected --> actual): %" PRId64 "ns --> %" PRId64 "ns, delta: %" PRId64 "ns\n", expectTime,
escapeTime, escapeTime - expectTime);
g_failCnt += (escapeTime < expectTime || (escapeTime - expectTime) >= 90000000); // 20000000, 2 ticks.
g_failCnt += (escapeTime < expectTime || (escapeTime - expectTime) >= 20000000); // 20000000, 2 ticks.
return 0;
}

View File

@ -133,7 +133,9 @@ HWTEST_F(TimeClockTest, ClockTest009, TestSize.Level0)
{
ClockTest009();
}
#endif
#if defined(LOSCFG_USER_TEST_FULL)
/* *
* @tc.name: ClockTest010
* @tc.desc: function for TimeClockTest

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../../config.gni")
unittest("liteos_a_time_timer_unittest") {
output_extension = "bin"
@ -36,16 +37,24 @@ unittest("liteos_a_time_timer_unittest") {
"../../common/include",
"../../time/timer",
]
sources = [
"../../common/osTest.cpp",
"time_timer_test.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",
"time_timer_test.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../../../unittest:public_config" ]
}

View File

@ -82,10 +82,10 @@ HWTEST_F(TimeTimerTest, TimerTest003, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/* HWTEST_F(TimeTimerTest, TimerTest004, TestSize.Level0)
/*HWTEST_F(TimeTimerTest, TimerTest004, TestSize.Level0)
{
TimerTest004();
} */
TimerTest004(); // bug: musl sigaction handler have only one param.
}*/
#endif
} // namespace OHOS

View File

@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("../config.gni")
unittest("liteos_a_util_unittest") {
output_extension = "bin"
@ -37,19 +38,27 @@ unittest("liteos_a_util_unittest") {
"./",
"../misc",
]
sources = [
"../common/osTest.cpp",
"full/it_test_util_100.cpp",
"full/it_test_util_101.cpp",
"full/util_test_001.cpp",
"full/util_test_002.cpp",
"full/util_test_003.cpp",
"full/util_test_004.cpp",
"full/util_test_005.cpp",
"full/util_test_006.cpp",
"full/util_test_007.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",
"smoke/util_test_002.cpp",
"smoke/util_test_003.cpp",
"smoke/util_test_004.cpp",
"smoke/util_test_005.cpp",
"smoke/util_test_006.cpp",
"smoke/util_test_007.cpp",
]
sources += sources_smoke
}
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
configs = [ "../../unittest:public_config" ]
}

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: IT_TEST_UTIL_001
* @tc.desc: function for UtilTest