From 10a911088c25815c30b0b0d5fe7e4e211aac616f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 25 Nov 2019 08:53:40 +0100 Subject: [PATCH] test: rename test_liteeth_gen to test_gen and call gen.py instead of liteeth_gen --- test/{test_liteeth_gen.py => test_gen.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/{test_liteeth_gen.py => test_gen.py} (77%) diff --git a/test/test_liteeth_gen.py b/test/test_gen.py similarity index 77% rename from test/test_liteeth_gen.py rename to test/test_gen.py index cfc3a32..08d263b 100644 --- a/test/test_liteeth_gen.py +++ b/test/test_gen.py @@ -6,10 +6,10 @@ import os root_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..") -class TestLiteDRAMGen(unittest.TestCase): +class TestGen(unittest.TestCase): def test(self): for phy in ["mii", "gmii", "rgmii"]: for core in ["wishbone", "udp"]: os.system("rm -rf {}/build".format(root_dir)) - os.system("liteeth_gen --phy={} --core={}".format(phy, core)) + os.system("python3 {}/liteeth/gen.py --phy={} --core={}".format(root_dir, phy, core)) self.assertEqual(os.path.isfile("{}/build/gateware/liteeth_core.v".format(root_dir)), True)