2020-08-23 10:45:20 -04:00
|
|
|
#
|
|
|
|
# This file is part of LiteScope.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
2019-11-23 05:16:32 -05:00
|
|
|
|
|
|
|
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")
|
2021-05-03 06:12:16 -04:00
|
|
|
self.assertEqual(os.path.isfile(f"{root_dir}/examples/build/digilent_arty/gateware/digilent_arty.v"), True)
|
2019-11-23 05:16:32 -05:00
|
|
|
|