Skip to content
Snippets Groups Projects
Verified Commit 72fe5340 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

external_tools: list `lipo` and `otool`, and a test to make sure they are all listed

parent f4ba3c42
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,7 @@ EXTERNAL_TOOLS = {
"guix": "python-jsbeautifier",
},
"kbxutil": {"debian": "gnupg-utils", "guix": "gnupg"},
"lipo": {},
"llvm-bcanalyzer": {"debian": "llvm", "arch": "llvm", "guix": "llvm"},
"llvm-config": {"debian": "llvm", "arch": "llvm"},
"llvm-dis": {"debian": "llvm", "arch": "llvm", "guix": "llvm"},
......@@ -144,6 +145,7 @@ EXTERNAL_TOOLS = {
"odt2txt": {"debian": "odt2txt", "arch": "odt2txt", "guix": "odt2txt"},
"oggDump": {"debian": "oggvideotools"},
"openssl": {"debian": "openssl", "guix": "openssl"},
"otool": {},
"pgpdump": {"debian": "pgpdump", "arch": "pgpdump", "guix": "pgpdump"},
"pdftotext": {
"debian": "poppler-utils",
......
......@@ -42,3 +42,17 @@ def test_required_tool_not_found():
with pytest.raises(RequiredToolNotFound):
fn()
def test_all_tools_are_listed():
from diffoscope.comparators import ComparatorManager
from diffoscope.external_tools import EXTERNAL_TOOLS
from diffoscope.tools import tool_required
ComparatorManager().reload()
tools = set(tool_required.all)
for x in tools:
if x not in EXTERNAL_TOOLS:
pytest.fail(f"{x} is not present in EXTERNAL_TOOLS")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment