Skip to content
Open
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: 16 additions & 0 deletions tests/ebuild/test_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ def test_cmake_takes_priority_over_makefile(self, tmp_path):
assert detect_backend(tmp_path) == "cmake"


# ── BackendDispatcher — configure ───────────────────────────


class TestConfigureBackends:
"""Verify configure() handles supported backends correctly."""

@pytest.mark.parametrize("backend", ["cargo", "make", "kbuild"])
@patch("ebuild.build.dispatch.subprocess")
def test_no_configure_backends_are_noop(
self, mock_sub, tmp_path, backend
):
d = BackendDispatcher(tmp_path, tmp_path / "build")
d.configure(backend)
mock_sub.run.assert_not_called()


# ── BackendDispatcher — unknown backend ─────────────────────


Expand Down