Skip to content

Commit

Permalink
Merge pull request #71 from avast/LZ_Installers_FlyStudio
Browse files Browse the repository at this point in the history
Added tests for YARA rules for FlyStudio
  • Loading branch information
s3rvac authored Sep 18, 2020
2 parents 54fdfb7 + 7d5bdb0 commit 6b1e3e2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions tools/fileinfo/detection/installers/fly_studio/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=[
'04d0163cfa2c35b1c34c2669cc9c53e5.ex',
'067bc8935fed7e353168eef7592bb7e3.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'] == 'FlyStudio':
create_install_recognized = True
self.assertTrue(create_install_recognized)

0 comments on commit 6b1e3e2

Please sign in to comment.