From 2ca2df2a34239031466cf9697a30089fe3751fed Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 14 Oct 2025 23:05:15 +0200 Subject: [PATCH] testing without RUN_PROG --- tests/test_compile.py | 5 +++-- tests/test_coparun_module2.py | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_compile.py b/tests/test_compile.py index 258970c..695403f 100644 --- a/tests/test_compile.py +++ b/tests/test_compile.py @@ -55,7 +55,7 @@ def test_compile(): il, variables = copapy.compile_to_instruction_list(out, copapy.generic_sdb) # run program command - il.write_com(binwrite.Command.RUN_PROG) + #il.write_com(binwrite.Command.RUN_PROG) for net in ret: copapy.add_read_command(il, variables, net) @@ -72,7 +72,8 @@ def test_compile(): print(result) print('--') - assert 'Return value: 1' in result + #assert 'Return value: 1' in result + assert 'END_COM' in result if __name__ == "__main__": diff --git a/tests/test_coparun_module2.py b/tests/test_coparun_module2.py index 17fa888..57753b1 100644 --- a/tests/test_coparun_module2.py +++ b/tests/test_coparun_module2.py @@ -14,14 +14,13 @@ def test_compile(): r2 = i1 + 9 out = [Write(r1), Write(r2), Write(c2)] - il, _ = copapy.compile_to_instruction_list(out, copapy.generic_sdb) + il, variables = copapy.compile_to_instruction_list(out, copapy.generic_sdb) # run program command il.write_com(binwrite.Command.RUN_PROG) - il.write_com(binwrite.Command.READ_DATA) - il.write_int(0) - il.write_int(36) + for net in [c1, c2, i1, r1, r2]: + copapy.add_read_command(il, variables, net) # run program command il.write_com(binwrite.Command.END_COM)