test/test_targets: test simple design with all platforms
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 24 Sep 2018 00:01:47 +0000 (02:01 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 24 Sep 2018 00:02:14 +0000 (02:02 +0200)
test/test_targets.py

index 37c174b692a6f56df62f01bcbc4164889ec42c18..615e54482ac98ed626c5135a1e9f88c351920505 100644 (file)
@@ -57,3 +57,30 @@ class TestTargets(unittest.TestCase):
 
     # lattice boards
 
+    # build simple design for all platforms
+    def test_simple(self):
+        platforms = [
+            "arty",
+            "arty_s7",
+            "de0nano",
+            "genesys2",
+            "icestick",
+            "kc705",
+            "kcu105",
+            "machxo3",
+            "mercury",
+            "mimasv2",
+            "minispartan6",
+            "nexys4ddr",
+            "nexys_video",
+            "papilio_pro",
+            "tinyfpga_b",
+            "tinyfpga_bx",
+            "versa",
+            "versaecp55g"
+        ]
+        for p in platforms:
+            os.system("litex_simple litex.boards.platforms." + p +
+                " --no-compile-software " +
+                " --no-compile-gateware " +
+                " --uart-stub=True")