Check if a file is an ELF binary. Args: file_path (str): Path to the file. Returns: bool: True if the file is an ELF binary, False otherwise.
(file_path)
| 196 | return packages, special_cases, missing_libraries |
| 197 | |
| 198 | def is_elf_binary(file_path): |
| 199 | """ |
| 200 | Check if a file is an ELF binary. |
| 201 | |
| 202 | Args: |
| 203 | file_path (str): Path to the file. |
| 204 | |
| 205 | Returns: |
| 206 | bool: True if the file is an ELF binary, False otherwise. |
| 207 | """ |
| 208 | file_output = run_command(['file', file_path]) |
| 209 | return 'ELF' in file_output and ('executable' in file_output or 'shared object' in file_output) |
| 210 | |
| 211 | def print_grand_summary(grand_summary, grand_special_cases, grand_missing_libraries): |
| 212 | """ |
no test coverage detected