2 # QEMU AVR integration tests
4 # Copyright (c) 2019-2020 Michael Rolnik <mrolnik@gmail.com>
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 from avocado_qemu
import QemuSystemTest
24 class AVR6Machine(QemuSystemTest
):
27 def test_freertos(self
):
29 :avocado: tags=arch:avr
30 :avocado: tags=machine:arduino-mega-2560-v3
33 https://github.com/seharris/qemu-avr-tests/raw/master/free-rtos/Demo/AVR_ATMega2560_GCC/demo.elf
34 constantly prints out 'ABCDEFGHIJKLMNOPQRSTUVWXABCDEFGHIJKLMNOPQRSTUVWX'
36 rom_url
= ('https://github.com/seharris/qemu-avr-tests'
37 '/raw/36c3e67b8755dcf/free-rtos/Demo'
38 '/AVR_ATMega2560_GCC/demo.elf')
39 rom_hash
= '7eb521f511ca8f2622e0a3c5e8dd686efbb911d4'
40 rom_path
= self
.fetch_asset(rom_url
, asset_hash
=rom_hash
)
42 self
.vm
.add_args('-bios', rom_path
)
43 self
.vm
.add_args('-nographic')
49 self
.assertIn('ABCDEFGHIJKLMNOPQRSTUVWXABCDEFGHIJKLMNOPQRSTUVWX',