/hal_espressif-2.7.6/tools/ci/ |
D | test_check_kconfigs.py | 23 def apply_line(self, string): argument 24 self.checker.process_line(string + '\n', 0) 26 def expect_error(self, string, expect, cleanup=None): argument 28 with self.assertRaises(InputError) as cm: 29 self.apply_line(string) 31 self.assertEqual(cm.exception.suggested_line, expect + '\n') 35 self.apply_line(cleanup) 37 def expt_success(self, string): argument 38 self.apply_line(string) 42 def setUp(self): argument [all …]
|
D | check_kconfigs.py | 70 def __init__(self, path, line_number, error_msg, suggested_line): argument 71 super(InputError, self).__init__('{}:{}: {}'.format(path, line_number, error_msg)) 72 self.suggested_line = suggested_line 79 def __init__(self, path_in_idf): argument 80 self.path_in_idf = path_in_idf 82 def __enter__(self): argument 83 return self 85 def __exit__(self, type, value, traceback): argument 92 def process_line(self, line, line_number): argument 96 … raise InputError(self.path_in_idf, line_number, '"source" has to been followed by space', [all …]
|
/hal_espressif-2.7.6/tools/ldgen/test/ |
D | test_fragments.py | 42 def set_key_value(self, key, parse_results): argument 44 self.key_1 = list() 46 self.key_1.append(result['value']) 48 self.key_2 = list() 50 self.key_2.append(result['value']) 52 def get_key_grammars(self): argument 53 return self.__class__.grammars 61 def setUp(self): argument 63 self.kconfigs_source_file = os.path.join(tempfile.gettempdir(), f.name) 65 self.kconfig_projbuilds_source_file = os.path.join(tempfile.gettempdir(), f.name) [all …]
|
D | test_entity.py | 31 def test_create_none(self): argument 33 self.assertEqual(Entity.Specificity.NONE, entity.specificity) 36 self.assertEqual(Entity.Specificity.NONE, entity.specificity) 39 self.assertEqual(Entity.Specificity.NONE, entity.specificity) 41 def test_create_archive(self): argument 43 self.assertEqual(Entity.Specificity.ARCHIVE, entity.specificity) 46 self.assertEqual(Entity.Specificity.ARCHIVE, entity.specificity) 49 self.assertEqual(Entity.Specificity.ARCHIVE, entity.specificity) 52 self.assertEqual(Entity.Specificity.ARCHIVE, entity.specificity) 55 self.assertEqual(Entity.Specificity.ARCHIVE, entity.specificity) [all …]
|
/hal_espressif-2.7.6/tools/kconfig_new/test/gen_kconfig_doc/ |
D | test_target_visibility.py | 16 def setUp(self): argument 17 self.target = os.environ['IDF_TARGET'] 18 self.config = kconfiglib.Kconfig('Kconfig') 19 self.v = gen_kconfig_doc.ConfigTargetVisibility(self.config, self.target) 21 def _get_config(self, name): argument 22 sym = self.config.syms.get(name) 25 choice = self.config.named_choices.get(name) 30 def visible(self, config_name): argument 31 self.assertTrue(self.v.visible(self._get_config(config_name))) 33 def invisible(self, config_name): argument [all …]
|
/hal_espressif-2.7.6/components/spiffs/ |
D | spiffsgen.py | 45 def __init__(self, page_size, page_ix_len, block_size, argument 51 self.page_size = page_size 52 self.block_size = block_size 53 self.obj_id_len = obj_id_len 54 self.span_ix_len = span_ix_len 55 self.packed = packed 56 self.aligned = aligned 57 self.obj_name_len = obj_name_len 58 self.meta_len = meta_len 59 self.page_ix_len = page_ix_len [all …]
|
/hal_espressif-2.7.6/tools/esp_app_trace/espytrace/ |
D | apptrace.py | 60 def __init__(self, message): argument 61 RuntimeError.__init__(self, message) 68 def __init__(self, message): argument 69 RuntimeError.__init__(self, message) 76 def __init__(self, tmo, sz): argument 77 ReaderError.__init__(self, 'Timeout %f sec while reading %d bytes!' % (tmo, sz)) 85 def __init__(self): argument 86 ReaderError.__init__(self, 'Shutdown request!') 93 def __init__(self, tmo): argument 102 self.timeout = tmo [all …]
|
D | sysview.py | 308 def __init__(self, evt_id, core_id, reader, events_fmt_map=None): argument 323 apptrace.TraceEvent.__init__(self, 'SysViewEvent', core_id, evt_id) 324 self.plen = 0 325 if self.id >= SYSVIEW_EVENT_ID_PREDEF_LEN_MAX: 326 self.plen = _decode_plen(reader) 328 self._read_payload(reader, events_fmt_map) 330 reader.forward(self.plen) 331 _,self.ts = _decode_u32(reader) 333 def _read_payload(self, reader, events_fmt_map): argument 349 if self.id not in events_fmt_map: [all …]
|
/hal_espressif-2.7.6/tools/ble/ |
D | lib_gatt.py | 63 def __init__(self, bus, path): argument 64 self.path = path 65 self.services = [] 67 self.add_service(srv_obj) 68 dbus.service.Object.__init__(self, bus, self.path) 70 def __del__(self): argument 73 def get_path(self): argument 74 return dbus.ObjectPath(self.path) 76 def add_service(self, service): argument 77 self.services.append(service) [all …]
|
/hal_espressif-2.7.6/tools/ |
D | idf_monitor.py | 164 def __init__(self): argument 165 self._thread = None 168 def alive(self): argument 172 return self._thread is not None 174 def start(self): argument 175 if self._thread is None: 176 self._thread = threading.Thread(target=self._run_outer) 177 self._thread.start() 179 def _cancel(self): argument 182 def run(self): argument [all …]
|
/hal_espressif-2.7.6/components/xtensa/trax/ |
D | traceparse.py | 75 def __init__(self, data, truncated=False): argument 76 self.data = data 77 self.size_bytes = len(data) 78 self.truncated = truncated 80 def get_bits(self, start, count=0): argument 91 count = len(self.data) * 6 - start 95 for i, b in enumerate(self.data[start_byte:]): 117 def __str__(self): argument 118 return '%d byte packet%s' % (self.size_bytes, ' (truncated)' if self.truncated else '') 122 def __init__(self, packets, truncated=False): argument [all …]
|
/hal_espressif-2.7.6/components/efuse/test_efuse_host/ |
D | efuse_tests.py | 23 def __init__(self, *args, **kwargs): argument 24 super(Py23TestCase, self).__init__(*args, **kwargs) 26 self.assertRaisesRegex 30 self.assertRaisesRegex = self.assertRaisesRegexp 35 def test_general(self): argument 44 self.assertEqual(t[0].field_name, 'name1') 45 self.assertEqual(t[0].efuse_block, 'EFUSE_BLK3') 46 self.assertEqual(t[0].bit_start, 0) 47 self.assertEqual(t[0].bit_count, 5) 48 self.assertEqual(t[0].comment, 'Use for test name 1') [all …]
|
/hal_espressif-2.7.6/tools/kconfig_new/test/confgen/ |
D | test_confgen.py | 16 def setUpClass(self): argument 17 self.args = dict() 18 self.functions = {'in': self.assertIn, 19 'not in': self.assertNotIn, 20 'equal': self.assertEqual, 21 'not equal': self.assertNotEqual} 24 regex_func = self.assertRegex 27 regex_func = self.assertRegexpMatches 29 …self.functions['regex'] = lambda instance, s, expr: regex_func(instance, expr, s) # reverse args … 31 def setUp(self): argument [all …]
|
/hal_espressif-2.7.6/tools/ci/python_packages/tiny_test_fw/ |
D | DUT.py | 73 def handler(self, *args, **kwargs): argument 74 with self.expect_lock: 75 ret = func(self, *args, **kwargs) 105 def __init__(self, maxsize=0): argument 106 _queue.Queue.__init__(self, maxsize=maxsize) 107 self.data_cache = str() 109 def _move_from_queue_to_cache(self): argument 118 self.data_cache += _decode_data(self.get(0)) 124 def get_data(self, timeout=0.0): argument 135 ret = self._move_from_queue_to_cache() [all …]
|
/hal_espressif-2.7.6/tools/ci/python_packages/ |
D | wifi_tools.py | 39 def __init__(self, iface, reset_on_exit=False): argument 40 self.iface_name = iface 41 self.iface_obj = None 42 self.iface_ifc = None 43 self.old_network = None 44 self.new_network = None 45 self.connected = False 46 self.reset_on_exit = reset_on_exit 52 iface_path = service.GetInterface(self.iface_name) 53 self.iface_obj = bus.get_object('fi.w1.wpa_supplicant1', iface_path) [all …]
|
/hal_espressif-2.7.6/tools/ci/python_packages/ttfw_idf/ |
D | IDFApp.py | 106 def __init__(self, dest_root_path, artifact_index_file, app_path, config_name, target): argument 111 self.gitlab_inst = gitlab_api.Gitlab(os.getenv('CI_PROJECT_ID')) 112 self.dest_root_path = dest_root_path 115 self.artifact_info = self._find_artifact(artifact_index, app_path, config_name, target) 136 def _get_app_base_path(self): argument 137 if self.artifact_info: 138 return os.path.join(self.artifact_info['work_dir'], self.artifact_info['build_dir']) 142 def _get_flash_arg_file(self, base_path, job_id): argument 143 if self.artifact_info['build_system'] == 'cmake': 148 self.gitlab_inst.download_artifact(job_id, [flash_arg_file], self.dest_root_path) [all …]
|
D | unity_test_parser.py | 39 def __init__(self): argument 40 self.total = 0 41 self.passed = 0 42 self.failed = 0 43 self.ignored = 0 45 def __eq__(self, other): argument 46 if isinstance(other, self.__class__): 47 return (self.total == other.total 48 and self.passed == other.passed 49 and self.failed == other.failed [all …]
|
/hal_espressif-2.7.6/docs/test/ |
D | test_sphinx_idf_extensions.py | 22 def setUp(self): argument 23 self.str_sub = format_idf_target.StringSubstituter() 27 self.str_sub.init_sub_strings(config) 29 def test_add_subs(self): argument 31 self.assertEqual(self.str_sub.substitute_strings['{IDF_TARGET_NAME}'], 'ESP32') 32 self.assertEqual(self.str_sub.substitute_strings['{IDF_TARGET_PATH_NAME}'], 'esp32') 33 …self.assertEqual(self.str_sub.substitute_strings['{IDF_TARGET_TOOLCHAIN_PREFIX}'], 'xtensa-esp32-e… 34 self.assertEqual(self.str_sub.substitute_strings['{IDF_TARGET_CFG_PREFIX}'], 'ESP32') 35 self.assertEqual(self.str_sub.substitute_strings['{IDF_TARGET_TRM_EN_URL}'], 37 self.assertEqual(self.str_sub.substitute_strings['{IDF_TARGET_TRM_CN_URL}'], [all …]
|
/hal_espressif-2.7.6/components/partition_table/test_gen_esp32part_host/ |
D | gen_esp32part_tests.py | 64 def __init__(self, *args, **kwargs): argument 65 super(Py23TestCase, self).__init__(*args, **kwargs) 67 self.assertRaisesRegex 71 self.assertRaisesRegex = self.assertRaisesRegexp 76 def test_simple_partition(self): argument 78 self.assertEqual(len(table), 1) 79 self.assertEqual(table[0].name, 'factory') 80 self.assertEqual(table[0].type, 0) 81 self.assertEqual(table[0].subtype, 2) 82 self.assertEqual(table[0].offset, 65536) [all …]
|
/hal_espressif-2.7.6/components/espcoredump/corefile/ |
D | loader.py | 82 def __init__(self, version=None): argument 85 super(EspCoreDumpVersion, self).__init__() 87 self.version = 0 89 self.set_version(version) 95 def set_version(self, version): argument 96 self.version = version 99 def chip_ver(self): argument 100 return (self.version & 0xFFFF0000) >> 16 103 def dump_ver(self): argument 104 return self.version & 0x0000FFFF [all …]
|
D | elf.py | 112 def __init__(self, elf_path=None, e_type=None, e_machine=None): argument 113 self.e_type = e_type 114 self.e_machine = e_machine 116 self._struct = None # construct Struct 117 self._model = None # construct Container 118 self._section_names = [] # type: list[str] 120 self.sections = [] # type: list[ElfSection] 121 self.load_segments = [] # type: list[ElfSegment] 122 self.note_segments = [] # type: list[ElfNoteSegment] 125 self.read_elf(elf_path) [all …]
|
/hal_espressif-2.7.6/tools/ldgen/ |
D | generation.py | 32 def __init__(self, target, exclusions, explicit=False): argument 33 self.target = target 34 self.exclusions = set(exclusions) 49 self.explicit = explicit 51 def __init__(self, parent, name, sections): argument 52 self.children = [] 53 self.parent = parent 54 self.name = name 55 self.child_node = None 56 self.entity = None [all …]
|
/hal_espressif-2.7.6/tools/test_apps/system/panic/test_panic_util/ |
D | test_panic_util.py | 39 def start_test(self, test_name): argument 41 self.test_name = test_name 43 self.start_capture_raw_data() 44 self.start_app() 45 self.expect('Enter test name: ') 47 self.write(test_name) 48 self.expect('Got test name: ' + test_name) 50 def expect_none(self, *patterns, **timeout_args): argument 61 self.expect_any(*expect_items, **timeout_args) 66 def expect_gme(self, reason): argument [all …]
|
/hal_espressif-2.7.6/docs/idf_extensions/ |
D | format_idf_target.py | 67 def __init__(self): argument 68 self.substitute_strings = {} 69 self.local_sub_strings = {} 71 def add_pair(self, tag, replace_value): argument 72 self.substitute_strings[tag] = replace_value 74 def init_sub_strings(self, config): argument 75 self.target_name = config.idf_target 77 self.add_pair('{IDF_TARGET_NAME}', self.TARGET_NAMES[config.idf_target]) 78 self.add_pair('{IDF_TARGET_PATH_NAME}', config.idf_target) 79 self.add_pair('{IDF_TARGET_TOOLCHAIN_PREFIX}', self.TOOLCHAIN_PREFIX[config.idf_target]) [all …]
|
/hal_espressif-2.7.6/tools/test_mkuf2/ |
D | test_mkuf2.py | 53 def __init__(self, bs): argument 54 self.length = len(bs) 64 … (self.magicStart0, self.magicStart1, self.flags, self.targetAddr, self.payloadSize, self.blockNo, 65 self.numBlocks, self.familyID) = struct.unpack(first_part, bs[:first_part_len]) 67 self.data = bs[first_part_len:-last_part_len] 69 (self.magicEnd, ) = struct.unpack(last_part, bs[-last_part_len:]) 71 def __len__(self): argument 72 return self.length 76 def __init__(self, f_name): argument 77 self.f_name = f_name [all …]
|