full & smoke separate
Change-Id: I885610a62b980bd3720b337aced886450338bdcf
This commit is contained in:
@@ -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" ]
|
||||
}
|
||||
}
|
||||
@@ -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, ¶m);
|
||||
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
|
||||
|
||||
wait(nullptr);
|
||||
exit(92);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -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" ]
|
||||
}
|
||||
}
|
||||
@@ -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" ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user