/third_party/gn/build/ |
H A D | full_test.py | 17 if os.path.isdir(d): 22 bin_path = os.path.join('out', 'gntrial') 23 if not os.path.isdir(bin_path): 25 gn_to_run = os.path.join(bin_path, 'gn' + ('.exe' if IS_WIN else '')) 27 comp_dir = os.path.join('out', 'COMP') 42 subprocess.check_call([sys.executable, os.path.join('build', 'gen.py')]) 44 subprocess.check_call([os.path.join('out', 'gn_unittests')]) 48 our_gn = os.path.join(orig_dir, 'out', 'gn' + ('.exe' if IS_WIN else '')) 56 # - relative path to argv[1] built gn binary in argv[2] 61 dir_a = os.path [all...] |
/third_party/benchmark/ |
H A D | .ycm_extra_conf.py | 26 # Set this to the absolute path to the folder (NOT the file!) containing the 34 if os.path.exists( compilation_database_folder ): 42 return os.path.dirname( os.path.abspath( __file__ ) ) 57 new_flag = os.path.join( working_directory, flag ) 65 path = flag[ len( path_flag ): ] 66 new_flag = path_flag + os.path.join( working_directory, path ) 75 extension = os.path.splitext( filename )[ 1 ] 85 basename = os.path [all...] |
/third_party/jerryscript/tools/runners/ |
H A D | run-unittests.py | 34 parser.add_argument('path', 41 def get_unittests(path): 43 files = glob.glob(os.path.join(path, 'unit-*')) 45 if os.path.isfile(testfile) and os.access(testfile, os.X_OK): 53 unittests = get_unittests(args.path) 56 print("%s: no unit-* test to execute", args.path) 66 test_path = os.path.relpath(test) 79 util.print_test_summary(os.path.join(os.path [all...] |
/third_party/node/test/parallel/ |
H A D | test-runner-import-no-scheme.js | 7 const path = require('path'); 32 const packageRoot = path.join(tmpdir.path, 'node_modules', 'test'); 33 const reportersDir = path.join(tmpdir.path, 'node_modules', 'test', 'reporters'); 34 const indexFile = path.join(packageRoot, 'index.js'); 35 const reportersIndexFile = path.join(reportersDir, 'index.js'); 42 const child = spawnSync(process.execPath, argv, { cwd: tmpdir.path }); 62 const dummyFile = path [all...] |
/third_party/node/deps/npm/node_modules/graceful-fs/ |
H A D | legacy-streams.js | 11 function ReadStream (path, options) { 12 if (!(this instanceof ReadStream)) return new ReadStream(path, options); 18 this.path = path; 62 fs.open(this.path, this.flags, this.mode, function (err, fd) { 75 function WriteStream (path, options) { 76 if (!(this instanceof WriteStream)) return new WriteStream(path, options); 80 this.path = path; 114 this._queue.push([this._open, this.path, thi [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | truncate.c | 60 char path[PATH_MAX] = {0}; in truncate_0200() local 61 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in truncate_0200() 62 FILE *f = fopen(path, "a"); in truncate_0200() 71 int result = truncate(path, vlen); in truncate_0200() 73 remove(path); in truncate_0200() 79 f = fopen(path, "r"); in truncate_0200() 90 remove(path); in truncate_0200() 104 char path[PATH_MAX] = {0}; in truncate_0300() local 105 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in truncate_0300() 106 int result = truncate(path, nle in truncate_0300() [all...] |
H A D | readlinkat.c | 28 int create_file(char *path) in create_file() argument 30 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in create_file() 55 char path[PATH_MAX] = {0}; in readlinkat_0100() local 56 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in readlinkat_0100() 57 int result = create_file(path); in readlinkat_0100() 67 result = symlink(path, linkpath); in readlinkat_0100() 85 if (strcmp(rbuf, path)) { in readlinkat_0100() 90 remove(path); in readlinkat_0100() 100 char path[PATH_MAX] = {0}; in readlinkat_0200() local 101 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in readlinkat_0200() [all...] |
/third_party/python/Tools/scripts/ |
H A D | pysource.py | 104 for path in paths: 105 print_debug("testing: %s" % path) 106 if os.path.isfile(path): 107 if is_python(path): 108 yield path 109 elif os.path.isdir(path): 111 for dirpath, dirnames, filenames in os.walk(path): 116 fullpath = os.path [all...] |
/third_party/python/Lib/ |
H A D | nturl2path.py | 10 to a file system path; not recommended for general use.""" 23 # path is something like ////host/path/on/remote/host 24 # convert this to \\host\path\on\remote\host 25 # (notice halving of slashes at the start of the path) 36 path = drive + ':' 39 path = path + '\\' + urllib.parse.unquote(comp) 41 if path.endswith(':') and url.endswith('/'): 42 path [all...] |
/third_party/skia/tools/skqp/ |
H A D | run_skqp_exe | 17 assert os.path.isdir(build) 18 build = os.path.abspath(build) 20 os.chdir(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) 25 os.path.join(*'platform_tools/android/apps/skqp/src/main/assets/skqp'.split('/')), 28 os.path.join(*'out/skqp/gmkb'.split('/')), '/data/local/tmp/skqp/skqp_assets') 31 adb('push', os.path.join(build, 'skqp'), '/data/local/tmp/skqp/skqp') 41 return ret, os.path.join(tmpdir, 'report') 44 if len(sys.argv) != 2 or not os.path.isdir(sys.argv[1]): 54 os.system("bin/sysopen " + os.path [all...] |
/third_party/skia/platform_tools/android/tradefed/ |
H A D | upload_dm_results.py | 18 dm_dir: path to PNG files and JSON summary (str) 23 current_dir = os.path.dirname(os.path.abspath(__file__)) 24 sys.path.insert(0, os.path.join(current_dir, "../../../common/py/utils")) 35 if not os.path.isfile(os.path.join(dm_dir, 'dm.json')): 40 shutil.move(os.path.join(dm_dir, 'dm.json'), 41 os.path.join(tmp, 'dm.json')) 72 shutil.move(os.path [all...] |
/third_party/vulkan-loader/tests/ |
H A D | loader_testing_main.cpp | 59 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "null_dir"); in main() 60 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "icd_manifests"); in main() 61 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "icd_env_vars_manifests"); in main() 62 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_layer_manifests"); in main() 63 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_env_var_layer_folder"); in main() 64 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_add_env_var_layer_folder"); in main() 65 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "implicit_layer_manifests"); in main() 66 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "override_layer_manifests"); in main() 67 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "app_package_manifests"); in main() 68 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTOR in main() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | gopher.c | 45 static int gopher_connect(URLContext *h, const char *path) in gopher_connect() argument 49 if (!*path) return AVERROR(EINVAL); in gopher_connect() 50 switch (*++path) { in gopher_connect() 53 path = strchr(path, '/'); in gopher_connect() 54 if (!path) return AVERROR(EINVAL); in gopher_connect() 59 *path); in gopher_connect() 64 snprintf(buffer, sizeof(buffer), "%s\r\n", path); in gopher_connect() 82 char proto[10], hostname[1024], auth[1024], path[1024], buf[1024]; in gopher_open() local 90 hostname, sizeof(hostname), &port, path, sizeo in gopher_open() [all...] |
/third_party/glslang/StandAlone/ |
H A D | DirStackFileIncluder.h | 73 // - Makes its own copy of the path. 101 // Search for a valid "local" path based on combining the stack of include 113 std::string path = *it + '/' + headerName; in readLocalPath() local 114 std::replace(path.begin(), path.end(), '\\', '/'); in readLocalPath() 115 std::ifstream file(path, std::ios_base::binary | std::ios_base::ate); in readLocalPath() 117 directoryStack.push_back(getDirectory(path)); in readLocalPath() 118 includedFiles.insert(path); in readLocalPath() 119 return newIncludeResult(path, file, (int)file.tellg()); in readLocalPath() 126 // Search for a valid <system> path 134 newIncludeResult(const std::string& path, std::ifstream& file, int length) const newIncludeResult() argument [all...] |
/third_party/googletest/googletest/scripts/ |
H A D | fuse_gtest_files.py | 41 search path and linking with OUTPUT_DIR/gtest/gtest-all.cc. These 50 ./fuse_gtest_files.py path/to/unpacked/gtest fused_gtest 71 DEFAULT_GTEST_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') 92 relative_path is the file path relative to the given directory. 95 if not os.path.isfile(os.path.join(directory, relative_path)): 114 """Verifies that the given output file path is valid. 120 output_file = os.path.join(output_dir, relative_path) 121 if os.path [all...] |
/third_party/lzma/CPP/Windows/ |
H A D | DLL.cpp | 28 bool CLibrary::LoadEx(CFSTR path, DWORD flags) throw()
in LoadEx() argument 35 _module = ::LoadLibraryEx(fs2fas(path), NULL, flags);
in LoadEx() 40 _module = ::LoadLibraryExW(fs2us(path), NULL, flags);
in LoadEx() 45 bool CLibrary::Load(CFSTR path) throw()
in Load() argument 52 _module = ::LoadLibrary(fs2fas(path));
in Load() 57 _module = ::LoadLibraryW(fs2us(path));
in Load() 62 bool MyGetModuleFileName(FString &path)
in MyGetModuleFileName() argument 65 path.Empty();
in MyGetModuleFileName() 74 path = fas2fs(s);
in MyGetModuleFileName() 86 path in MyGetModuleFileName() 142 Load(CFSTR path) Load() argument [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/tools/ |
H A D | run_one.py | 21 BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 22 FOOZZIE = os.path.join(BASE_PATH, 'workdir', 'app_dir', 'v8_foozzie.py') 23 TEST_CASES = os.path.join(BASE_PATH, 'workdir', 'output') 25 assert os.path.exists(FOOZZIE) 38 test_dir = os.path.join(TEST_CASES, 'dir-%d' % dir_number) 39 assert os.path.exists(test_dir) 69 yield (os.path.join(test_dir, f), os.path [all...] |
/third_party/node/test/sequential/ |
H A D | test-diagnostic-dir-heap-prof.js | 12 const path = require('path'); 63 .map((file) => path.join(dir, file)); 69 const dir = path.join(tmpdir.path, 'prof'); 76 fixtures.path('workload', 'allocation.js'), 78 cwd: tmpdir.path, 94 const dir = path.join(tmpdir.path, 'diag'); 95 const dir2 = path [all...] |
/third_party/node/test/tools/ |
H A D | test_checkimports.py | 4 from os import path namespace 5 sys.path.append(path.abspath(path.join(path.dirname(__file__), 27 fixturesDir = path.join(path.dirname(__file__), '..', '..', 32 self.assertEqual(is_valid(path.join(self.fixturesDir, 'invalid.cc')), 46 self.assertEqual(is_valid(path.join(self.fixturesDir, 'maybe.cc')), 53 self.assertEqual(is_valid(path [all...] |
/third_party/node/deps/v8/tools/sanitizers/ |
H A D | sancov_formatter_test.py | 20 LOCATION = os.path.dirname(os.path.abspath(__file__)) 23 BASE_DIR = os.path.dirname(os.path.dirname(LOCATION)) 26 BUILD_DIR = os.path.join(BASE_DIR, 'out', 'Release') 62 '/path/to/d8', 63 '/path/to/cctest', 64 '/path/to/unittests', 140 os.path.join('src', 'baz', 'bar.h.json'), 150 os.path [all...] |
/third_party/ninja/src/ |
H A D | test.h | 37 /// Short way to get a Node by its path from state_.
38 Node* GetNode(const std::string& path);
55 void Create(const std::string& path, const std::string& contents);
64 virtual TimeStamp Stat(const std::string& path, std::string* err) const;
65 virtual bool WriteFile(const std::string& path, const std::string& contents);
66 virtual bool MakeDir(const std::string& path);
67 virtual Status ReadFile(const std::string& path, std::string* contents,
69 virtual int RemoveFile(const std::string& path);
102 /// A class that records a file path and ensures that it is removed
106 /// Constructor just records the file path 121 const std::string& path() const { return path_; } path() function [all...] |
/third_party/pulseaudio/src/daemon/ |
H A D | dumpmodules.c | 40 static void short_info(const char *name, const char *path, pa_modinfo *i) { in short_info() argument 47 static void long_info(const char *name, const char *path, pa_modinfo *i) { in long_info() argument 75 if (path) in long_info() 76 printf(_("Path: %s\n"), path); in long_info() 79 static void show_info(const char *name, const char *path, void (*info)(const char *name, const char *path, pa_modinfo*i)) { in show_info() argument 84 if ((i = pa_modinfo_get_by_name(path ? path : name))) { in show_info() 85 info(name, path, i); in show_info() 110 static int callback(const char *path, lt_pt argument [all...] |
/third_party/skia/samplecode/ |
H A D | SamplePathEffects.cpp | 33 SkPath path; in make_pe() local 34 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_pe() 36 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_pe() 37 path.close(); in make_pe() 38 path.offset(SkIntToScalar(-6), 0); in make_pe() 40 auto outer = SkPath1DPathEffect::Make(path, 12, phase, SkPath1DPathEffect::kRotate_Style); in make_pe() 51 SkPath path; in make_warp_pe() local 52 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_warp_pe() 54 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_warp_pe() 56 path in make_warp_pe() [all...] |
/third_party/skia/tests/ |
H A D | PathOpsSimplifyQuadThreadedTest.cpp | 38 SkPath path, out; in testSimplifyQuadsMain() local 39 path.moveTo(SkIntToScalar(ax), SkIntToScalar(ay)); in testSimplifyQuadsMain() 40 path.quadTo(SkIntToScalar(bx), SkIntToScalar(by), in testSimplifyQuadsMain() 42 path.lineTo(SkIntToScalar(dx), SkIntToScalar(dy)); in testSimplifyQuadsMain() 43 path.close(); in testSimplifyQuadsMain() 44 path.moveTo(SkIntToScalar(ex), SkIntToScalar(ey)); in testSimplifyQuadsMain() 45 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyQuadsMain() 46 path.quadTo(SkIntToScalar(gx), SkIntToScalar(gy), in testSimplifyQuadsMain() 48 path.close(); in testSimplifyQuadsMain() 52 pathStr.appendf(" SkPath path;\ in testSimplifyQuadsMain() [all...] |
H A D | PathOpsSimplifyDegenerateThreadedTest.cpp | 34 SkPath path, out; in testSimplifyDegeneratesMain() local 35 path.moveTo(SkIntToScalar(ax), SkIntToScalar(ay)); in testSimplifyDegeneratesMain() 36 path.lineTo(SkIntToScalar(bx), SkIntToScalar(by)); in testSimplifyDegeneratesMain() 37 path.lineTo(SkIntToScalar(cx), SkIntToScalar(cy)); in testSimplifyDegeneratesMain() 38 path.close(); in testSimplifyDegeneratesMain() 39 path.moveTo(SkIntToScalar(dx), SkIntToScalar(dy)); in testSimplifyDegeneratesMain() 40 path.lineTo(SkIntToScalar(ex), SkIntToScalar(ey)); in testSimplifyDegeneratesMain() 41 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyDegeneratesMain() 42 path.close(); in testSimplifyDegeneratesMain() 44 pathStr.appendf(" path in testSimplifyDegeneratesMain() [all...] |