Common testbench classes and methods

exception acoretestbenches.common.TestFailError(message='Test failed!')

Raised when test fails.

acoretestbenches.common.bss_size(elf_file)
acoretestbenches.common.get_symbol_value(elf_file, name)
acoretestbenches.common.parse_uart_results(uart_output)

Parse a dictionary of results printed using test_print_result_<type> from a-core-library. Results are printed out as typed key-value pairs in the following format:

thesdk:<type>:<key>:<value>

Supported types

u32 : 32-bit unsigned integer u64 : 64-bit unsigned integer

Parameters

uart_outputstr

UART output printed by the test program.

acoretestbenches.common.ram_image(elf_file)
acoretestbenches.common.ram_start(elf_file)
acoretestbenches.common.read_elf(elf_path)
acoretestbenches.common.rom_image(elf_file)
acoretestbenches.common.rom_start(elf_file)