Home
last modified time | relevance | path

Searched +full:config +full:- (Results 1 – 25 of 1015) sorted by relevance

12345678910>>...41

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
Dets_test_suite.py2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
9 # http://www.apache.org/licenses/LICENSE-2.0
28 from runner.options.config import Config
49 …def __init__(self, config: Config, work_dir: WorkDir, suite_name: str, default_list_root: str) -> … argument
53 self._list_root = config.general.list_root
55 self.config = config
58 self._jit: JitOptions = config.ark.jit
59 self._is_jit = config.ark.jit.enable and config.ark.jit.num_repeats > 0
62 def test_root(self) -> Path:
[all …]
/arkcompiler/runtime_core/static_core/verification/config/
DConfig.cmake1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 ${VERIFICATION_SOURCES_DIR}/config/config_load.cpp
16 ${VERIFICATION_SOURCES_DIR}/config/context/context.cpp
17 ${VERIFICATION_SOURCES_DIR}/config/debug_breakpoint/breakpoint.cpp
18 ${VERIFICATION_SOURCES_DIR}/config/debug_breakpoint/config_handler_breakpoints.cpp
19 ${VERIFICATION_SOURCES_DIR}/config/default/default_config.cpp
20 ${VERIFICATION_SOURCES_DIR}/config/handlers/config_handler_whitelist.cpp
21 ${VERIFICATION_SOURCES_DIR}/config/handlers/config_handler_options.cpp
22 ${VERIFICATION_SOURCES_DIR}/config/handlers/config_handler_method_options.cpp
[all …]
Dconfig_load.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
22 #include "verification/config/default/default_config.h"
23 #include "verification/config/parse/config_parse.h"
24 #include "verification/config/process/config_process.h"
25 #include "verification/config/context/context.h"
26 #include "verification/config/handlers/config_handlers.h"
36 bool ProcessConfigFile(ark::verifier::Config *cfg, const char *text) in ProcessConfigFile()
44 ark::verifier::config::Section section; in ProcessConfigFile()
47 …ark::verifier::config::ParseConfig(text, section) && ark::verifier::config::ProcessConfig(cfg, sec… in ProcessConfigFile()
[all …]
/arkcompiler/toolchain/test/autotest/scenario_test/
Dconftest.py2 # -*- coding: utf-8 -*-
9 http://www.apache.org/licenses/LICENSE-2.0
31 config = {
32 'start_mode': '-D',
43 launch_hap(config)
44 return config
50 config = {
51 'start_mode': '-D',
62 launch_hap(config)
63 return config
[all …]
/arkcompiler/ets_frontend/test/scripts/performance_test/
Dperformance_build.py2 # -*- coding: utf-8 -*-
9 # http://www.apache.org/licenses/LICENSE-2.0
33 self.config = None
44 self.config = config_input
57 with open(code_path, 'r+', encoding='UTF-8') as modified_file:
60 if add_str_end_pos == -1:
61 print(f'Can not find code : {end_pos} in {code_path}, please check config')
64 if add_str_start_pos == -1:
69 for i in range(lines, 0, -1):
103 os.chdir(self.config.project_path)
[all …]
/arkcompiler/runtime_core/static_core/verification/
Dpublic.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
30 using Config = struct Config; // NOLINT(bugprone-forward-declaration-namespace)
32 Config *NewConfig();
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 …
45 Config const *GetServiceConfig(Service const *service);
Dpublic.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
19 #include "verification/config/config_load.h"
20 #include "verification/config/context/context.h"
27 Config *NewConfig() in NewConfig()
29 auto result = new Config; in NewConfig()
30 result->opts.Initialize(); in NewConfig()
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
[all …]
Dverification.gni1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
37 "$ark_root/verification/config/config_load.cpp",
38 "$ark_root/verification/config/context/context.cpp",
39 "$ark_root/verification/config/debug_breakpoint/breakpoint.cpp",
40 "$ark_root/verification/config/debug_breakpoint/config_handler_breakpoints.cpp",
41 "$ark_root/verification/config/default/default_config.cpp",
42 "$ark_root/verification/config/handlers/config_handler_method_groups.cpp",
43 "$ark_root/verification/config/handlers/config_handler_method_options.cpp",
44 "$ark_root/verification/config/handlers/config_handler_options.cpp",
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
Drunner_file_based.py2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
9 # http://www.apache.org/licenses/LICENSE-2.0
36 from runner.options.config import Config
69 …def __init__(self, runner_name: str, build_dir: str, config: Config, conf_kind: ConfigurationKind)… argument
71 self.config = config
76 def es2panda(self) -> str:
77 if self.config.es2panda.custom_path is not None:
78 es2panda = self.__get_binary_path(self.config.es2panda.custom_path)
84 def runtime(self) -> str:
[all …]
Drunner_base.py2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
9 # http://www.apache.org/licenses/LICENSE-2.0
40 from runner.options.config import Config
49 def load_test_from_list(test_root: str, line: str, directory: Optional[str] = None) -> Optional[str…
61 def load_list(test_root: str, test_list_path: str, directory: Optional[str] = None) -> List[str]:
66 with open(test_list_path, 'r', encoding="utf-8") as file:
75 def get_test_id(file: str, start_directory: Path) -> str:
80 def get_test_and_comment_from_line(line: str) -> Tuple[Optional[str], Optional[str]]:
87 def correct_path(root: Path, test_list: str) -> str:
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/
Dmain.py2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
9 # http://www.apache.org/licenses/LICENSE-2.0
28 from runner.options.config import Config
33 def main() -> None:
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()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/internal_tests/
D__init__.py2 # -*- coding: utf-8 -*-
9 # http://www.apache.org/licenses/LICENSE-2.0
21 from pytest import Config, Item, Parser
26 def config_internal_tests(config: Config) -> bool: argument
27 ret = config.getoption(INTERNAL_TESTS)
29 ret = config.getini(INTERNAL_TESTS)
35 def pytest_addoption(parser: Parser) -> None:
39 def add_option_ini(*option, dest, default=None, opt_type=None, **kwargs) -> None:
44 "--internal-tests",
45 "-I",
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Dinternal_allocator-inl.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "runtime/mem/malloc-proxy-allocator-inl.h"
19 #include "runtime/mem/freelist_allocator-inl.h"
20 #include "runtime/mem/humongous_obj_allocator-inl.h"
22 #include "runtime/mem/runslots_allocator-inl.h"
26 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
29 template <InternalAllocatorConfig CONFIG>
31 T *InternalAllocator<CONFIG>::AllocArray(size_t size) in AllocArray()
33 return static_cast<T *>(this->Alloc(sizeof(T) * size, GetAlignment<T>())); in AllocArray()
[all …]
Dinternal_allocator.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
17 #include "runtime/mem/internal_allocator-inl.h"
22 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
41 template <InternalAllocatorConfig CONFIG>
42 Allocator *InternalAllocator<CONFIG>::allocatorFromRuntime_ = nullptr;
44 template <InternalAllocatorConfig CONFIG>
45 InternalAllocator<CONFIG>::InternalAllocator(MemStatsType *memStats) in InternalAllocator()
47 // NOLINTNEXTLINE(readability-braces-around-statements, bugprone-suspicious-semicolon) in InternalAllocator()
48 if constexpr (CONFIG == InternalAllocatorConfig::PANDA_ALLOCATORS) { in InternalAllocator()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
Dtimeout.py2 # -*- coding: utf-8 -*-
9 # http://www.apache.org/licenses/LICENSE-2.0
25 from pytest import Config, Function, Item, Parser, hookimpl
47 def config_timeout(config: Config) -> float: argument
48 ret = config.getoption("timeout")
50 ret = config.getini("timeout")
56 def pytest_addoption(parser: Parser) -> None:
65 "--timeout",
74 def pytest_collection_modifyitems(items: List[Item], config: Config) -> None: argument
75 seconds = config_timeout(config)
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dthrow.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 - name: pandasm_header
23 - file-name: "throw"
28 - sig: throw v:in:ref
32 - x_throw
34 - file-name: "when_reg_is_invalid"
38 - sig: throw v:in:ref
42 - v1_throw_type
43 runner-options: ['compile-failure']
[all …]
/arkcompiler/runtime_core/static_core/verification/config/process/
Dconfig_process.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
19 #include "verification/config/config.h"
20 #include "verification/config/context/context.h"
28 namespace ark::verifier::config {
29 bool ProcessConfig(Config *cfg, const Section &section);
31 void RegisterConfigHandler(Config *cfg, const PandaString &path, callable<bool(Config *, const Sect…
32 } // namespace ark::verifier::config
Dconfig_process.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
19 #include "verification/config/context/context.h"
27 using ark::verifier::Config;
28 using ark::verifier::config::Section;
30 bool ProcessConfigSection(Config *cfg, const Section &section, const ark::PandaString &path = "") in ProcessConfigSection()
32 auto &sectionHandlers = cfg->debugCfg.sectionHandlers; in ProcessConfigSection()
46 namespace ark::verifier::config { namespace
48 void RegisterConfigHandler(Config *cfg, const PandaString &path, callable<bool(Config *, const Sect… in RegisterConfigHandler() argument
50 auto &sectionHandlers = cfg->debugCfg.sectionHandlers; in RegisterConfigHandler()
[all …]
/arkcompiler/runtime_core/libabckit/tests/clean_scenarios/cpp_api/dynamic/branch_eliminator/modules/
Dmybar.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 Config
17 } from './config';
21 if (Config.isDebug) {
22 print('Mybar.test1: Config.isDebug is true');
24 print('Mybar.test1: Config.isDebug is false');
29 if (!Config.isDebug) {
30 print('Mybar.test2: Config.isDebug is false');
32 print('Mybar.test2: Config.isDebug is true');
/arkcompiler/runtime_core/libabckit/tests/scenarios/branch_eliminator/dynamic/modules/
Dmybar.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 Config
17 } from './config';
21 if (Config.isDebug) {
22 print('Mybar.test1: Config.isDebug is true');
24 print('Mybar.test1: Config.isDebug is false');
29 if (!Config.isDebug) {
30 print('Mybar.test2: Config.isDebug is false');
32 print('Mybar.test2: Config.isDebug is true');
Dmyfoo.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 Config
17 } from './config';
20 print('Config.isDebug = ' + Config.isDebug);
21 if (Config.isDebug) {
22 print('myfoo: Config.isDebug is true');
24 print('myfoo: Config.isDebug is false');
/arkcompiler/runtime_core/libabckit/tests/clean_scenarios/c_api/dynamic/branch_eliminator/modules/
Dmybar.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 Config
17 } from './config';
21 if (Config.isDebug) {
22 print('Mybar.test1: Config.isDebug is true');
24 print('Mybar.test1: Config.isDebug is false');
29 if (!Config.isDebug) {
30 print('Mybar.test2: Config.isDebug is false');
32 print('Mybar.test2: Config.isDebug is true');
Dmyfoo.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 Config
17 } from './config';
20 print('Config.isDebug = ' + Config.isDebug);
21 if (Config.isDebug) {
22 print('myfoo: Config.isDebug is true');
24 print('myfoo: Config.isDebug is false');
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/
DXTools.js7 * http://www.apache.org/licenses/LICENSE-2.0
30 static CONFIG = null; field in XTools
33 xhr.open('GET', 'config.json');
38 XTools.CONFIG = JSON.parse(xhr.responseText);
39 for (let k in XTools.CONFIG.NodeColor) {
40 XTools.CONFIG.NodeColor[k] = parseInt(XTools.CONFIG.NodeColor[k], 16);
42 for (let k in XTools.CONFIG.LineColor) {
43 XTools.CONFIG.LineColor[k] = parseInt(XTools.CONFIG.LineColor[k], 16);
46 alert('Config file error');
49 alert('Failed to load config file');
[all …]
/arkcompiler/toolchain/build/config/mac/
DBUILD.gn6 # http://www.apache.org/licenses/LICENSE-2.0
14 import("$build_root/config/mac/mac_sdk.gni")
15 import("$build_root/config/mac/symbols.gni")
16 import("$build_root/config/sysroot.gni")
18 # This is included by reference in the //build/config/compiler config that
20 config("compiler") {
27 "-arch",
32 "-arch",
52 cflags_objcc = [ "-fobjc-call-cxx-cdtors" ]
56 # Create a new read-only segment for protected memory. The default segments
[all …]

12345678910>>...41