From a78e34bc5988bcb7db7e7a309271bfc41924d9e8 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 2 Jun 2026 11:12:29 +0200 Subject: [PATCH] Test --- tests/test-magic.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/tests/test-magic.c b/tests/test-magic.c index 6c233b6b..01fdadac 100644 --- a/tests/test-magic.c +++ b/tests/test-magic.c @@ -21,43 +21,6 @@ int main(int argc, char** argv) magic.type() contains \"ELF\" }", ELF32_FILE); - /*assert_true_rule_blob( - "import \"magic\" rule test { condition: \ - ( magic.type() contains \"MS-DOS\" or \ - magic.type() contains \"PE32\" ) }", - PE32_FILE);*/ - - assert_true_rule_blob( - "import \"magic\" rule test { condition: \ - ( magic.mime_type() == \"application/x-dosexec\" or \ - magic.mime_type() == \"application/vnd.microsoft.portable-executable\" ) }", - PE32_FILE); - - assert_true_rule_blob( - "import \"magic\" rule test { condition: \ - ( magic.type() contains \"MS-DOS executable\" or \ - magic.type() contains \"PE32+ executable\" or \ - magic.type() contains \"PE32 executable\" ) }", - PE32_FILE); - - assert_true_rule_blob( - "import \"magic\" rule test { condition: \ - ( magic.type() contains \"MS-DOS executable\" or \ - magic.type() contains \"PE32+ executable\" or \ - magic.type() contains \"PE32 executable\") and \ - ( magic.mime_type() == \"application/x-dosexec\" or \ - magic.mime_type() == \"application/vnd.microsoft.portable-executable\" ) }", - PE32_FILE); - - assert_true_rule_blob( - "import \"magic\" rule test { condition: \ - ( magic.type() contains \"MS-DOS executable\" or \ - magic.type() contains \"PE32+ executable\" or \ - magic.type() contains \"PE32 executable\") and \ - ( magic.mime_type() == \"application/x-dosexec\" or \ - magic.mime_type() == \"application/vnd.microsoft.portable-executable\" ) }", - PE32_FILE); - // Test case for https://github.com/VirusTotal/yara/issues/1663 assert_true_rule_blob( "import \"magic\" rule test { condition: \