Skip to content

Commit

Permalink
Merge pull request #77 from avast/LZ_Installer_SmartInstallMaker
Browse files Browse the repository at this point in the history
Added tests for Smart Install Maker
  • Loading branch information
s3rvac authored Oct 19, 2020
2 parents 9776576 + 30235ba commit cc00754
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions tools/fileinfo/detection/installers/smart_install_maker/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from regression_tests import *

class Test(Test):
settings = TestSettings(
tool='fileinfo',
input=[
'Setup_calc.exe_',
'Setup_comp_ultra_410.exe_',
'Setup_comp_max_502.exe_',
'Setup_1_nouninst_none_504.exe_'
],
args='--json'
)

def test_correctly_analyzes_input_file(self):
installer_recognized = False

self.assertTrue(self.fileinfo.succeeded)
for tool in self.fileinfo.output['tools']:
if tool['type'] == 'installer' and tool['name'] == 'Smart Install Maker':
installer_recognized = True
self.assertTrue(installer_recognized)

0 comments on commit cc00754

Please sign in to comment.