mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
test: add basic test_targets.py
This commit is contained in:
parent
c0800d25a6
commit
35e3d93d9b
1 changed files with 33 additions and 0 deletions
33
test/test_targets.py
Normal file
33
test/test_targets.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
import unittest
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.soc.integration.builder import *
|
||||
|
||||
|
||||
def build_test(socs):
|
||||
for soc in socs:
|
||||
builder = Builder(soc, output_dir="build", compile_software=False, compile_gateware=False)
|
||||
builder.build()
|
||||
|
||||
|
||||
class TestTargets(unittest.TestCase):
|
||||
def test_arty(self):
|
||||
from litex.boards.targets.arty import BaseSoC, MiniSoC
|
||||
build_test([BaseSoC(), MiniSoC()])
|
||||
|
||||
def test_de0nano(self):
|
||||
from litex.boards.targets.de0nano import BaseSoC
|
||||
build_test([BaseSoC()])
|
||||
|
||||
def test_kc705(self):
|
||||
from litex.boards.targets.kc705 import BaseSoC, MiniSoC
|
||||
build_test([BaseSoC(), MiniSoC()])
|
||||
|
||||
def test_minispartan6(self):
|
||||
from litex.boards.targets.minispartan6 import BaseSoC
|
||||
build_test([BaseSoC()])
|
||||
|
||||
def test_nexys_video(self):
|
||||
from litex.boards.targets.nexys_video import BaseSoC, MiniSoC
|
||||
build_test([BaseSoC(), MiniSoC()])
|
Loading…
Reference in a new issue