From b9dcf09ba85c8b49819e07dbbc273e41155a01c9 Mon Sep 17 00:00:00 2001 From: Ajax Date: Thu, 19 Mar 2015 10:39:01 +0100 Subject: DisasmFull: The architecture is now an optionnal argument, otherwise cont.arch is used --- test/test_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_all.py') diff --git a/test/test_all.py b/test/test_all.py index 8d759053..6cadce9a 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -249,7 +249,7 @@ class ExampleDisasmFull(ExampleDisassembler): def __init__(self, *args, **kwargs): super(ExampleDisasmFull, self).__init__(*args, **kwargs) - self.command_line = ["full.py", "-g", "-s"] + self.command_line + self.command_line = ["full.py", "-g", "-s", "-m"] + self.command_line self.products += ["graph_execflow.txt", "graph_irflow.txt", "lines.txt"] -- cgit 1.4.1 From 595fda5b35238a9e468af5d3d674129d62e369dc Mon Sep 17 00:00:00 2001 From: Ajax Date: Thu, 19 Mar 2015 10:42:03 +0100 Subject: TestAll: Add a test for disasm/full without arch and addr to reach previously untested code --- test/test_all.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_all.py') diff --git a/test/test_all.py b/test/test_all.py index 6cadce9a..ecf9a63b 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -236,6 +236,8 @@ for script, prods in [(["single_instr.py"], []), (["function.py"], ["graph.txt"]), (["file.py", Example.get_sample("box_upx.exe"), "0x410f90"], ["graph.txt"]), + (["full.py", Example.get_sample("box_upx.exe")], + ["graph_execflow.txt", "lines.txt"]), ]: testset += ExampleDisassembler(script, products=prods) -- cgit 1.4.1