test/test_targets: Add --build to generate files.

This commit is contained in:
Florent Kermarrec 2022-06-29 09:41:57 +02:00
parent b61c471058
commit 9f5ca1b1d6
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class TestTargets(unittest.TestCase):
os.system("rm -rf build") os.system("rm -rf build")
cmd = """\ cmd = """\
python3 -m litex_boards.targets.simple litex_boards.platforms.{} \ python3 -m litex_boards.targets.simple litex_boards.platforms.{} \
--build \
--no-compile \ --no-compile \
--uart-name="stub" \ --uart-name="stub" \
""".format(name) """.format(name)
@ -79,6 +80,7 @@ python3 -m litex_boards.targets.simple litex_boards.platforms.{} \
python3 -m litex_boards.targets.{} \ python3 -m litex_boards.targets.{} \
--cpu-type=vexriscv \ --cpu-type=vexriscv \
--cpu-variant=minimal \ --cpu-variant=minimal \
--build \
--no-compile \ --no-compile \
""".format(name) """.format(name)
subprocess.check_call(cmd, shell=True) subprocess.check_call(cmd, shell=True)