From b67996c48f1bc91412605acd7012f242514d3927 Mon Sep 17 00:00:00 2001 From: Catherine Date: Wed, 28 Feb 2024 13:03:05 +0000 Subject: Add smoke tests for a selection of iCE40, ECP5, Xilinx, Intel boards. The purpose of these tests is just to ensure that Amaranth changes do not blatantly break the boards repository. They are not intended to exhaustively test even a single board. Everything Gowin-related is removed due to Apicula's problematic use of numpy. --- amaranth_boards/arty_a7.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'amaranth_boards/arty_a7.py') diff --git a/amaranth_boards/arty_a7.py b/amaranth_boards/arty_a7.py index 3714b59..3ca94d2 100644 --- a/amaranth_boards/arty_a7.py +++ b/amaranth_boards/arty_a7.py @@ -1,5 +1,6 @@ import os import subprocess +import unittest from amaranth.build import * from amaranth.vendor import XilinxPlatform @@ -225,6 +226,12 @@ class ArtyA7_100Platform(_ArtyA7Platform): device = "xc7a100ti" +class TestCase(unittest.TestCase): + def test_smoke(self): + from .test.blinky import Blinky + ArtyA7_35Platform().build(Blinky(), do_build=False) + + if __name__ == "__main__": from .test.blinky import * ArtyA7_35Platform().build(Blinky(), do_program=True) -- cgit v1.2.3