Rizin
unix-like reverse engineering framework and cli tools
test_group_name.GroupTest Class Reference

Public Member Functions

def __init__ (self, name, arch, mode, data)
 
def run (self)
 

Public Attributes

 name
 
 arch
 
 mode
 
 data
 

Detailed Description

Definition at line 14 of file test_group_name.py.

Constructor & Destructor Documentation

◆ __init__()

def test_group_name.GroupTest.__init__ (   self,
  name,
  arch,
  mode,
  data 
)

Definition at line 15 of file test_group_name.py.

15  def __init__(self, name, arch, mode, data):
16  self.name = name
17  self.arch = arch
18  self.mode = mode
19  self.data = data
20 

Member Function Documentation

◆ run()

def test_group_name.GroupTest.run (   self)

Definition at line 21 of file test_group_name.py.

21  def run(self):
22  print('Testing %s' %self.name)
23  cap = Cs(self.arch, self.mode)
24  for group_id in xrange(0,255):
25  name = self.data.get(group_id)
26  res = cap.group_name(group_id)
27  if res != name:
28  print("ERROR: id = %u expected '%s', but got '%s'" %(group_id, name, res))
29  print("")
30 
static int run(int i, const char *arg)
Definition: rz-bb.c:19

References rz_test_asm_test_t.arch, rz_analysis_arch_hint_record_t.arch, HintsAtAddr.arch, disassemble_info.arch, elf_backend_data.arch, bfd_arch_info.arch, pa_opcode.arch, rz_bin_le_obj_s.arch, symbols_metadata_t.arch, HintNode.arch, arch_ctx.arch, rz_analysis_hint_t.arch, rz_analysis_plugin_t.arch, rz_asm_plugin_t.arch, rz_bin_info_t.arch, rz_bin_xtr_metadata_t.arch, rz_bin_arch_options_t.arch, rz_bin_section_t.arch, rz_bp_plugin_t.arch, rz_debug_t.arch, rz_debug_plugin_t.arch, rz_egg_t.arch, rz_egg_emit_t.arch, rz_flirt_compressed_options_t.arch, rz_platform_target_t.arch, rz_reg_t.arch, rz_syscall_t.arch, rz_syscall_plugin_t.arch, rz_syscall_arch_plugin_t.arch, idasig_v5_t.arch, TestBasic.platform.arch, capstone._dummy_cs.arch, cs_struct.arch, arch, platform.arch, invalid_instructions.arch, valid_instructions.arch, test_group_name.GroupTest.arch, libgdbr_t.arch, aarch64_operand_error.data, bfd_link_order.data, _bfd_window.data, dex_string_t.data, rz_bin_elf_gnu_hash_table_t.data, rz_bin_elf_hash_table_.data, rz_bin_elf_strtab.data, lua_constant_entry.data, OMF_segment.data, plan9_exec.data, _PE_RESOURCE.data, psxexe_header.data, pyc_object.data, rz_bin_wasm_data_t.data, Tpi_Type_Numeric.data, g_cb.data, ts_data_symbol_map.data, auxv_buff.data, rz_analysis_esil_change_reg_t.data, rz_analysis_esil_change_mem_t.data, RzBinDwarfBlock.data, rz_bp_item_t.data, rz_cmd_t.data, rz_line_hist_t.data, rz_line_buffer_t.data, RModal.data, rz_core_item_t.data, rz_debug_snap_t.data, RzDebugChangeReg.data, RzDebugChangeMem.data, rz_il_val_t.data, rz_il_vm_event_t.data, rz_io_desc_t.data, RzIODescData.data, rz_io_cache_t.data, rz_lib_plugin_t.data, rz_lib_struct_t.data, rz_list_iter_t.data, rz_search_keyword_t.data, rz_search_t.data, rz_skiplist_node_t.data, rz_socket_http_request.data, rz_buf_sparse_chunk_t.data, rz_graph_node_t.data, rz_graph_visitor_t.data, rz_id_storage_t.data, rz_ordered_id_storage_t.data, rz_interval_node_t.data, rz_pkcs7_attribute_t.data, SpcAttributeTypeAndOptionalValue.data, SpcIndirectDataContent.data, rz_range_item_t.data, rz_containing_rb_node_t.data, rz_space_event_t.data, rz_tree_node_t.data, rz_tree_visitor_t.data, RzIODescasd.data, RzSearchLeftover.data, buf_bytes_user.data, ls_iter_t.data, test_group_name.GroupTest.data, dem_list_iter_t.data, mscabd_decompress_state.data, mscabd_folder_p.data, mem_buf.data, mem_file.data, m_filename::.data, m_filename.data, uv_stdio_container_s.data, uv_loop_s.data, uv__fd_hash_bucket_s.data, zip_buffer_fragment.data, winzip_aes.data, zip_extra_field.data, zip_buffer.data, ef.data, FUZZ_dataProducer_s.data, state_t.data, mpc_parser_t.data, ptrace_wrap_request_t::.data, ptrace_wrap_request_t.data, Filetable.data, libbochs_t.data, libgdbr_t.data, DStMsg_memwr_t.data, DStMsg_regwr_t.data, DStMsg_filewr_t.data, DStMsg_env_t.data, dsmapinfo.data, dstidnames.data, DSrMsg_okdata_t.data, libqnxr_t.data, LookaheadIterator.data, Lexer.data, Subtree.data, MutableSubtree.data, yxml_t.data, linkedlist_datablock_internal_s.data, rz_test_asm_test_t.mode, sh_addr_dissassembler_helper_t.mode, sh_param_builder_addr_t.mode, sh_param_t.mode, rz_bin_elf_reloc_t.mode, relocs_segment.mode, il_print_t.mode, argv_modes_t.mode, search_parameters.mode, coremodepj.mode, rz_ascii_graph_t.mode, rz_cmd_state_output_t.mode, rz_panels_t.mode, rz_egg_lang_t.mode, rz_search_t.mode, rz_mmap_t.mode, rz_print_zoom_t.mode, rz_io_mmo_t.mode, rz_io_zfo_t.mode, record::header.mode, diff_context_t.mode, RzfindOptions.mode, rz_hash_context.mode, buf_file_user.mode, buf_mmap_user.mode, InternalInstruction.mode, TestBasic.platform.mode, capstone.Cs.mode(), cs_struct.mode, mode, platform.mode, invalid_instructions.mode, valid_instructions.mode, test_group_name.GroupTest.mode, DStMsg_fileopen_t.mode, lzma_options_lzma.mode, gzfilebuf.mode, tar_header.mode, attr_item.mode, gz_state.mode, inflate_state.mode, rz_test_cmd_test_t.name, _opcodes_tag_.name, dwarf_function_t.name, dwarf_variable_t.name, optype.name, name, i8051_cpu_model.name, i8051_map_entry.name, class_type_info_t.name, si_class_type_info_t.name, vmi_class_type_info_t.name, rtti_type_descriptor_t.name, ExtInstruction.name, ExtAuxRegister.name, ExtCoreRegister.name, arc_operand_value.name, aarch64_operand.name, aarch64_opcode.name, aarch64_name_value_pair.name, aarch64_sys_reg.name, aarch64_sys_ins_reg.name, ArmOp.name, avr_decoder_t.name, dalvik_opcodes_t.name, gb_opcode.name, opcode_t.name, bfd_sym_chain.name, bfd_link_order_reloc.name, bfd_elf_version_tree.name, disasm_options_t.name, bfd_elf_section_data.name, carsym.name, orl.name, _symbol_info.name, bfd_link_needed_list.name, coff_comdat_info.name, bfd_section.name, reloc_howto_struct.name, bfd_symbol.name, bfd_target.name, cris_spec_reg.name, cris_support_reg.name, cris_cond15.name, cris_opcode.name, pa_opcode.name, lanai_opcode.name, mips_opcode.name, nios2_opcode.name, nios2_reg.name, powerpc_opcode.name, powerpc_macro.name, sparc_opcode_arch.name, sparc_opcode.name, tricore_opcode.name, pcp_opcode.name, tricore_core_register.name, xtensa_format_internal_struct.name, xtensa_slot_internal_struct.name, xtensa_operand_internal_struct.name, xtensa_opcode_internal_struct.name, xtensa_regfile_internal_struct.name, xtensa_interface_internal_struct.name, xtensa_funcUnit_internal_struct.name, xtensa_state_internal_struct.name, xtensa_sysreg_internal_struct.name, mcore_ops.name, mcore_t.name, mips_cp0sel_name.name, mips_abi_choice.name, mips_arch_choice.name, insn_extra_t.name, insn_t.name, ppcps_t.name, ps_opcode_t.name, vle_t.name, e_vle_t.name, se_vle_t.name, ppc_t.name, riscv_opcode.name, snes_op_t.name, arg.name, spc700_op_t.name, vot.name, z80_opcode.name, infile.name, macro.name, stack.name, JNINativeMethod.name, JavaVMAttachArgs.name, rz_bin_elf_section_t.name, rz_bin_elf_symbol_t.name, class_translation.name, ver_flags_translation.name, type_translation.name, flag_translation.name, symbol_bind_translation.name, symbol_type_translation.name, rz_coresym_cache_element_segment_t.name, rz_coresym_cache_element_section_t.name, rz_coresym_cache_element_symbol_t.name, symbol_t.name, fvmlib.name, dylib.name, prebound_dylib_command.name, dylinker_command.name, fvmfile_command.name, rz_ne_resource_entry.name, rz_ne_resource.name, OMF_symbol.name, Pe_image_metadata_methoddef.name, Pe_image_metadata_typedef.name, _PE_RESOURCE.name, pyc_code_object.name, _RKmodInfo.name, tar_header.name, names.name, type_tbl_s.name, WindProc.name, Elf_External_Note.name, label.name, name.name, includedir.name, dspidlist.name, reloc_t.name, dsmapinfo.name, bytecode_t.name, rz_core_visual_tab_t.name, gdb_reg.name, gdbr_xml_flags_t.name, gdbr_xml_reg_t.name, registers_t.name, rz_cmd_macro_label_t.name, xbe_lib.name, PeImageSectionHeader.name, elf_note_types.name, DShMsg_notify_t::.name, DShMsg_notify_t.name, record::header.name, rz_bin_pe_section_t.name, rz_bin_pe_import_t.name, rz_bin_pe_export_t.name, rz_bin_pe_lib_t.name, section_t.name, import_t.name, lib_t.name, rz_bin_wasm_name_t.name, rz_bin_wasm_section_t.name, rz_bin_wasm_code_t.name, rz_asm_lm32_opcode.name, rz_asm_lm32_csr_t.name, rz_asm_lm32_reg_t.name, rz_bin_te_section_t.name, symbols_metadata_t.name, _RKext.name, GDataGlobal.name, Tpi_Type_String.name, Tpi_LF_Array.name, Tpi_LF_Structure.name, Tpi_LF_Structure_19.name, Tpi_LF_Union.name, Tpi_LF_Enum.name, Tpi_LF_Enumerate.name, Tpi_LF_NestType.name, Tpi_LF_Method.name, Tpi_LF_Member.name, Tpi_LF_StaticMember.name, Tpi_LF_OneMethod.name, namealiases_pair.name, RzCoreFileData.name, RzCoreLinkData.name, il_print_t.name, ts_data_symbol_map.name, MsgDigestCaller.name, cmd_descs_generate.Arg.name, cmd_descs_generate.Detail.name, cmd_descs_generate.CmdDesc.name, map_string_value_t.name, RzCoreVisualViewGraphItem.name, linux_map_entry.name, _window.name, _xnu_thread.name, local_pure_var_t.name, rz_analysis_type_var_t.name, rz_analysis_type_ptr_t.name, rz_analysis_type_array_t.name, rz_analysis_type_struct_t.name, rz_analysis_type_union_t.name, rz_analysis_diff_t.name, rz_analysis_function_t.name, rz_analysis_func_arg_t.name, rz_analysis_type_t.name, rz_analysis_var_t.name, rz_analysis_var_global_t.name, rz_analysis_var_field_t.name, rz_analysis_esil_interrupt_handler_t.name, rz_analysis_il_init_state_var_t.name, rz_analysis_plugin_t.name, rz_asm_plugin_t.name, rz_bin_xtr_plugin_t.name, rz_bin_plugin_t.name, rz_bin_virtual_file_t.name, rz_bin_map_t.name, rz_bin_section_t.name, rz_bin_class_t.name, rz_bin_symbol_t.name, rz_bin_import_t.name, rz_bin_field_t.name, rz_bin_mem_t.name, rz_bin_resource_t.name, rz_bin_dwarf_line_file_entry_t.name, rz_bp_plugin_t.name, rz_bp_item_t.name, rz_cmd_macro_item_t.name, rz_cmd_desc_detail_t.name, rz_cmd_desc_arg_t.name, rz_cmd_desc_t.name, rz_config_node_t.name, rz_panels_menu_item.name, rz_panels_t.name, rz_core_plugin_t.name, rz_bin_sym_names_t.name, rz_crypto_plugin_t.name, rz_debug_map_t.name, rz_debug_snap_t.name, rz_debug_plugin_t.name, rz_egg_plugin_t.name, rz_egg_lang_t.name, rz_flag_zone_item_t.name, rz_flag_item_t.name, rz_flirt_function_t.name, rz_flirt_sig_info_t.name, rz_hash_plugin_t.name, rz_il_var_t.name, rz_il_op_args_let_t.name, rz_il_reg_binding_item_t.name, rz_io_desc_t.name, rz_io_plugin_t.name, rz_io_map_t.name, rz_lang_plugin_t.name, rz_lang_def_t.name, rz_main_t.name, rz_parse_plugin_t.name, rz_platform_item_t.name, RzRegProfileDef.name, rz_reg_item_t.name, rz_reg_t.name, rz_syscall_item_t.name, rz_sysreg_item_t.name, rz_syscall_plugin_t.name, rz_syscall_arch_plugin_t.name, rz_type_enum_case_t.name, rz_type_struct_member_t.name, rz_type_union_member_t.name, rz_base_type_t.name, rz_callable_arg_t.name, rz_callable_at.name, rz_type_t.name, rz_type_t::.name, rz_code_annotation_t::.name, rz_code_annotation_t.name, rz_event_class_t.name, rz_space_t.name, rz_spaces_t.name, RzTableColumnType.name, RzTableColumn.name, RzListInfo.name, RUtfBlock.name, gport.name, rz_io_zip_uri_const_t.name, rz_io_zfo_t.name, RzIODescasd.name, diff_function_t.name, rz_oid_list_t.name, rz_lib_type_name_t.name, cclass.name, cname.name, rerr.name, sdb_t.name, sdb_ns_t.name, setup_cython.custom_build.name, opcode_struct.name, test_group_name.GroupTest.name, name_map.name, demangle_operator_info.name, demangle_builtin_type_info.name, demangle_component.name, demangle_component::.name, Type.name, option.name, mspack_file_p.name, uv_interface_address_s.name, uv_dirent_s.name, uv_env_item_s.name, uv__sysctl_args.name, zip_stat.name, zip_hash_entry.name, archive.name, ef.name, entry.name, enum_map_t.name, mpc_parser_t.name, mpca_stmt_t.name, RZARFP.name, cpp_macro_t.name, Tag.name, Proc.name, io_backend_t.name, WindModule.name, redisNodeFlags.name, name_id_map.name, option_map.name, file.name, bin.name, and gz_header_s.name.

Member Data Documentation

◆ arch

test_group_name.GroupTest.arch

Definition at line 17 of file test_group_name.py.

Referenced by test_group_name.GroupTest.run().

◆ data

test_group_name.GroupTest.data

Definition at line 19 of file test_group_name.py.

Referenced by test_group_name.GroupTest.run().

◆ mode

test_group_name.GroupTest.mode

Definition at line 18 of file test_group_name.py.

Referenced by test_group_name.GroupTest.run().

◆ name


The documentation for this class was generated from the following file: