Skip to content

Commit

Permalink
Merge pull request #74 from avast/LZ_Installers_InstallCreator
Browse files Browse the repository at this point in the history
Lz installers install creator
  • Loading branch information
s3rvac authored Sep 25, 2020
2 parents 2a3370b + 7bea0fb commit f2d8838
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions tools/fileinfo/detection/installers/install_creator/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from regression_tests import *

class Test(Test):
settings = TestSettings(
tool='fileinfo',
input=[
'calc_separ.exe_',
'free_000001C1.ex'
],
args='--json'
)

def test_correctly_analyzes_input_file(self):
create_install_recognized = False

self.assertTrue(self.fileinfo.succeeded)
for tool in self.fileinfo.output['tools']:
if tool['type'] == 'installer' and tool['name'] == 'InstallCreator':
create_install_recognized = True
self.assertTrue(create_install_recognized)
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions tools/fileinfo/detection/installers/nsis/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
from regression_tests import *

class TestNSISDetectionByOverlay(Test):
settings = TestSettings(
tool='fileinfo',
input=[
'nsis10f.exe',
'nsis11n.exe',
'nsis142.exe'
],
)

def test_detected_nsis(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output.contains(r'Nullsoft Install System')

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

0 comments on commit f2d8838

Please sign in to comment.