Skip to content

Commit

Permalink
Rename test helpers to be compatible with rentest
Browse files Browse the repository at this point in the history
  • Loading branch information
ccummingsNV committed Nov 20, 2024
1 parent 0cec6db commit 164778c
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 26 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sgl/device/tests/slang/test_atomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))
import helpers
import sglhelpers as helpers

ELEMENT_COUNT = 1024

Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/slang/test_cast_float16.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))
import helpers
import sglhelpers as helpers

ELEMENT_COUNT = 1024

Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/slang/test_float16.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))
import helpers
import sglhelpers as helpers

ELEMENT_COUNT = 1024

Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/slang/test_float64.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))
import helpers
import sglhelpers as helpers

ELEMENT_COUNT = 1024

Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/slang/test_nested_structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/slang/test_uint64.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))
import helpers
import sglhelpers as helpers

ELEMENT_COUNT = 1024

Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
4 changes: 2 additions & 2 deletions src/sgl/device/tests/test_buffer_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
from helpers import test_id # type: ignore (pytest fixture)
import sglhelpers as helpers
from sglhelpers import test_id # type: ignore (pytest fixture)

TESTS = [
("f_bool", "bool", "true", True),
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_declrefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from deepdiff import DeepDiff

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers

DEVICES = helpers.DEFAULT_DEVICE_TYPES

Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_lifetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
4 changes: 2 additions & 2 deletions src/sgl/device/tests/test_link_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
from helpers import test_id # type: ignore (pytest fixture)
import sglhelpers as helpers
from sglhelpers import test_id # type: ignore (pytest fixture)


# Before running more in depth link time tests below, this test simply
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_memory_heap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


class PipelineTestContext:
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
4 changes: 2 additions & 2 deletions src/sgl/device/tests/test_reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
from helpers import test_id # type: ignore (pytest fixture)
import sglhelpers as helpers
from sglhelpers import test_id # type: ignore (pytest fixture)

# TODO: Due to a bug in "Apple clang", the exception binding in nanobind
# raises RuntimeError instead of SlangCompileError
Expand Down
4 changes: 2 additions & 2 deletions src/sgl/device/tests/test_shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
from helpers import test_id # type: ignore (pytest fixture)
import sglhelpers as helpers
from sglhelpers import test_id # type: ignore (pytest fixture)

# TODO: Due to a bug in "Apple clang", the exception binding in nanobind
# raises RuntimeError instead of SlangCompileError
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_shader_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers

INT_MIN = -2147483648
INT_MAX = 2147483647
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_texture_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


# Generate random data for a texture with a given array size and mip count.
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_torch_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_type_conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent))
import helpers
import sglhelpers as helpers


@pytest.mark.parametrize("device_type", helpers.DEFAULT_DEVICE_TYPES)
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/utils/tests/test_texture_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent.parent / "device/tests"))
import helpers
import sglhelpers as helpers

PixelFormat = Bitmap.PixelFormat
ComponentType = Struct.Type
Expand Down

0 comments on commit 164778c

Please sign in to comment.