-
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 #74 from avast/LZ_Installers_InstallCreator
Lz installers install creator
- Loading branch information
Showing
7 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
tools/fileinfo/detection/installers/install_creator/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,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.
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