Skip to content

Commit

Permalink
Added regression check for icon hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladislav Zezula authored and PeterMatula committed Jul 16, 2021
1 parent 8a1d10a commit e476618
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Binary file not shown.
15 changes: 15 additions & 0 deletions tools/fileinfo/features/hashes/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,21 @@ def test_correctly_computes_resource_icon_hash(self):
self.assertEqual(self.fileinfo.output['resourceTable']['iconSha256'], 'bdb247c84e26b93d2ea6b7f4e12d3949ef5be2e9c5eff07a805bdc658a770e84')
self.assertEqual(self.fileinfo.output['resourceTable']['iconAvgHash'], '0000202038380000')

class TestResourceIconHash3(Test):
settings = TestSettings(
tool='fileinfo',
input='resource_icon_hash3',
args='--verbose --json'
)

def test_correctly_computes_resource_icon_hash(self):
assert self.fileinfo.succeeded

self.assertEqual(self.fileinfo.output['resourceTable']['iconCrc32'], '06272459')
self.assertEqual(self.fileinfo.output['resourceTable']['iconMd5'], 'be0bd1d1c38eb059201c3a97141728f6')
self.assertEqual(self.fileinfo.output['resourceTable']['iconSha256'], '7e648590d398e4313266a5c7ace61a07302e5325137d03e8fa8f9cc443a15fe4')
self.assertEqual(self.fileinfo.output['resourceTable']['iconAvgHash'], '0042001000004200')

class TestTelfhash1(Test):
settings = TestSettings(
tool='fileinfo',
Expand Down

0 comments on commit e476618

Please sign in to comment.