Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tests for Smart Install Maker #77

Merged
merged 1 commit into from
Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)