Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 73) sorted by relevance

123

/ark/ts2abc/testTs/
Dutils.py34 def mk_dir(path): argument
35 if not os.path.exists(path):
36 os.makedirs(path)
39 def remove_dir(path): argument
40 if os.path.exists(path):
41 shutil.rmtree(path)
44 def remove_file(path): argument
45 if os.path.exists(path):
46 os.remove(path)
49 def clean_file(path): argument
[all …]
Dconfig.py26 EXPECT_DIR = os.path.join("testTs", "expect")
27 OUT_DIR = os.path.join("out")
28 OUT_TEST_DIR = os.path.join("out", "testTs")
29 OUT_RESULT_FILE = os.path.join("out", "testTs", "result.txt")
30 TEST_DIR = os.path.join("testTs")
31 TS_CASES_DIR = os.path.join(".","testTs", "test")
32 SKIP_FILE_PATH = os.path.join("testTs", "skip_tests.json")
33 IMPORT_FILE_PATH = os.path.join("testTs", "import_tests.json")
34 CUR_FILE_DIR = os.path.dirname(__file__)
35 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
[all …]
Drun_testTs.py55 if os.path.isfile(filepath):
67 if not os.path.getsize(filepath):
84 if not os.path.exists(out_dir_path):
103 if os.path.exists(temp_abc_file_path):
106 if os.path.exists(temp_out_file_path):
210 if (not os.path.exists(out_path) or not os.path.exists(expect_path)):
229 if not os.path.exists(OUT_RESULT_FILE):
255 if (os.path.exists(TS_CASES_DIR)):
266 if not os.path.exists("./tests/cases/conformance/"):
/ark/ts2abc/test262/
Dconfig.py24 DATA_DIR = os.path.join("test262", "data")
25 ESHOST_DIR = os.path.join("test262", "eshost")
26 HARNESS_DIR = os.path.join("test262", "harness")
28 BASE_OUT_DIR = os.path.join("out", "test262")
30 CUR_FILE_DIR = os.path.dirname(__file__)
31 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
39 TEST_ES5_DIR = os.path.join(DATA_DIR, "test_es51")
40 TEST_ES2015_DIR = os.path.join(DATA_DIR, "test_es2015")
41 TEST_CI_DIR = os.path.join(DATA_DIR, "test_CI")
43 DEFAULT_ARK_FRONTEND_TOOL = os.path.join(ARK_DIR, "build", "src", "index.js")
[all …]
Drun_test262.py106 ark_frontend_tool = os.path.join(DEFAULT_ARK_FRONTEND_TOOL)
108 ark_frontend_tool = os.path.join(args.ark_frontend_tool)
110 ts2abc_build_dir = os.path.join(os.path.dirname(
111 os.path.realpath(ark_frontend_tool)), "..")
113 if os.path.exists(os.path.join(ts2abc_build_dir, "package.json")):
115 elif os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")):
116 npm_install(os.path.join(ts2abc_build_dir, ".."))
135 def collect_files(path): argument
136 if os.path.isfile(path):
137 yield path
[all …]
Dutils.py104 def remove_dir(path): argument
105 if os.path.exists(path):
106 shutil.rmtree(path)
110 if os.path.exists(file):
114 def mkdir(path): argument
115 if not os.path.exists(path):
116 os.makedirs(path)
Dharness.patch47 const remove = path.relative(process.cwd(), test262Dir);
48 argv._ = argv._.map(p => path.relative(remove, p));
115 const path = require('path');
169 + let outFile = path.join(opts.tempDir,tmps[1]);
172 + let savedTestPath = path.normalize(
179 + let save_file = path.join(opts.tempDir,"result.txt");
195 @@ -6,8 +6,11 @@ const path = require('path');
201 + let outFile = path.join(options.tempDir,tmps[1]);
202 let savedTestPath = path.normalize(
/ark/ts2abc/ts2panda/scripts/
Drun.py67 run_command(['cp', '-f', os.path.join(src_dir, "package.json"),
68 os.path.join(dist_dir, "package.json")])
69 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"),
70 os.path.join(dist_dir, "package-lock.json")])
74 os.path.join(dist_dir, "node_modules")])
81 if os.path.exists(os.path.join(dist_dir, inp_dir)):
82 shutil.rmtree(os.path.join(dist_dir, inp_dir), ignore_errors=True)
89 (js2abc_dir, _) = os.path.split(options.js2abc)
90 build_dir = os.path.join(js2abc_dir, inp_dir)
91 if os.path.exists(build_dir):
[all …]
Dgenerate_js_bytecode.py66 (path, name) = os.path.split(frontend_tool_path)
68 if not os.path.exists(os.path.join(path, "node_modules")):
70 cmd = ['cp', "-rf", input_arguments.node_modules, path]
71 run_command(cmd, path)
74 run_command(cmd, path)
76 cmd = [os.path.join(input_arguments.node, "node"),
78 os.path.join(name, 'src/index.js'),
87 run_command(cmd, path)
Dts2abc.js17 const path = require("path"); constant
24 const arkDir = path.resolve(__dirname);
26 if (fs.existsSync(path.join(arkDir, 'build-win'))) {
28 } else if (fs.existsSync(path.join(arkDir, 'build-mac'))) {
30 } else if (!fs.existsSync(path.join(arkDir, 'build'))) {
36 js2abc = path.join(arkDir, 'build-win', 'bin', 'js2abc.exe');
38 js2abc = path.join(arkDir, 'build-mac', 'bin', 'js2abc');
40 js2abc = path.join(arkDir, 'build', 'bin', 'js2abc');
Drun_tests.py26 CUR_FILE_DIR = os.path.dirname(__file__)
27 TS2PANDA_DIR = os.path.abspath(os.path.join(CUR_FILE_DIR, ".."))
28 CODE_ROOT = os.path.abspath(os.path.join(TS2PANDA_DIR, "../../.."))
29 DEFAULT_TARGET_DIR = os.path.join(
31 DEFAULT_NODE_MODULE = os.path.join(
88 run_command(['cp', '-f', os.path.join(src_dir, "package.json"),
89 os.path.join(dist_dir, "package.json")])
90 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"),
91 os.path.join(dist_dir, "package-lock.json")])
99 if os.path.exists(f'{self.dist_dir}/tests'):
Dgenerate_plugin.py58 js_file = os.path.join(file_path, file_name)
59 file_name_pre = os.path.splitext(file_name)[0]
61 generate_js_bytecode = os.path.join(
62 os.path.dirname(__file__), "generate_js_bytecode.py")
64 (out_dir, _) = os.path.split(input_arguments.generated_file)
65 dst_file = os.path.join(out_dir, f'{file_name_pre}{JS_BIN_EXT}')
90 file_name_pre = os.path.splitext(file_name)[0]
91 js_src_file = os.path.join(file_path, file_name)
92 (out_dir, _) = os.path.split(input_arguments.generated_file)
93 js_bin_file = os.path.join(out_dir, file_name_pre + JS_BIN_EXT)
[all …]
/ark/runtime_core/libpandabase/os/windows/
Dfile.h116 static const std::string GetExtendedFilePath(const std::string &path) in GetExtendedFilePath() argument
118 if (LIKELY(path.length() < _MAX_PATH)) { in GetExtendedFilePath()
119 return path; in GetExtendedFilePath()
121 return GetExtendedLengthStylePath(path); in GetExtendedFilePath()
140 static const std::string GetExtendedLengthStylePath(const std::string &path) in GetExtendedLengthStylePath() argument
144 std::string extendedPath = PREFIX_FOR_LONG_PATH + path; in GetExtendedLengthStylePath()
149 static bool IsDirectory(const std::string &path) in IsDirectory() argument
151 return HasStatMode(path, _S_IFDIR); in IsDirectory()
154 static bool IsRegularFile(const std::string &path) in IsRegularFile() argument
156 return HasStatMode(path, _S_IFREG); in IsRegularFile()
[all …]
Dfile.cpp76 WCHAR path[MAX_PATH]; in GetExecutablePath() local
77 DWORD dwRetVal = GetModuleFileNameW(NULL, path, MAX_PATH); in GetExecutablePath()
81 std::wstring ws(path); in GetExecutablePath()
/ark/runtime_core/verification/debug/config/
Dconfig_process.cpp29 bool ProcessConfigSection(const Section &section, const panda::PandaString &path = "") in ProcessConfigSection() argument
32 if (section_handlers.count(path) > 0) { in ProcessConfigSection()
33 return section_handlers.at(path)(section); in ProcessConfigSection()
36 if (!ProcessConfigSection(s, path + "." + s.name)) { in ProcessConfigSection()
47 void RegisterConfigHandler(const PandaString &path, callable<bool(const Section &)> handler) in RegisterConfigHandler() argument
50 section_handlers[path] = handler; in RegisterConfigHandler()
/ark/ts2abc/ts2panda/
Dwebpack.config.js16 const path = require('path'); constant
24 root: path.resolve(__dirname),
45 path: path.resolve(__dirname, 'dist/src'), property
56 configFile: path.resolve(__dirname, './tsconfig.json'),
/ark/runtime_core/libpandabase/os/unix/
Dfile.h120 static const std::string GetExtendedFilePath(const std::string &path) in GetExtendedFilePath() argument
122 return path; in GetExtendedFilePath()
162 static bool IsDirectory(const std::string &path) in IsDirectory() argument
164 return HasStatMode(path, S_IFDIR); in IsDirectory()
167 static bool IsRegularFile(const std::string &path) in IsRegularFile() argument
169 return HasStatMode(path, S_IFREG); in IsRegularFile()
212 static bool HasStatMode(const std::string &path, uint16_t mode) in HasStatMode() argument
215 if (stat(path.c_str(), &s) != 0) { in HasStatMode()
Dfilesystem.cpp24 std::string GetAbsolutePath(std::string_view path) in GetAbsolutePath() argument
28 auto res = realpath(path.data(), resolved_path.data()); in GetAbsolutePath()
/ark/js_runtime/ecmascript/tooling/test/utils/
Dtest_extractor.h26 std::string path; // NOLINT(misc-non-private-member-variables-in-classes) member
32 return path == other.path && line == other.line && column == other.column;
37 return !path.empty(); in IsValid()
/ark/ts2abc/ts2panda/src/
DcmdOptions.ts21 import * as path from "path";
160 let path = this.parsedResult.fileNames[0]; variable
161 let inputFile = path.substring(0, path.lastIndexOf('.'));
212 let js2abc = path.join(path.resolve(__dirname, '../bin'), "js2abc");
Dindex.ts16 import * as path from "path";
132 var inputFileTmps = inputFileName.split(path.sep);
133 inputFileName = path.posix.join(...inputFileTmps);
147 let fPath = path.join(dir,item);
172 let watchFilePrefix = CmdOptions.getWatchJsPath() + path.sep + watchFileName;
242 if (path.basename(node.fileName) == fileName) { node = sourceFile; }
281 let deamonFilePrefix = CmdOptions.getEvaluateDeamonPath() + path.sep + watchFileName;
350 …fs.writeFileSync(CmdOptions.getEvaluateDeamonPath() + path.sep + watchFileName + ".js", stopWatchi…
373 let dtsFiles = getDtsFiles(path["join"](__dirname, "../node_modules/typescript/lib"));
/ark/runtime_core/dprof/libstorage/dprof/
Dstorage.cpp175 std::string path = storage_dir_ + "/" + ent->d_name; in ForEachApps() local
178 if (stat(path.c_str(), &statbuf) == -1) { in ForEachApps()
179 PLOG(ERROR, DPROF) << "stat() failed, path=" << path; in ForEachApps()
185 LOG(ERROR, DPROF) << "File is too large: " << path; in ForEachApps()
190 std::ifstream file(path, std::ios::binary); in ForEachApps()
192 LOG(ERROR, DPROF) << "Cannot open file: " << path; in ForEachApps()
201 LOG(ERROR, DPROF) << "Cannot deserialize file: " << path; in ForEachApps()
/ark/js_runtime/ecmascript/napi/
Ddfx_jsnapi.cpp30 void DFXJSNApi::DumpHeapSnapShot(EcmaVM *vm, int dumpFormat, const std::string &path, bool isVmMod… in DumpHeapSnapShot() argument
34 path, isVmMode); in DumpHeapSnapShot()
37 path, isVmMode); in DumpHeapSnapShot()
40 path, isVmMode); in DumpHeapSnapShot()
/ark/js_runtime/ecmascript/
Decma_class_linker_extension.cpp52 …EcmaClassLinkerExtension::CreateApplicationClassLinkerContext(const PandaVector<PandaString> &path) in CreateApplicationClassLinkerContext() argument
55 app_files.reserve(path.size()); in CreateApplicationClassLinkerContext()
56 for (auto &p : path) { in CreateApplicationClassLinkerContext()
/ark/runtime_core/libpandafile/tests/
Ddebug_info_extractor_test.cpp207 std::string path; // NOLINT(misc-non-private-member-variables-in-classes) member
212 return (path == other.path) && (line == other.line); in operator ==()
217 return !path.empty(); in IsValid()
245 auto pos = source_location.path.find_last_of("/\\"); in GetBreakpointAddressWrapper()
246 auto name = source_location.path; in GetBreakpointAddressWrapper()
254 …if (extractor.GetSourceFile(method) == source_location.path || extractor.GetSourceFile(method) == … in GetBreakpointAddressWrapper()
340 ASSERT_EQ(source_location.path, G_SOURCE_FILE); in TEST_F()

123