diff --git a/tools/fileinfo/detection/installers/ghost_installer/Setup47_1_free.exe_ b/tools/fileinfo/detection/installers/ghost_installer/Setup47_1_free.exe_ new file mode 100644 index 0000000..62a17f1 Binary files /dev/null and b/tools/fileinfo/detection/installers/ghost_installer/Setup47_1_free.exe_ differ diff --git a/tools/fileinfo/detection/installers/ghost_installer/Setup48_free_empty.exe_ b/tools/fileinfo/detection/installers/ghost_installer/Setup48_free_empty.exe_ new file mode 100644 index 0000000..f60b854 Binary files /dev/null and b/tools/fileinfo/detection/installers/ghost_installer/Setup48_free_empty.exe_ differ diff --git a/tools/fileinfo/detection/installers/ghost_installer/test.py b/tools/fileinfo/detection/installers/ghost_installer/test.py new file mode 100644 index 0000000..71761cb --- /dev/null +++ b/tools/fileinfo/detection/installers/ghost_installer/test.py @@ -0,0 +1,20 @@ +from regression_tests import * + +class Test(Test): + settings = TestSettings( + tool='fileinfo', + input=[ + 'Setup47_1_free.exe_', + 'Setup48_free_empty.exe_' + ], + 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'] == 'GhostInstaller': + create_install_recognized = True + self.assertTrue(create_install_recognized)