Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion spin/tests/test_build_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pathlib import Path

import pytest
from testutil import skip_on_windows, skip_unless_linux, spin, stdout
from testutil import skip_on_windows, skip_unless_linux, skip_unless_macos, spin, stdout

from spin.cmds.util import run

Expand Down Expand Up @@ -143,3 +143,17 @@ def test_gdb():
"--batch",
)
assert "hi" in stdout(p)


@skip_unless_macos
def test_lldb():
p = spin(
"lldb",
"-c",
'import example_pkg; example_pkg.echo("hi")',
"--",
"-o",
"run",
"--batch",
)
assert "hi" in stdout(p)
4 changes: 4 additions & 0 deletions spin/tests/testutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
not sys.platform.startswith("linux"), reason="Skipped; platform not Linux"
)

skip_unless_macos = pytest.mark.skipif(
not sys.platform.startswith("darwin"), reason="Skipped; platform not macOS"
)


def spin(*args, **user_kwargs):
args = (str(el) for el in args)
Expand Down