/ohos5.0/base/startup/init/test/unittest/modules/ |
H A D | context_unittest.cpp | 88 int ret = ExecuteCmdInSubInit(&context, "mkdir", STARTUP_INIT_UT_PATH"/testsubcontext"); 90 ret = ExecuteCmdInSubInit(&context, "mkdir", STARTUP_INIT_UT_PATH"/testsubcontext1"); 92 ret = ExecuteCmdInSubInit(&context, "mkdir", STARTUP_INIT_UT_PATH"/testsubcontext2"); 97 ret = ExecuteCmdInSubInit(&context, "mkdir", STARTUP_INIT_UT_PATH"/testsubcontext"); 101 ret = ExecuteCmdInSubInit(nullptr, "mkdir", STARTUP_INIT_UT_PATH"/testsubcontext"); 103 ret = ExecuteCmdInSubInit(&context, nullptr, STARTUP_INIT_UT_PATH"/testsubcontext"); 154 …ret = subContext->executeCmdInSubInit(INIT_CONTEXT_CHIPSET, "mkdir-2", STARTUP_INIT_UT_PATH"/tests… 161 int ret = ExecuteCmdInSubInit(&context, "mkdir-2", STARTUP_INIT_UT_PATH"/testsubcontext"); 174 DoCmdByIndex(index, STARTUP_INIT_UT_PATH"/testsubcontext", &context); 186 DoCmdByIndex(index, STARTUP_INIT_UT_PATH"/testsubcontext", &context);
|
H A D | eng_unittest.cpp | 33 static const std::string SRC_FILE_PATH = STARTUP_INIT_UT_PATH"/eng/source/test.txt"; 34 static const std::string TARGET_PATH = STARTUP_INIT_UT_PATH"/eng/link_name"; 35 static const std::string ENG_ROOT_PATH = STARTUP_INIT_UT_PATH"/eng/"; 158 RemoveDir(STARTUP_INIT_UT_PATH"/eng/source"); 201 EXPECT_EQ(IsFileExistWithType(STARTUP_INIT_UT_PATH"/eng", TYPE_DIR), true); 203 EXPECT_EQ(IsFileExistWithType(STARTUP_INIT_UT_PATH"/eng", TYPE_LINK), false); 204 EXPECT_EQ(IsFileExistWithType(STARTUP_INIT_UT_PATH"/eng", TYPE_REG), false); 205 EXPECT_EQ(IsFileExistWithType(STARTUP_INIT_UT_PATH"/eng", TYPE_ANY), true);
|
H A D | trace_unittest.cpp | 102 CreateTestFile(STARTUP_INIT_UT_PATH"/system/etc/init_trace.cfg", config.c_str()); in CreateInitTraceConfig() 149 cmdArgs += STARTUP_INIT_UT_PATH"/system/etc/init_trace.cfg"; 175 cmdArgs += STARTUP_INIT_UT_PATH"/bin/test";
|
/ohos5.0/base/startup/init/test/unittest/param/ |
H A D | param_stub.cpp | 248 CreateTestFile(STARTUP_INIT_UT_PATH"/ueventd_ut/valid.config", ueventdcfg); in PrepareUeventdcfg() 253 CreateTestFile(STARTUP_INIT_UT_PATH"/test_insmod", modCfg); in PrepareModCfg() 279 CreateTestFile(STARTUP_INIT_UT_PATH"/etc/fstab.required", fstabRequired); in PrepareInnerKitsCfg() 280 CreateTestFile(STARTUP_INIT_UT_PATH"/system/etc/fstab.required", fstabRequired); in PrepareInnerKitsCfg() 460 CreateTestFile(STARTUP_INIT_UT_PATH "/etc/group", groupData.c_str()); in PrepareTestGroupFile() 517 LoadDefaultParams(STARTUP_INIT_UT_PATH "/vendor/etc/param", LOAD_PARAM_NORMAL); in PrepareInitUnitTestEnv() 519 LoadParamsFile(STARTUP_INIT_UT_PATH "/system/etc/param", LOAD_PARAM_ONLY_ADD); in PrepareInitUnitTestEnv() 576 mkdir(STARTUP_INIT_UT_PATH, S_IRWXU | S_IRWXG | S_IRWXO); in ParamTestStubInit() 577 CheckAndCreateDir(STARTUP_INIT_UT_PATH MODULE_LIB_NAME "/autorun/"); in ParamTestStubInit() 581 STARTUP_INIT_UT_PATH MODULE_LIB_NAME "/libbootchart.z.so", nullptr); in ParamTestStubInit() [all …]
|
H A D | dac_unittest.cpp | 62 …ret = initParamSecurityOps.securityGetLabel(STARTUP_INIT_UT_PATH "/system/etc/param/ohos.para.dac"… in TestDacGetLabel() 139 test.TestDacCheckFilePermission(STARTUP_INIT_UT_PATH "/trigger_test.cfg"); 268 test.TestClientDacCheckFilePermission(STARTUP_INIT_UT_PATH "/trigger_test.cfg");
|
H A D | selinux_unittest.cpp | 170 test.TestSelinuxCheckFilePermission(STARTUP_INIT_UT_PATH "/trigger_test.cfg"); 182 test.TestClientSelinuxCheckFilePermission(STARTUP_INIT_UT_PATH "/trigger_test.cfg");
|
H A D | paramservice_unittest.cpp | 478 CreateTestFile(STARTUP_INIT_UT_PATH "/system/etc/sn", snData); 483 std::string snWithPath = cmdLineForSn + "ohos.boot.sn=" + STARTUP_INIT_UT_PATH "/system/etc/sn";
|
H A D | trigger_unittest.cpp | 108 ParseInitCfg(STARTUP_INIT_UT_PATH "/trigger_test.cfg"); in TestLoadTrigger()
|
/ohos5.0/base/startup/init/services/param/include/ |
H A D | param_utils.h | 72 #define DATA_PATH STARTUP_INIT_UT_PATH"/storage/data/system/param/" 74 #define DATA_PATH STARTUP_INIT_UT_PATH"/storage/data/system/param/" 76 #define DATA_PATH STARTUP_INIT_UT_PATH"/data/service/el1/startup/parameters/" 78 #define PARAM_AREA_SIZE_CFG STARTUP_INIT_UT_PATH"/etc/param/ohos.para.size" 80 #define PIPE_NAME STARTUP_INIT_UT_PATH "/dev/unix/socket/paramservice" 81 #define PARAM_STORAGE_PATH STARTUP_INIT_UT_PATH "/dev/__parameters__" 84 #define PRIVATE_DATA_PATH STARTUP_INIT_UT_PATH "/data/service/el1/public/startup/parameters/"
|
/ohos5.0/base/startup/init/interfaces/innerkits/include/ |
H A D | beget_ext.h | 34 #define INIT_LOG_PATH STARTUP_INIT_UT_PATH"/data/init_agent/" 70 #ifndef STARTUP_INIT_UT_PATH 72 #define STARTUP_INIT_UT_PATH "/data/init_ut" macro 74 #define STARTUP_INIT_UT_PATH "" macro
|
H A D | init_utils.h | 49 #define BOOT_CMD_LINE STARTUP_INIT_UT_PATH"/proc/cmdline"
|
/ohos5.0/base/startup/init/test/unittest/ueventd/ |
H A D | ueventd_config_unittest.cpp | 45 ParseUeventdConfigFile(STARTUP_INIT_UT_PATH"/ueventd_ut/valid.config"); 87 ParseUeventdConfigFile(STARTUP_INIT_UT_PATH"/ueventd_ut/valid.config");
|
/ohos5.0/base/startup/init/test/unittest/innerkits/ |
H A D | innerkits_unittest.cpp | 79 const std::string fstabFile2 = STARTUP_INIT_UT_PATH"/mount_unitest/ReadFstabFromFile1.fstable"; 95 const std::string fstabFile1 = STARTUP_INIT_UT_PATH"/mount_unitest/ReadFstabFromFile1.fstable"; 133 const std::string fstabFile1 = STARTUP_INIT_UT_PATH"/mount_unitest/ReadFstabFromFile1.fstable"; 162 const std::string fstabFile1 = STARTUP_INIT_UT_PATH"/mount_unitest/ReadFstabFromFile1.fstable"; 249 EXPECT_NE(MountAllWithFstabFile(STARTUP_INIT_UT_PATH"/etc/fstab.required", 0), 1); 250 EXPECT_NE(UmountAllWithFstabFile(STARTUP_INIT_UT_PATH"/etc/fstab.required"), 1);
|
H A D | modulemgr_unittest.cpp | 115 moduleMgr = ModuleMgrScan(STARTUP_INIT_UT_PATH MODULE_LIB_NAME "/autorun");
|
/ohos5.0/base/startup/init/services/init/standard/ |
H A D | init_mount.c | 40 const char *fstabFile = STARTUP_INIT_UT_PATH"/etc/fstab.required"; in LoadRequiredFstab()
|
/ohos5.0/base/startup/init/services/init/include/ |
H A D | init_group_manager.h | 33 #define GROUP_DEFAULT_PATH STARTUP_INIT_UT_PATH"/system/etc"
|
/ohos5.0/base/startup/init/interfaces/innerkits/modulemgr/ |
H A D | modulemgr.c | 110 …rc = snprintf_s(path, sizeof(path), sizeof(path) - 1, STARTUP_INIT_UT_PATH"%s" MODULE_SUFFIX_D, mo… in ModuleInstall() 115 … STARTUP_INIT_UT_PATH"%s/%s/lib%s" MODULE_SUFFIX_D, fmt, module->moduleMgr->name, module->name); in ModuleInstall()
|
/ohos5.0/base/startup/init/test/unittest/lite/ |
H A D | BUILD.gn | 133 "STARTUP_INIT_UT_PATH =\"/userdata/init_ut\"", 187 "STARTUP_INIT_UT_PATH =\"/\"", 221 "STARTUP_INIT_UT_PATH =\"/data/init_ut\"",
|
/ohos5.0/base/startup/init/test/unittest/loopevent/ |
H A D | loopserver_unittest.cpp | 42 const std::string PIPE_SERVER = STARTUP_INIT_UT_PATH "/dev/unix/socket/testsocket"; 43 const std::string WATCHER_FILE = STARTUP_INIT_UT_PATH "/test_watcher_file";
|
/ohos5.0/base/startup/init/services/param/adapter/ |
H A D | param_dac.c | 32 #define GROUP_FILE_PATH STARTUP_INIT_UT_PATH "/etc/group"
|
/ohos5.0/base/startup/init/services/modules/trace/ |
H A D | init_trace.c | 48 #define TRACE_CFG_PATH STARTUP_INIT_UT_PATH"/system/etc/init_trace.cfg"
|