-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from avast/LZ_Installer_SmartInstallMaker
Added tests for Smart Install Maker
- Loading branch information
Showing
5 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+309 KB
tools/fileinfo/detection/installers/smart_install_maker/Setup_1_nouninst_none_504.exe_
Binary file not shown.
Binary file added
BIN
+174 KB
tools/fileinfo/detection/installers/smart_install_maker/Setup_calc.exe_
Binary file not shown.
Binary file added
BIN
+208 KB
tools/fileinfo/detection/installers/smart_install_maker/Setup_comp_max_502.exe_
Binary file not shown.
Binary file added
BIN
+162 KB
tools/fileinfo/detection/installers/smart_install_maker/Setup_comp_ultra_410.exe_
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
tools/fileinfo/detection/installers/smart_install_maker/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |