From 028aa533b13489a55f1dfc4a9b312f3982d4b6db Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Thu, 11 Jun 2026 10:42:10 +0200 Subject: [PATCH] tests: add more ELF OS detection cases (#3099) * tests: add more ELF OS detection cases --- tests/test_elf_os_detection.py | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/tests/test_elf_os_detection.py b/tests/test_elf_os_detection.py index 12e766e8..b89cdbc4 100644 --- a/tests/test_elf_os_detection.py +++ b/tests/test_elf_os_detection.py @@ -98,6 +98,61 @@ FIXTURES = json.loads( "go_source": "linux", "vdso_strings": "linux" } + }, + { + "path": "9486f2c5d514c1f39833b852ab03f4c0297e9e82b456b0dccad1a2d7d15c3385.elf_", + "os": "freebsd", + "algorithms": { + "osabi": "freebsd" + } + }, + { + "path": "a72ac9f1cf6cc01103765f866aae2dd85ea48208fb180c01076ca982684a4032.elf_", + "os": "openbsd", + "algorithms": { + "osabi": "openbsd" + } + }, + { + "path": "5e4263575796c6ea2445505a843e616111e0e540ec49441e3bb3fc99be7d3afb.elf_", + "os": "hpux", + "algorithms": { + "osabi": "hpux" + } + }, + { + "path": "ccb5eefc47d09672c6d62368a55f48a80259b1408b4f3d260b131d40b487f262.elf_", + "os": "linux", + "algorithms": { + "ident_directive": "linux", + "vdso_strings": "linux" + } + }, + { + "path": "c2b2d7cea94179e6c2b6913205e37c45b67ccc0156d8f266548f7f1f95144285.elf_", + "os": "linux", + "algorithms": { + "ph_notes": "linux", + "linker": "linux" + } + }, + { + "path": "fb5cf3df103336ca6b84a5d0f314bdd394ce7465adac3cf1914d390d62884582.elf_", + "os": "freebsd", + "algorithms": { + "osabi": "freebsd", + "go_source": "freebsd" + } + }, + { + "path": "ef0ef9693ac433b768dc4cd260132788c3d95afa12addab711c15de61f3631bf.elf_", + "os": "openbsd", + "algorithms": { + "osabi": "openbsd", + "ph_notes": "openbsd", + "sh_notes": "openbsd", + "go_buildinfo": "openbsd" + } } ] """