A standalone test-suite for AVR compilers.
Uses simavr under the hood.
```bash git clone https://github.com/dylanmckay/avr-test-suite.git cd avr-test-suite
./test.sh ```
There are two binaries included in this crate.
avr-lit
The test runner.
Usage
```bash cd avr-test-suite
cargo run --bin avr-lit
cargo run --bin avr-lit tests/add.cpp ```
avr-sim
An avr simulator that will flash binaries given to it onto an emulated AVR and execute the program until it goes into indefinite sleep mode with interrupts disabled.
It will also connect the simulated UART to standard output, which can then be used by tests or other stuff.
Usage
```bash cd avr-test-suite
cargo run --bin avr-sim MyExecutable.elf
echo 'int main() { return 0; }' > main.c avr-gcc main.c -mmcu=atmega328 -o /dev/stdout | cargo run --bin avr-sim MyExecutable ```
Uses the lit crate.