add ctest to run pytest

This commit is contained in:
Ryo Nakamura
2022-11-01 00:02:34 +09:00
parent 93b02300d5
commit 07b9d8ca55
3 changed files with 32 additions and 28 deletions

9
test/conftest.py Normal file
View File

@@ -0,0 +1,9 @@
import pytest
def pytest_addoption(parser):
parser.addoption("--mscp-path", default = "mscp",
help = "path to mscp binary")
@pytest.fixture
def mscp(request):
return request.config.getoption("--mscp-path")