From: Florent Kermarrec Date: Mon, 28 Oct 2019 09:59:43 +0000 (+0100) Subject: test/test_targets: skip Minerva test on Travis-CI, remove commented tests X-Git-Tag: 24jan2021_ls180~895 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=650df0ebc2046424915d36bfe527cafd41a176cd;p=litex.git test/test_targets: skip Minerva test on Travis-CI, remove commented tests --- diff --git a/test/test_targets.py b/test/test_targets.py index 038faedb..fc5604ac 100644 --- a/test/test_targets.py +++ b/test/test_targets.py @@ -143,23 +143,23 @@ litex/boards/targets/simple.py litex.boards.platforms.arty \ subprocess.check_output(cmd, shell=True) # Build some variants for the arty platform to make sure they work. - def test_variants_riscv(self): + def test_variants_picorv32(self): + self.run_variants("picorv32", ('standard', 'minimal')) + + def test_variants_vexriscv(self): + self.run_variants("vexriscv", ('standard', 'minimal', 'lite', 'lite+debug', 'full+debug')) + + @unittest.skipIf(RUNNING_ON_TRAVIS, "No nMigen/Yosys on Travis-CI") + def test_variants_minerva(self): + self.run_variants("minerva", ('standard',)) + + def test_variants_vexriscv(self): cpu_variants = { - 'picorv32': ('standard', 'minimal'), 'vexriscv': ('standard', 'minimal', 'lite', 'lite+debug', 'full+debug'), - 'minerva': ('standard',), } for cpu, variants in cpu_variants.items(): self.run_variants(cpu, variants) - #def test_bad_variants(self): - # with self.assertRaises(subprocess.CalledProcessError): - # self.run_variant('vexriscv', 'bad') - - #def test_bad_variant_extension(self): - # with self.assertRaises(subprocess.CalledProcessError): - # self.run_variant('vexriscv', 'standard+bad') - @unittest.skipIf(RUNNING_ON_TRAVIS, "No lm32 toolchain on Travis-CI") def test_variants_lm32(self): self.run_variants('lm32', ('standard', 'minimal', 'lite'))