Skip to content

Commit d969eaf

Browse files
committed
add test
1 parent 8d6295b commit d969eaf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

integration_tests/test_libutil.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import os
2+
from importlib.resources import files
13
from pathlib import Path
24

35
import pytest
46

7+
import haddock
58
from haddock.libs.libutil import get_cns_executable
69

710
from . 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+
4353
def test_returns_tuple_of_paths():
4454
"""Test that function returns a tuple of two Path objects."""
4555
result = get_cns_executable()

0 commit comments

Comments
 (0)