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
+83 -53
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" ]
}
}