diff --git a/tools/fileinfo/detection/packers/aspack/asp_uv_09 b/tools/fileinfo/detection/packers/aspack/asp_uv_09 new file mode 100644 index 00000000..9855f7d3 Binary files /dev/null and b/tools/fileinfo/detection/packers/aspack/asp_uv_09 differ diff --git a/tools/fileinfo/detection/packers/aspack/asp_uv_10 b/tools/fileinfo/detection/packers/aspack/asp_uv_10 new file mode 100644 index 00000000..eed6dbc5 Binary files /dev/null and b/tools/fileinfo/detection/packers/aspack/asp_uv_10 differ diff --git a/tools/fileinfo/detection/packers/aspack/asp_uv_11 b/tools/fileinfo/detection/packers/aspack/asp_uv_11 new file mode 100644 index 00000000..bab089cc Binary files /dev/null and b/tools/fileinfo/detection/packers/aspack/asp_uv_11 differ diff --git a/tools/fileinfo/detection/packers/aspack/test.py b/tools/fileinfo/detection/packers/aspack/test.py index edebe4f0..434c726b 100644 --- a/tools/fileinfo/detection/packers/aspack/test.py +++ b/tools/fileinfo/detection/packers/aspack/test.py @@ -9,3 +9,23 @@ class Test(Test): def test_correctly_analyzes_input_file(self): assert self.fileinfo.succeeded assert self.fileinfo.output.contains(r'.*ASPack \(2\.12\)*') + +class TestASPack(Test): + settings = TestSettings( + tool='fileinfo', + input=[ + 'asp_uv_09', + 'asp_uv_10', + 'asp_uv_11', + ], + args='--json' + ) + + def test_correctly_analyzes_input_file(self): + aspack_recognised = False + + self.assertTrue(self.fileinfo.succeeded) + for tool in self.fileinfo.output['tools']: + if tool['type'] == 'packer' and tool['name'] == 'ASPack': + aspack_recognised = True + self.assertTrue(aspack_recognised)