test_i2c: allow unit test to run directly

This commit is contained in:
Andrew Dennison 2023-08-25 15:25:37 +10:00
parent 5504cc626f
commit 64ccd6df1c
1 changed files with 4 additions and 0 deletions

4
test/test_i2c.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
#
# This file is part of MiSoC and has been adapted/modified for Litex.
#
@ -130,3 +131,6 @@ class TestI2C(unittest.TestCase):
yield from wait_idle()
run_simulation(dut, check(), special_overrides={Tristate: _MockTristate}, vcd_name="i2c.vcd")
if __name__ == "__main__":
unittest.main()