| /ark/ts2abc/testTs/ |
| D | utils.py | 34 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 …]
|
| D | config.py | 26 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 …]
|
| D | run_testTs.py | 55 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/ts2panda/scripts/ |
| D | run.py | 39 help='node path') 41 help='path to node-modules exetuable') 54 os.environ["PATH"] = f'{node_dir}{jsoner_format}{os.environ["PATH"]}' 67 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) [all …]
|
| D | generate_js_bytecode.py | 34 help='path to nodejs exetuable') 35 parser.add_argument('--frontend-tool-path', 36 help='path to frontend conversion tool') 38 help='path to node-modules exetuable') 51 os.environ["PATH"] = input_arguments.node + \ 52 jsoner_format + os.environ["PATH"] 66 (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) [all …]
|
| D | generate_plugin.py | 32 help="path to nodejs exetuable") 33 parser.add_argument("--frontend-tool-path", 34 help="path to frontend conversion tool") 36 help='path to node-modules exetuable') 37 parser.add_argument("--plugin-path", 38 help="plugin js file path") 58 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") [all …]
|
| D | ts2abc.js | 17 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');
|
| D | run_tests.py | 26 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( 46 help='path to node-modules exetuable') 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")]) [all …]
|
| /ark/ts2abc/test262/ |
| D | run_test262.py | 71 help="The path collection of dependent so has been divided by':'") 81 help="the root path for qemu-aarch64 or qemu-arm") 106 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 [all …]
|
| D | config.py | 24 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 …]
|
| D | utils.py | 104 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)
|
| D | harness.patch | 47 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/runtime_core/libpandabase/os/windows/ |
| D | file.h | 33 // In windows API, the length of a path has a limitation of MAX_PATH, which is defined as 260 chara… 34 // the "\\?\" prefix is used to specify an extended-length path for a maximum length of 32,767 char… 116 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 142 // PREFIX_FOR_LONG_PATH is added to specify it's an extended-length path, in GetExtendedLengthStylePath() 143 // and the path needs to be composed of names seperated by backslashes in GetExtendedLengthStylePath() 144 std::string extendedPath = PREFIX_FOR_LONG_PATH + path; in GetExtendedLengthStylePath() [all …]
|
| /ark/ts2abc/ |
| D | OAT.xml | 16 basedir: Root dir, the basedir + project path is the real source file location. 25 5. task project: Projects to be checked, the path field define the source root dir of the project. 30 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte… 31 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli… 33 "compatibility" is used to check license compatibility in the specified path; 34 "license" is used to check source license header in the specified path; 35 "copyright" is used to check source copyright header in the specified path; 36 … "import" is used to check source dependency in the specified path, such as import ... ,include ... 37 … "filetype" is used to check file type in the specified path, supported file types: archive, binary 38 …"filename" is used to check whether the specified file exists in the specified path(support projec… [all …]
|
| /ark/js_runtime/ |
| D | OAT.xml | 17 basedir: Root dir, the basedir + project path is the real source file location. 26 5. task project: Projects to be checked, the path field define the source root dir of the project. 31 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte… 32 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli… 34 "compatibility" is used to check license compatibility in the specified path; 35 "license" is used to check source license header in the specified path; 36 "copyright" is used to check source copyright header in the specified path; 37 … "import" is used to check source dependency in the specified path, such as import ... ,include ... 38 … "filetype" is used to check file type in the specified path, supported file types: archive, binary 39 …"filename" is used to check whether the specified file exists in the specified path(support projec… [all …]
|
| /ark/ts2abc/ts2panda/ |
| D | webpack.config.js | 16 const path = require('path'); constant 19 // the path(s) that should be cleaned 24 root: path.resolve(__dirname), 45 path: path.resolve(__dirname, 'dist/src'), property 56 configFile: path.resolve(__dirname, './tsconfig.json'),
|
| /ark/runtime_core/verification/debug/config/ |
| D | config_process.cpp | 29 bool ProcessConfigSection(const Section §ion, 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/runtime_core/tests/cts-generator/ |
| D | README.md | 18 -t, --template FILE Path to template yaml file to generate tests (required) 19 -s, --schema FILE Path to json schema for template yaml (required) 21 -o, --output DIR Path to directory where tests will be generated (required) 42 -p, --panda-build DIR Path to panda build directory (required) 43 …-t, --test-dir DIR Path to test directory to search tests recursively, or path to si… 55 …--verifier-debug-config PATH Path to verifier debug config file. By default, internal embedded… 57 -H, --host-toolspath PATH Directory with host-tools
|
| /ark/runtime_core/ |
| D | OAT.xml | 17 basedir: Root dir, the basedir + project path is the real source file location. 26 5. task project: Projects to be checked, the path field define the source root dir of the project. 31 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte… 32 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli… 34 "compatibility" is used to check license compatibility in the specified path; 35 "license" is used to check source license header in the specified path; 36 "copyright" is used to check source copyright header in the specified path; 37 … "import" is used to check source dependency in the specified path, such as import ... ,include ... 38 … "filetype" is used to check file type in the specified path, supported file types: archive, binary 39 …"filename" is used to check whether the specified file exists in the specified path(support projec… [all …]
|
| /ark/runtime_core/libpandabase/os/unix/ |
| D | file.h | 120 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()
|
| /ark/js_runtime/ecmascript/tooling/test/utils/ |
| D | test_extractor.h | 26 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/runtime_core/dprof/libstorage/dprof/ |
| D | storage.cpp | 175 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/runtime_core/isa/ |
| D | combine.rb | 41 options.data.drop(1).each do |path| 42 tmp_data = YAML.load_file(File.expand_path(path)) 52 options.data.drop(1).each do |path| 53 tmp_data = YAML.load_file(File.expand_path(path))
|
| /ark/ts2abc/ts2panda/src/ |
| D | cmdOptions.ts | 21 import * as path from "path"; 29 …ultiple: true, defaultValue: [], description: "watch expression, abc file path and maybe watchTime… 47 …{ name: 'source-file', type: String, defaultValue: "", description: "specify the file path info re… 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");
|
| /ark/runtime_core/libpandabase/cmake/ |
| D | mm_coverage.cmake | 19 DOC "Path to lcov executable") 27 DOC "Path to genhtml executable") 47 COMMAND echo "Coverage report path: ${CMAKE_CURRENT_BINARY_DIR}/mm_coverage_report"
|