This framework can be used to test the implementation of AVR32 CPU instructions in QEMU-AVR32.
Clone the repo.
git clone https://github.com/flogosec/qemu-avr32-testing.gitDownload the AVR32 assembler from the Atmel website. Place the avr32-as file in the project directory.
The testing script provides the following options.
./avr32test.py -p [path to QEMU-AVR32 binary] --build -t [name of test file]The --build option is needed to first assemble the test binary.
./avr32test.py -p [path to QEMU-AVR32 binary] --build -t [substring]The substring can be replaced with the start of a test name. All tests startring with this substring will be executed.
./avr32test.py -p [path to QEMU-AVR32 binary] --build --all./avr32test.py -p [path to QEMU-AVR32 binary] --build --all -dThis shows the registers contents after each test, next to the expected results.
I posted an article on my blog that describes how new tests can be added. See here.