From f0a629774a8652e732eecbf90d5ba16614a970b5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 1 Oct 2021 13:53:05 +0200 Subject: [PATCH] test/test_targets: Add excluded_platforms/targets lists and add quicklogic_quickfeather to it. --- test/test_targets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_targets.py b/test/test_targets.py index 00d4115..f3ba5ab 100644 --- a/test/test_targets.py +++ b/test/test_targets.py @@ -14,6 +14,9 @@ from migen import * from litex.soc.integration.builder import * class TestTargets(unittest.TestCase): + excluded_platforms = ["qmtech_daughterboard", "quicklogic_quickfeather"] + excluded_targets = ["simple", "quicklogic_quickfeather"] + # Build simple design for all platforms. def test_platforms(self): # Collect platforms. @@ -21,7 +24,7 @@ class TestTargets(unittest.TestCase): for file in os.listdir("./litex_boards/platforms/"): if file.endswith(".py"): file = file.replace(".py", "") - if file not in ["__init__", "qmtech_daughterboard"]: + if file not in ["__init__"] + self.excluded_platforms: platforms.append(file) # Test platforms with simple design. @@ -43,7 +46,7 @@ python3 -m litex_boards.targets.simple litex_boards.platforms.{} \ for file in os.listdir("./litex_boards/targets/"): if file.endswith(".py"): file = file.replace(".py", "") - if file not in ["__init__", "simple"]: + if file not in ["__init__"] + self.excluded_targets: targets.append(file) # Test targets.