File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1+ import os
2+ from importlib .resources import files
13from pathlib import Path
24
35import pytest
46
7+ import haddock
58from haddock .libs .libutil import get_cns_executable
69
710from . import is_linux_x86_64 , is_not_linux_x86_64
@@ -40,6 +43,13 @@ def test_non_linux_looks_for_linux_variant():
4043 assert cns_exec_linux .name == f"{ cns_exec .name } _linux"
4144
4245
46+ def test_cns_binary_is_executable ():
47+ """Make sure the binaries are executable."""
48+ cns_exec_dir = Path (files (haddock ).joinpath ("cns/bin" )) # type: ignore
49+ for f in cns_exec_dir .glob ("*" ):
50+ assert os .access (f , os .X_OK )
51+
52+
4353def test_returns_tuple_of_paths ():
4454 """Test that function returns a tuple of two Path objects."""
4555 result = get_cns_executable ()
You can’t perform that action at this time.
0 commit comments