about summary refs log tree commit diff stats
path: root/test/test_all.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2017-04-21 12:09:33 +0200
committerGitHub <noreply@github.com>2017-04-21 12:09:33 +0200
commit31109b86989e2e0d3bc09a0283d7518979545011 (patch)
tree1725db71c81115d30ee5ac47208104c4f13def1a /test/test_all.py
parent4f2f7bd6c808a87e2713c27ab2a3f1cebd778d99 (diff)
parent102ad42976e7fcae3c67a21b61d0fe9294eb1fc4 (diff)
downloadmiasm-31109b86989e2e0d3bc09a0283d7518979545011.tar.gz
miasm-31109b86989e2e0d3bc09a0283d7518979545011.zip
Merge pull request #521 from serpilliere/ir_helper
Ir helper
Diffstat (limited to '')
-rwxr-xr-xtest/test_all.py9
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