Home
last modified time | relevance | path

Searched refs:dirname (Results 1 - 25 of 72) sorted by relevance

123

/test/xts/hats/kernel/posix_interface/interface_gn/utils/
H A Dlibfs.cpp28 int MakeDir(const char *dirname) in MakeDir() argument
30 if (access(dirname, F_OK) == 0) { in MakeDir()
31 LOG("dir:%s exists", dirname); in MakeDir()
34 int rt = mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IXOTH); in MakeDir()
36 LOG("create dir failed! path=%s, errno=%d:%s", dirname, errno, strerror(errno)); in MakeDir()
43 int RemoveDir(const char *dirname) in RemoveDir() argument
48 if (stat(dirname, &dirStat) < 0) { in RemoveDir()
54 DIR *pDir = opendir(dirname); in RemoveDir()
62 size_t rt = sprintf_s(subDir, sizeof(subDir), "%s/%s", dirname, fname.c_str()); in RemoveDir()
64 LOG("output failed, dirname in RemoveDir()
[all...]
H A Dlibfs.h21 * input: dirname
23 * 0 -- mkdir ok, or dirname already exists
24 * 1 -- dirname already exists
26 int MakeDir(const char *dirname);
30 * input: dirname
34 int RemoveDir(const char *dirname);
38 * input: dirname
/test/xts/acts/kernel_lite/utils/
H A Dlibfs.cpp28 int MakeDir(const char *dirname) in MakeDir() argument
30 if (access(dirname, F_OK) == 0) { in MakeDir()
31 LOG("dir:%s exists", dirname); in MakeDir()
34 int rt = mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IXOTH); in MakeDir()
36 LOG("create dir failed! path=%s, errno=%d:%s", dirname, errno, strerror(errno)); in MakeDir()
43 int RemoveDir(const char *dirname) in RemoveDir() argument
48 if (stat(dirname, &dirStat) < 0) { in RemoveDir()
54 DIR *pDir = opendir(dirname); in RemoveDir()
62 sprintf(subDir, "%s/%s", dirname, fname); in RemoveDir()
66 if (rmdir(dirname) in RemoveDir()
[all...]
H A Dlibfs.h21 * input: dirname
23 * 0 -- mkdir ok, or dirname already exists
24 * 1 -- dirname already exists
26 int MakeDir(const char *dirname);
30 * input: dirname
34 int RemoveDir(const char *dirname);
38 * input: dirname
/test/testfwk/xdevice/src/xdevice/_core/report/
H A D__init__.py23 os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
24 sys.path.insert(1, os.path.join(os.path.dirname(
25 os.path.dirname(os.path.dirname(os.path.dirname(__file__))))))
/test/testfwk/xdevice/src/xdevice/_core/
H A Dvariables.py27 SRC_DIR = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
28 MODULES_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
30 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
/test/testfwk/developer_test/src/core/build/
H A Dbuild_lite_testcases.sh21 BASE_HOME=$(dirname $(dirname $(dirname $(dirname $(dirname $(cd $(dirname $0); pwd))))))
/test/xts/tools/lite/
H A Dbuild.sh17 BASE_HOME=$(dirname $(dirname $(dirname $(dirname $(cd $(dirname $0); pwd)))))
H A DbuildFun.sh99 cp -f $(dirname $suite_root_dir_common)/bin/hihope_neptune100.fls ${suite_root_dir_common}/acts/testcases/${PRODUCT}/OHOS_Image.fls
103 cp -f $(dirname $suite_root_dir_common)/build/all_2M.1220.bin ${suite_root_dir_common}/acts/testcases/${PRODUCT}/OHOS_Image.bin
105 cp -f $(dirname $suite_root_dir_common)/bin/xts_demo.bin ${suite_root_dir_common}/acts/testcases/${PRODUCT}/OHOS_Image.bin
107 cp -f $(dirname $suite_root_dir_common)/OHOS_Image.bin ${suite_root_dir_common}/acts/testcases/${PRODUCT}/OHOS_Image.bin
H A Druntest.sh17 BASE_HOME=$(dirname $(dirname $(cd $(dirname $0); pwd)))
/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dfile_util.py178 dir_path = os.path.dirname(file_path)
224 dirname = os.path.dirname(filename)
225 if not os.path.isdir(dirname):
226 os.makedirs(dirname)
252 def delfolder(dirname):
254 shutil.rmtree(dirname)
256 if os.path.isdir(dirname):
257 shutil.rmtree(dirname)
260 if os.path.isdir(dirname)
[all...]
H A Dtime_util.py132 os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
/test/testfwk/xdevice/src/xdevice/_core/executor/
H A Dsource.py166 os.path.join(os.path.dirname(info_file), module_name)
320 os.path.join(os.path.dirname(file_path), filename))
357 os.path.join(os.path.dirname(test_source), filename), ext, config)
366 os.path.join(os.path.dirname(test_source), filename),
452 dirname = os.path.dirname(filename)
453 while dirname and depth < MAX_DIR_DEPTH:
454 for item in os.listdir(dirname):
455 item_path = os.path.join(dirname, item)
460 dirname
[all...]
/test/testfwk/developer_test/src/main/
H A D_init_global_config.py27 sys.framework_src_dir = os.path.abspath(os.path.dirname(
28 os.path.dirname(__file__)))
35 sys.framework_root_dir = os.path.abspath(os.path.dirname(
36 os.path.dirname(os.path.dirname(__file__))))
/test/testfwk/developer_test/libs/fuzzlib/
H A Dfuzzer_helper.py45 CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
46 SOURCE_ROOT_DIR = os.path.dirname(
47 os.path.dirname(
48 os.path.dirname(os.path.dirname(CURRENT_DIR))
201 if not os.path.exists(os.path.dirname(subsystem_src_flag_file_path)):
202 os.makedirs(os.path.dirname(subsystem_src_flag_file_path))
/test/testfwk/developer_test/libs/benchmark/report/
H A Dgenerate_report.py245 os.path.dirname(__file__),
247 if not os.path.exists(os.path.dirname(tmpl_file_path)):
253 if not os.path.exists(os.path.dirname(out_report_file_path)):
254 os.makedirs(os.path.dirname(out_report_file_path))
304 os.path.join(os.path.dirname(__file__),
306 if not os.path.exists(os.path.dirname(report_tmpl_file_path)):
319 if not os.path.exists(os.path.dirname(out_report_file_path)):
320 os.makedirs(os.path.dirname(out_report_file_path))
/test/xts/acts/
H A Dget_dependency.py25 home = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
H A Dci_build.sh20 XTS_HOME=$(dirname $(cd $(dirname $0); pwd))
H A Dbuild.sh33 BASE_HOME=$(dirname $(cd $(dirname $0); pwd))
/test/testfwk/xdevice/src/xdevice/
H A D__main__.py27 srcpath = os.path.dirname(os.path.dirname(__file__))
46 resource_path = os.path.join(os.path.dirname(__file__), "_core", "resource")
/test/testfwk/developer_test/aw/python/distributed/distribute/
H A Ddistribute.py31 sys.framework_src_dir = os.path.abspath(os.path.dirname(
32 os.path.dirname(__file__)))
34 sys.framework_root_dir = os.path.abspath(os.path.dirname(
35 os.path.dirname(os.path.dirname(os.path.dirname(
36 os.path.dirname(__file__))))))
/test/xts/tools/lite/build/
H A Dsuite.py128 module_info_dir = os.path.dirname(suite_out_dir)
151 "path %s " % os.path.dirname(
207 root_dir = os.path.dirname(tool_dir)
240 suite_root_path = os.path.dirname(suite_path)
/test/testfwk/xdevice/plugins/devicetest/report/
H A Dgeneration.py87 create_dir(os.path.dirname(to_file))
88 template_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../res/template")
/test/xts/dcts/
H A Dbuild.sh37 BASE_HOME=$(dirname $(cd $(dirname $0); pwd))
/test/xts/hats/
H A Dbuild.sh33 BASE_HOME=$(dirname $(cd $(dirname $0); pwd))

Completed in 9 milliseconds

123