Skip to content

Commit 236e9e9

Browse files
committed
[FFI] Temp skip load_inline tests nonlinux (apache#18278)
This PR temp skip load_inline tests on nonlinux before we enhance and improve for other platforms.
1 parent 40f4d9d commit 236e9e9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ GitHub = "https://github.com/apache/tvm/ffi"
4242

4343
[project.optional-dependencies]
4444
# setup tools is needed by torch jit for best perf
45-
torch = ["torch", "setuptools"]
46-
test = ["pytest", "numpy", "torch"]
45+
torch = ["torch", "setuptools", "ninja"]
46+
cpp = ["ninja"]
47+
test = ["pytest", "numpy", "torch", "ninja"]
4748

4849
[project.scripts]
4950
tvm-ffi-config = "tvm_ffi.config:__main__"

tests/python/test_load_inline.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import pytest
1919
import numpy
20+
import sys
2021

2122
try:
2223
import torch
@@ -27,6 +28,7 @@
2728
from tvm_ffi.module import Module
2829

2930

31+
@pytest.mark.xfail(not sys.platform.startswith("linux"), reason="need to support non-linux")
3032
def test_load_inline_cpp():
3133
mod: Module = tvm_ffi.cpp.load_inline(
3234
name="hello",
@@ -53,6 +55,7 @@ def test_load_inline_cpp():
5355
numpy.testing.assert_equal(x + 1, y)
5456

5557

58+
@pytest.mark.xfail(not sys.platform.startswith("linux"), reason="need to support non-linux")
5659
def test_load_inline_cpp_with_docstrings():
5760
mod: Module = tvm_ffi.cpp.load_inline(
5861
name="hello",
@@ -79,6 +82,7 @@ def test_load_inline_cpp_with_docstrings():
7982
numpy.testing.assert_equal(x + 1, y)
8083

8184

85+
@pytest.mark.xfail(not sys.platform.startswith("linux"), reason="need to support non-linux")
8286
def test_load_inline_cpp_multiple_sources():
8387
mod: Module = tvm_ffi.cpp.load_inline(
8488
name="hello",
@@ -121,6 +125,7 @@ def test_load_inline_cpp_multiple_sources():
121125
numpy.testing.assert_equal(x + 1, y)
122126

123127

128+
@pytest.mark.xfail(not sys.platform.startswith("linux"), reason="need to support non-linux")
124129
def test_load_inline_cpp_build_dir():
125130
mod: Module = tvm_ffi.cpp.load_inline(
126131
name="hello",

0 commit comments

Comments
 (0)