diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-04-14 20:13:55 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-04-21 11:05:06 +0200 |
| commit | 102ad42976e7fcae3c67a21b61d0fe9294eb1fc4 (patch) | |
| tree | a2059a53e0abed5ff8de66a28efc6dfcde9f1152 /test/test_all.py | |
| parent | 9b0ce9e798941e700b166da43e100f04f12df05f (diff) | |
| download | focaccia-miasm-102ad42976e7fcae3c67a21b61d0fe9294eb1fc4.tar.gz focaccia-miasm-102ad42976e7fcae3c67a21b61d0fe9294eb1fc4.zip | |
Example: add irblock simplification example
Diffstat (limited to 'test/test_all.py')
| -rwxr-xr-x | test/test_all.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test_all.py b/test/test_all.py index d2c3e5e2..0cc50d03 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -432,6 +432,7 @@ test_x86_64 = ExampleShellcode(["x86_64", "x86_64.S", "demo_x86_64.bin", test_x86_32_if_reg = ExampleShellcode(['x86_32', 'x86_32_if_reg.S', "x86_32_if_reg.bin"]) test_x86_32_seh = ExampleShellcode(["x86_32", "x86_32_seh.S", "x86_32_seh.bin", "--PE"]) +test_x86_32_dead = ExampleShellcode(['x86_32', 'x86_32_dead.S', "x86_32_dead.bin"]) test_human = ExampleShellcode(["x86_64", "human.S", "human.bin"]) @@ -449,7 +450,7 @@ testset += test_mips32l testset += test_x86_64 testset += test_x86_32_if_reg testset += test_x86_32_seh - +testset += test_x86_32_dead testset += test_human class ExampleDisassembler(Example): @@ -480,9 +481,9 @@ class ExampleDisasmFull(ExampleDisassembler): def __init__(self, *args, **kwargs): super(ExampleDisasmFull, self).__init__(*args, **kwargs) - self.command_line = ["full.py", "-g", "-s", "-d", "-m"] + self.command_line + self.command_line = ["full.py", "-g", "-ss", "-d", "-m"] + self.command_line self.products += ["graph_defuse.dot", "graph_execflow.dot", - "graph_irflow.dot", "graph_irflow_raw.dot", "lines.dot"] + "graph_irflow.dot", "graph_irflow_raw.dot", "lines.dot", "graph_irflow_reduced.dot"] testset += ExampleDisasmFull(["arml", Example.get_sample("demo_arm_l.bin"), @@ -519,6 +520,8 @@ testset += ExampleDisasmFull(["x86_32", os.path.join("..", "..", "test", "arch", "x86", "qemu", "test-i386"), "func_iret"]) +testset += ExampleDisasmFull(["x86_32", Example.get_sample("x86_32_dead.bin"), + "0"], depends=[test_x86_32_dead]) ## Expression |