full & smoke separate
Change-Id: I885610a62b980bd3720b337aced886450338bdcf
This commit is contained in:
@@ -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" ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user