Home
last modified time | relevance | path

Searched refs:STARTUP_INIT_UT_PATH (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/base/startup/init/test/unittest/modules/
H A Dcontext_unittest.cpp88 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 Deng_unittest.cpp33 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 Dtrace_unittest.cpp102 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 Dparam_stub.cpp248 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 Ddac_unittest.cpp62 …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 Dselinux_unittest.cpp170 test.TestSelinuxCheckFilePermission(STARTUP_INIT_UT_PATH "/trigger_test.cfg");
182 test.TestClientSelinuxCheckFilePermission(STARTUP_INIT_UT_PATH "/trigger_test.cfg");
H A Dparamservice_unittest.cpp478 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 Dtrigger_unittest.cpp108 ParseInitCfg(STARTUP_INIT_UT_PATH "/trigger_test.cfg"); in TestLoadTrigger()
/ohos5.0/base/startup/init/services/param/include/
H A Dparam_utils.h72 #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 Dbeget_ext.h34 #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 Dinit_utils.h49 #define BOOT_CMD_LINE STARTUP_INIT_UT_PATH"/proc/cmdline"
/ohos5.0/base/startup/init/test/unittest/ueventd/
H A Dueventd_config_unittest.cpp45 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 Dinnerkits_unittest.cpp79 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 Dmodulemgr_unittest.cpp115 moduleMgr = ModuleMgrScan(STARTUP_INIT_UT_PATH MODULE_LIB_NAME "/autorun");
/ohos5.0/base/startup/init/services/init/standard/
H A Dinit_mount.c40 const char *fstabFile = STARTUP_INIT_UT_PATH"/etc/fstab.required"; in LoadRequiredFstab()
/ohos5.0/base/startup/init/services/init/include/
H A Dinit_group_manager.h33 #define GROUP_DEFAULT_PATH STARTUP_INIT_UT_PATH"/system/etc"
/ohos5.0/base/startup/init/interfaces/innerkits/modulemgr/
H A Dmodulemgr.c110 …rc = snprintf_s(path, sizeof(path), sizeof(path) - 1, STARTUP_INIT_UT_PATH"%s" MODULE_SUFFIX_D, mo… in ModuleInstall()
115STARTUP_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 DBUILD.gn133 "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 Dloopserver_unittest.cpp42 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 Dparam_dac.c32 #define GROUP_FILE_PATH STARTUP_INIT_UT_PATH "/etc/group"
/ohos5.0/base/startup/init/services/modules/trace/
H A Dinit_trace.c48 #define TRACE_CFG_PATH STARTUP_INIT_UT_PATH"/system/etc/init_trace.cfg"