litescope/test/test_examples.py

19 lines
579 B
Python
Raw Normal View History

#
# This file is part of LiteScope.
#
# Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import unittest
import os
from litescope.software.dump import *
root_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..")
class TestExamples(unittest.TestCase):
2020-08-05 08:51:50 -04:00
def test_arty(self):
os.system(f"rm -rf {root_dir}/build")
os.system(f"cd {root_dir}/examples && python3 arty.py")
self.assertEqual(os.path.isfile(f"{root_dir}/examples/build/digilent_arty/gateware/digilent_arty.v"), True)