/arkcompiler/toolchain/test/autotest/scenario_test/ |
H A D | conftest.py | 31 config = { 44 launch_hap(config) 45 return config 51 config = { 64 launch_hap(config) 65 return config 71 config = { 79 launch_hap(config) 80 return config 86 config [all...] |
H A D | test_debug_04.py | 67 Application.uninstall(self.config['bundle_name'])
81 self.config = test_suite_taskpool_01
82 websocket = self.config['websocket']
83 taskpool = self.config['taskpool']
84 pid = self.config['pid']
88 Application.attach(self.config['bundle_name'])
99 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True)
104 worker_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
133 params = debugger.RemoveBreakpointsUrl(self.config['file_path']['index'])
138 locations = [debugger.BreakLocationUrl(url=self.config['file_pat [all...] |
H A D | test_debug_02.py | 71 Application.uninstall(self.config['bundle_name'])
85 self.config = test_suite_worker_01
86 websocket = self.config['websocket']
87 taskpool = self.config['taskpool']
88 pid = self.config['pid']
92 Application.attach(self.config['bundle_name'])
103 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True)
108 worker_thread_1 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
110 worker_thread_2 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
142 params = debugger.RemoveBreakpointsUrl(self.config['file_pat [all...] |
H A D | test_debug_01.py | 76 Application.uninstall(self.config['bundle_name']) 90 self.config = test_suite_worker_01_debug 91 websocket = self.config['websocket'] 92 taskpool = self.config['taskpool'] 93 pid = self.config['pid'] 107 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True) 125 assert response['params']['url'] == self.config['file_path']['entry_ability'] 131 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['entry_ability'] 141 assert response['params']['url'] == self.config['file_path']['index'] 147 assert response['params']['callFrames'][0]['url'] == self.config['file_pat [all...] |
H A D | test_debug_03.py | 68 Application.uninstall(self.config['bundle_name'])
82 self.config = test_suite_taskpool_01_debug
83 websocket = self.config['websocket']
84 taskpool = self.config['taskpool']
85 pid = self.config['pid']
99 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True)
117 assert response['params']['url'] == self.config['file_path']['entry_ability']
123 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['entry_ability']
133 assert response['params']['url'] == self.config['file_path']['index']
139 assert response['params']['callFrames'][0]['url'] == self.config['file_pat [all...] |
H A D | test_cpu_profiler_02.py | 65 Application.uninstall(self.config['bundle_name'])
79 self.config = test_suite_worker_02_profile
80 websocket = self.config['websocket']
81 taskpool = self.config['taskpool']
82 pid = self.config['pid']
97 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True)
102 worker_thread_1 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
104 worker_thread_2 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
|
H A D | test_heap_profiler_01.py | 64 Application.uninstall(self.config['bundle_name'])
78 self.config = test_suite_worker_02
79 websocket = self.config['websocket']
80 taskpool = self.config['taskpool']
81 pid = self.config['pid']
86 Application.attach(self.config['bundle_name'])
97 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True)
102 worker_thread_1 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
104 worker_thread_2 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
|
H A D | test_heap_profiler_02.py | 62 Application.uninstall(self.config['bundle_name'])
76 self.config = test_suite_worker_02
77 websocket = self.config['websocket']
78 taskpool = self.config['taskpool']
79 pid = self.config['pid']
84 Application.attach(self.config['bundle_name'])
95 main_thread = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], True)
100 worker_thread_1 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
102 worker_thread_2 = await self.debugger_impl.connect_to_debugger_server(self.config['pid'], False)
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ |
H A D | ets_test_suite.py | 28 from runner.options.config import Config 42 def __init__(self, config: Config, work_dir: WorkDir, suite_name: str, default_list_root: str) -> None: 46 self._list_root = config.general.list_root 48 self.config = config 51 self._jit: JitOptions = config.ark.jit 52 self._is_jit = config.ark.jit.enable and config.ark.jit.num_repeats > 0 108 def __init__(self, config: Config, work_dir: WorkDir, default_list_root: str): 109 super().__init__(config, work_di [all...] |
H A D | runner_ets.py | 26 from runner.options.config import Config 44 def __init__(self, config: Config): 45 self.__ets_suite_name = self.get_ets_suite_name(config.test_suites) 46 RunnerFileBased.__init__(self, config, self.__ets_suite_name) 57 f"--opt-level={self.config.es2panda.opt_level}" 59 if self.config.es2panda.debug_info: 61 self.test_env.es2panda_args.extend(self.config.es2panda.es2panda_args) 71 test_suite = test_suite_class(self.config, self.work_dir, self.default_list_root) 72 test_suite.process(self.config.general.generate_only or self.config [all...] |
H A D | preparation_step.py | 33 from runner.options.config import Config 47 def __init__(self, test_source_path: Path, test_gen_path: Path, config: Config) -> None: 50 self.config = config 75 def __init__(self, test_source_path: Path, test_gen_path: Path, config: Config, extension: str) -> None: 76 super().__init__(test_source_path, test_gen_path, config) 80 return f"Test Generator for '{EtsSuites.CUSTOM.value} - {self.config.custom.suite_name}' test suite" 87 cmd = [self.config.custom.generator, 90 cmd.extend(self.config.custom.generator_options) 145 generator_root = Path(self.config [all...] |
/arkcompiler/ets_frontend/test/scripts/performance_test/ |
H A D | performance_build.py | 33 self.config = None 44 self.config = config_input 61 print(f'Can not find code : {end_pos} in {code_path}, please check config') 103 os.chdir(self.config.project_path) 106 if self.config.ide == performance_config.IdeType.DevEco: 107 os.environ['path'] = self.config.node_js_path + ";" + os.environ['path'] 108 os.chdir(self.config.project_path) 109 os.environ['path'] = os.path.join(self.config.jbr_path, "bin") + ";" + os.environ['path'] 110 os.environ['JAVA_HOME'] = self.config.jbr_path 111 self.config [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/ |
H A D | main.py | 28 from runner.options.config import Config 39 config = Config(args) 40 logger = Log.setup(config.general.verbose, config.general.work_dir) 41 config.log_warnings() 42 Log.summary(logger, f"Loaded configuration: {config}") 43 config.generate_config() 46 config.custom.validate() 49 if config.general.processes == 1: 54 for test_suite in config [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
H A D | runner_file_based.py | 36 from runner.options.config import Config 70 def __init__(self, runner_name: str, build_dir: str, config: Config, conf_kind: ConfigurationKind) -> None: 72 self.config = config 78 if self.config.es2panda.custom_path is not None: 79 es2panda = self.__get_binary_path(self.config.es2panda.custom_path) 92 if not self.config.verifier.enable: 116 def __init__(self, config: Config, name: str, panda_binaries: Type[PandaBinaries] = PandaBinaries) -> None: 117 Runner.__init__(self, config, name) 123 self.binaries = panda_binaries(name, self.build_dir, self.config, sel [all...] |
H A D | runner_base.py | 40 from runner.options.config import Config 108 def __init__(self, config: Config, name: str) -> None: 111 config.general.build, 116 config.general.build, 124 self.test_root = config.general.test_root 130 self.default_list_root = Path(config.general.static_core_root) / 'tests' / 'tests-u-runner' / 'test-lists' 131 self.list_root = config.general.list_root 138 self.build_dir = config.general.build 139 self.arktsconfig = config.es2panda.arktsconfig \ 140 if config [all...] |
/arkcompiler/runtime_core/static_core/verification/ |
H A D | public.cpp | 19 #include "verification/config/config_load.h" 20 #include "verification/config/context/context.h" 34 bool LoadConfigFile(Config *config, std::string_view configFileName) in LoadConfigFile() argument 36 return ark::verifier::config::LoadConfig(config, configFileName); in LoadConfigFile() 39 void DestroyConfig(Config *config) in DestroyConfig() argument 41 config->opts.Destroy(); in DestroyConfig() 42 delete config; in DestroyConfig() 45 bool IsEnabled(Config const *config) in IsEnabled() argument 47 ASSERT(config ! in IsEnabled() 51 IsOnlyVerify(Config const *config) IsOnlyVerify() argument 57 CreateService(Config const *config, ark::mem::InternalAllocatorPtr allocator, ClassLinker *linker, std::string const &cacheFileName) CreateService() argument [all...] |
H A D | public.h | 33 bool LoadConfigFile(Config *config, std::string_view configFileName); 34 void DestroyConfig(Config *config); 36 bool IsEnabled(Config const *config); 37 bool IsOnlyVerify(Config const *config); 41 Service *CreateService(Config const *config, ark::mem::InternalAllocatorPtr allocator, ClassLinker *linker,
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/hooks/ |
H A D | fix_arktsconfig.py | 49 config = ark_root.joinpath( 51 if config.is_file(): 52 log.info('Updating %s with %s', config, ark_root) 53 with open(config, 'r', encoding="utf-8") as f: 57 with create_file(config) as f: 60 log.warning('%s does not exist! Creating it "manually"!', config) 61 config.parent.mkdir(parents=True, exist_ok=True) 62 make_arktsconfig(config, ark_root, [])
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/internal_tests/ |
H A D | __init__.py | 26 def config_internal_tests(config: Config) -> bool: 27 ret = config.getoption(INTERNAL_TESTS) 29 ret = config.getini(INTERNAL_TESTS) 53 def pytest_collection_modifyitems(items: List[Item], config: Config) -> None: 54 if config_internal_tests(config): 62 def pytest_configure(config: Config) -> None: 63 config.addinivalue_line("markers", "internal_test: mark internal tests")
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | timeout.py | 47 def config_timeout(config: Config) -> float: 48 ret = config.getoption("timeout") 50 ret = config.getini("timeout") 74 def pytest_collection_modifyitems(items: List[Item], config: Config) -> None: 75 seconds = config_timeout(config) 90 default_seconds = config_timeout(item.config) 96 def pytest_configure(config: Config): 98 config.addinivalue_line( 100 f"timeout(seconds={config_timeout(config)}):"
|
H A D | rich_logging.py | 36 from _pytest.config import Config, UsageError, hookimpl # pylint:disable=protected-access 39 from _pytest.config.argparsing import Parser # pylint:disable=protected-access 91 def get_option_ini(config: Config, *names: str): 93 ret = config.getoption(name) # 'default' arg won't work as expected 95 ret = config.getini(name) 250 def _find_level(config: Config, *setting_names: str): 252 level = config.getoption(name) 254 level = config.getini(name) 260 def find_log_level(config: Config, *setting_names: str) -> int | None: 261 name, level = _find_level(config, *setting_name [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/declgenparser/ |
H A D | runner_declgenparser.py | 23 from runner.options.config import Config 36 def __init__(self, config: Config) -> None: 37 super().__init__(config, "declgenparser") 39 static_core_root = Path(config.general.static_core_root) 44 es2panda_test = Path(config.general.static_core_root).parent.parent / 'ets_frontend' / 'ets2panda' / 'test' 55 self.explicit_list = self.recalculate_explicit_list(config.test_lists.explicit_list)
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/hermes/ |
H A D | runner_js_hermes.py | 24 from runner.options.config import Config 35 def __init__(self, config: Config) -> None: 36 RunnerJS.__init__(self, config, "hermes") 40 self.explicit_list = self.recalculate_explicit_list(config.test_lists.explicit_list) 44 self.util = UtilHermes(config=self.config, work_dir=self.work_dir)
|
/arkcompiler/runtime_core/static_core/verification/config/handlers/ |
H A D | config_handler_whitelist.cpp | 17 #include "verification/config/context/context.h" 18 #include "verification/config/process/config_process.h" 34 using ark::verifier::config::Section; 60 static bool RegisterConfigHandlerWhitelistSectionHandler(Config *config, const struct Section &s) in RegisterConfigHandlerWhitelistSectionHandler() argument 83 LOG(DEBUG, VERIFIER) << "Added to whitelist config '" << s.name << "' methods from class " << c; in RegisterConfigHandlerWhitelistSectionHandler() 85 LOG(DEBUG, VERIFIER) << "Added to whitelist config '" << s.name << "' methods named " << c; in RegisterConfigHandlerWhitelistSectionHandler() 87 config->debugCfg.AddWhitelistMethodConfig(kind, c); in RegisterConfigHandlerWhitelistSectionHandler() 95 static const auto CONFIG_DEBUG_WHITELIST_VERIFIER = [](Config *config, const Section §ion) { in RegisterConfigHandlerWhitelist() 97 if (!RegisterConfigHandlerWhitelistSectionHandler(config, s)) { in RegisterConfigHandlerWhitelist() 104 config in RegisterConfigHandlerWhitelist() [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/ |
H A D | runner_astchecker.py | 24 from runner.options.config import Config 35 def __init__(self, config: Config) -> None: 36 super().__init__(config, 'astchecker') 38 symlink_es2panda_test = Path(config.general.static_core_root) / 'tools' / 'es2panda' / 'test' 42 es2panda_test = Path(config.general.static_core_root).parent.parent / 'ets_frontend' / 'ets2panda' / 'test' 53 self.explicit_list = self.recalculate_explicit_list(config.test_lists.explicit_list) 77 if self.config.general.with_js:
|