diff options
Diffstat (limited to 'test/test_all.py')
| -rw-r--r-- | test/test_all.py | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/test/test_all.py b/test/test_all.py index b0ab548f..0c49f264 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -107,22 +107,35 @@ for script in [["disasm_01.py"], ]: testset += Example(script) ## Expression -testset += Example(["test_dis.py", "-g", "-s", "-m", "arml", "demo_arm_l.bin", "0"], - depends=[test_arm]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "armb", "demo_arm_b.bin", "0"], - depends=[test_arm]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "armtl", "demo_armt_l.bin", "0"], +class ExampleTestDis(Example): + """TestDis specificities: + - script: test_dis.py + - flags: -g -s -m + - @products: graph_execflow.txt, graph_irflow.txt, lines.txt, out.txt + """ + + def __init__(self, *args, **kwargs): + super(ExampleTestDis, self).__init__(*args, **kwargs) + self.command_line = ["test_dis.py", "-g", "-s", "-m"] + \ + self.command_line + self.products += ["graph_execflow.txt", "graph_irflow.txt", "lines.txt", + "out.txt"] + +testset += ExampleTestDis(["arml", "demo_arm_l.bin", "0"], depends=[test_arm]) +testset += ExampleTestDis(["armb", "demo_arm_b.bin", "0"], depends=[test_arm]) +testset += ExampleTestDis(["armtl", "demo_armt_l.bin", "0"], depends=[test_armt]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "armtb", "demo_armt_b.bin", "0"], +testset += ExampleTestDis(["armtb", "demo_armt_b.bin", "0"], depends=[test_armt]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "x86_32", "box_x86_32.bin", - "0x401000"], depends=[test_box]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "msp430", "msp430_sc.bin", "0"], +testset += ExampleTestDis(["x86_32", "box_x86_32.bin", "0x401000"], + depends=[test_box]) +testset += ExampleTestDis(["msp430", "msp430_sc.bin", "0"], depends=[test_msp430]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "mips32l", "mips32_sc_l.bin", - "0"], depends=[test_mips32]) -testset += Example(["test_dis.py", "-g", "-s", "-m", "mips32b", "mips32_sc_b.bin", - "0"], depends=[test_mips32]) +testset += ExampleTestDis(["mips32l", "mips32_sc_l.bin", "0"], + depends=[test_mips32]) +testset += ExampleTestDis(["mips32b", "mips32_sc_b.bin", "0"], + depends=[test_mips32]) + testset += Example(["expression/graph_dataflow.py", "expression/sc_connect_back.bin", "0x2e"], products=["data.txt"]) |