From 38040844e78916e5ec2a861c0ba5794d99ac2d0e Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Thu, 30 Apr 2020 21:58:34 -0400 Subject: HLIL unit tests --- suite/testcommon.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'suite/testcommon.py') diff --git a/suite/testcommon.py b/suite/testcommon.py index 13267eac..3953bf05 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -337,6 +337,14 @@ class BinaryViewTestBuilder(Builder): retinfo.append("Function: {:x} Instruction: {}: {}".format(func.start, hex(ins[1]), ''.join([str(i) for i in ins[0]]))) return fixOutput(retinfo) + def test_function_hlil(self): + """Function HLIL produced different output""" + retinfo = [] + for func in self.bv.functions: + for line in func.hlil.root.lines: + retinfo.append("Function: {:x} HLIL line: {}".format(func.start, str(line))) + return fixOutput(retinfo) + def test_functions_attributes(self): """Function attributes don't match""" funcinfo = [] -- cgit v1.3.1