From 12d53790a9b5c1614f23ef81cdab609eed5c96ed Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 26 Oct 2021 16:37:38 +0200 Subject: [PATCH] test/test_cpu: Prepare microwatt/lm32 test. microwatt: Still requires Yoys/GHDL-Synth installation. lm32: Still requires prebuilt toolchain. --- test/test_cpu.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/test_cpu.py b/test/test_cpu.py index 7d25c876a..4f7d2cbdd 100644 --- a/test/test_cpu.py +++ b/test/test_cpu.py @@ -9,8 +9,8 @@ import pexpect import sys class TestCPU(unittest.TestCase): - def boot_test(self, cpu_type): - cmd = f'litex_sim --cpu-type={cpu_type}' + def boot_test(self, cpu_type, cpu_variant="standard"): + cmd = f'litex_sim --cpu-type={cpu_type} --cpu-variant={cpu_variant}' litex_prompt = [b'\033\[[0-9;]+mlitex\033\[[0-9;]+m>'] is_success = True with open("/tmp/test_boot_log", "wb") as result_file: @@ -62,3 +62,11 @@ class TestCPU(unittest.TestCase): # OpenRISC CPUs. #def test_mor1kx(self): # self.assertTrue(self.boot_test("mor1kx")) + + # PowerPC CPUs. + #def test_microwatt(self): + # self.assertTrue(self.boot_test("microwatt", cpu_variant="standard+ghdl")) + + # LM32 CPUs. + #def test_lm32(self): + # self.assertTrue(self.boot_test("lm32"))