Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 25 of 92) sorted by relevance

1234

/test/xts/acts/kernel_lite/utils/
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) == -1) { // delete empty dir in RemoveDir()
[all …]
Dlibfs.h26 int MakeDir(const char *dirname);
34 int RemoveDir(const char *dirname);
/test/xts/hats/kernel/posix_interface/interface_gn/utils/
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=%s, errno=%d:%s", dirname, errno, strerror(errno)); in RemoveDir()
[all …]
Dlibfs.h26 int MakeDir(const char *dirname);
34 int RemoveDir(const char *dirname);
/test/testfwk/xdevice/src/xdevice/_core/report/
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/xts/tools/lite/
Dbuild.sh17 BASE_HOME=$(dirname $(dirname $(dirname $(dirname $(cd $(dirname $0); pwd)))))
Druntest.sh17 BASE_HOME=$(dirname $(dirname $(cd $(dirname $0); pwd)))
DbuildFun.sh98 …cp -f $(dirname $suite_root_dir_common)/bin/hihope_neptune100.fls ${suite_root_dir_common}/acts/te…
102 …cp -f $(dirname $suite_root_dir_common)/build/all_2M.1220.bin ${suite_root_dir_common}/acts/testca…
104 …cp -f $(dirname $suite_root_dir_common)/bin/xts_demo.bin ${suite_root_dir_common}/acts/testcases/$…
106 …cp -f $(dirname $suite_root_dir_common)/OHOS_Image.bin ${suite_root_dir_common}/acts/testcases/${P…
/test/testfwk/developer_test/src/core/build/
Dbuild_lite_testcases.sh21 BASE_HOME=$(dirname $(dirname $(dirname $(dirname $(dirname $(cd $(dirname $0); pwd))))))
/test/testfwk/developer_test/src/main/
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/xdevice/src/xdevice/
Dvariables.py27 SRC_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
28 MODULES_DIR = os.path.abspath(os.path.dirname(__file__))
30 os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
D__main__.py25 srcpath = os.path.dirname(os.path.dirname(__file__))
/test/testfwk/developer_test/libs/fuzzlib/
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))
203 if not os.path.exists(os.path.dirname(subsystem_src_flag_file_path)):
204 os.makedirs(os.path.dirname(subsystem_src_flag_file_path))
/test/testfwk/xdevice/src/xdevice/_core/executor/
Dsource.py157 os.path.join(os.path.dirname(info_file), module_name)
307 os.path.join(os.path.dirname(file_path), filename))
341 os.path.join(os.path.dirname(test_source), filename), ext, config)
351 os.path.join(os.path.dirname(test_source), filename),
424 dirname = os.path.dirname(filename)
425 while dirname and depth < MAX_DIR_DEPTH:
426 for item in os.listdir(dirname):
427 item_path = os.path.join(dirname, item)
432 dirname = os.path.dirname(dirname)
486 save_file = os.path.join(os.path.dirname(filename),
/test/testfwk/developer_test/libs/benchmark/report/
Dgenerate_report.py243 os.path.dirname(__file__),
245 if not os.path.exists(os.path.dirname(tmpl_file_path)):
251 if not os.path.exists(os.path.dirname(out_report_file_path)):
252 os.makedirs(os.path.dirname(out_report_file_path))
302 os.path.join(os.path.dirname(__file__),
304 if not os.path.exists(os.path.dirname(report_tmpl_file_path)):
317 if not os.path.exists(os.path.dirname(out_report_file_path)):
318 os.makedirs(os.path.dirname(out_report_file_path))
/test/testfwk/developer_test/aw/python/distributed/distribute/
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/acts/
Dci_build.sh20 XTS_HOME=$(dirname $(cd $(dirname $0); pwd))
Dbuild.sh36 BASE_HOME=$(dirname $(cd $(dirname $0); pwd))
/test/testfwk/developer_test/
Dinstall.sh26 testdir=$(cd $(dirname $0);pwd)
Dstart.sh22 BASE_HOME=$(cd $(dirname $0);pwd)
/test/testfwk/developer_test/localCoverage/codeCoverage/
Dllvm-gcov.sh18 current_path=$(cd $(dirname $0);pwd)
/test/xts/hats/
Dbuild.sh36 BASE_HOME=$(dirname $(cd $(dirname $0); pwd))
/test/xts/dcts/
Dbuild.sh37 BASE_HOME=$(dirname $(cd $(dirname $0); pwd))
/test/xts/tools/sample/AppSampleF/
Dhvigorw28 HVIGOR_APP_HOME=$(dirname $(readlink -f $0))
/test/testfwk/xdevice/src/xdevice/_core/
Dcommon.py43 source_code_rootpath = os.path.dirname(source_code_rootpath)

1234