提交 c0b954fe 编写于 作者: X xialiyun

hujixiang1@huawei.com

Signed-off-by: Nxialiyun <xialiyun@huawei.com>
Change-Id: I4808bc61a0f10aa04a15a39fc473f880505ee4e4
上级 330c3716
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/lite/build/suite_lite.gni") import("//test/xts/tools/lite/build/suite_lite.gni")
import("//build/lite/config/subsystem/aafwk/config.gni")
hcpptest_suite("ActsJFFS2CapabilityTest") { hcpptest_suite("ActsJFFS2CapabilityTest") {
suite_name = "acts" suite_name = "acts"
...@@ -39,9 +40,17 @@ hcpptest_suite("ActsJFFS2CapabilityTest") { ...@@ -39,9 +40,17 @@ hcpptest_suite("ActsJFFS2CapabilityTest") {
"-lpthread", "-lpthread",
] ]
defines = [ if(enable_ohos_appexecfwk_feature_ability == true) {
"LITE_FS_JFFS2", defines = ["BOARD_HI3516_",
"TOP_DIR=\"/storage\"", "LITE_FS_JFFS2",
"TOP_DIR_MOUNT_INFO=\"/storage jffs\"", "TOP_DIR=\"/storage\"",
] "TOP_DIR_MOUNT_INFO=\"/storage jffs\"",
]
} else {
defines = [
"LITE_FS_JFFS2",
"TOP_DIR=\"/storage\"",
"TOP_DIR_MOUNT_INFO=\"/storage jffs\"",
]
}
} }
...@@ -1490,7 +1490,8 @@ HWTEST_F(CapabilityTestSuite, CapabilityTest2100, Reliability | MediumTest | Lev ...@@ -1490,7 +1490,8 @@ HWTEST_F(CapabilityTestSuite, CapabilityTest2100, Reliability | MediumTest | Lev
} }
#endif #endif
#if defined(LITE_FS_JFFS2) #ifndef _BOARD_HI3516_
#if defined(LITE_FS_JFFS2) || defined(LITE_FS_VFAT)
/* /*
* @tc.number : SUB_SEC_AppSEC_PermissionMgmt_Capability_2200 * @tc.number : SUB_SEC_AppSEC_PermissionMgmt_Capability_2200
* @tc.name : Check whether the default configuration of the system process capabilities * @tc.name : Check whether the default configuration of the system process capabilities
...@@ -1529,8 +1530,9 @@ HWTEST_F(CapabilityTestSuite, CapabilityTest2200, Security | MediumTest | Level1 ...@@ -1529,8 +1530,9 @@ HWTEST_F(CapabilityTestSuite, CapabilityTest2200, Security | MediumTest | Level1
EXPECT_EQ(ret, 0) << "ErrInfo: Pid = 9, process wms_server or ai_server has wrong capability"; EXPECT_EQ(ret, 0) << "ErrInfo: Pid = 9, process wms_server or ai_server has wrong capability";
} }
#endif #endif
#endif
#if defined(LITE_FS_VFAT) #if defined(LITE_FS_VFAT) && defined(_BOARD_HI3516_)
/* /*
* @tc.number : SUB_SEC_AppSEC_PermissionMgmt_Capability_2200 * @tc.number : SUB_SEC_AppSEC_PermissionMgmt_Capability_2200
* @tc.name : Check whether the default configuration of the system process capabilities * @tc.name : Check whether the default configuration of the system process capabilities
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/lite/build/suite_lite.gni") import("//test/xts/tools/lite/build/suite_lite.gni")
import("//build/lite/config/subsystem/aafwk/config.gni")
hcpptest_suite("ActsVFATCapabilityTest") { hcpptest_suite("ActsVFATCapabilityTest") {
suite_name = "acts" suite_name = "acts"
...@@ -39,9 +40,18 @@ hcpptest_suite("ActsVFATCapabilityTest") { ...@@ -39,9 +40,18 @@ hcpptest_suite("ActsVFATCapabilityTest") {
"-lpthread", "-lpthread",
] ]
defines = [ if(enable_ohos_appexecfwk_feature_ability == true) {
"LITE_FS_VFAT", defines = ["BOARD_HI3516_",
"TOP_DIR=\"/sdcard\"", "LITE_FS_JFFS2",
"TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"", "TOP_DIR=\"/sdcard\"",
] "TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"",
]
} else {
defines = [
"LITE_FS_VFAT",
"TOP_DIR=\"/sdcard\"",
"TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"",
]
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册