- test_sync_clk_basic and test_sync_clk_plugin now run at FS & HS
- test_sync_clk_plugin marked as known failure (now fails as expected for HS and FS)
This commit is contained in:
@@ -10,11 +10,11 @@ def test_file(request):
|
||||
return str(request.node.fspath)
|
||||
|
||||
|
||||
def do_test(test_file, options, capfd):
|
||||
def do_test(bus_speed, test_file, options, capfd):
|
||||
|
||||
testname, _ = os.path.splitext(os.path.basename(test_file))
|
||||
|
||||
binary = f"{testname}/bin/{testname}.xe"
|
||||
binary = f"{testname}/bin/{bus_speed}/{testname}_{bus_speed}.xe"
|
||||
|
||||
tester = testers.ComparisonTester(open("pass.expect"))
|
||||
|
||||
@@ -25,7 +25,6 @@ def do_test(test_file, options, capfd):
|
||||
+ "-port tile[0] XS1_PORT_1P 1 0 -port tile[0] XS1_PORT_1L 1 0 "
|
||||
+ "-port tile[0] XS1_PORT_1A 1 0 -port tile[0] XS1_PORT_1B 1 0 "
|
||||
)
|
||||
|
||||
|
||||
max_cycles = 15000000 # enough to reach the 10 skip + 100 test in sim at 48kHz
|
||||
|
||||
@@ -37,13 +36,21 @@ def do_test(test_file, options, capfd):
|
||||
loopback_args,
|
||||
]
|
||||
|
||||
result = Pyxsim.run_on_simulator(binary, tester=tester, simargs=simargs, capfd=capfd, instTracing=options.enabletracing, vcdTracing=options.enablevcdtracing)
|
||||
result = Pyxsim.run_on_simulator(
|
||||
binary,
|
||||
tester=tester,
|
||||
simargs=simargs,
|
||||
capfd=capfd,
|
||||
instTracing=options.enabletracing,
|
||||
vcdTracing=options.enablevcdtracing,
|
||||
)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def test_sync_clk_basic(test_file, options, capfd):
|
||||
@pytest.mark.parametrize("bus_speed", ["FS", "HS"])
|
||||
def test_sync_clk_basic(bus_speed, test_file, options, capfd):
|
||||
|
||||
result = do_test(test_file, options, capfd)
|
||||
result = do_test(bus_speed, test_file, options, capfd)
|
||||
|
||||
assert result
|
||||
|
||||
Reference in New Issue
Block a user