skyrim-vr-upscale / dev /run_local.py
phanerozoic's picture
source: kernel, HLSL in-game path, OpenVR integration, benches
5506acb verified
Raw
History Blame
632 Bytes
"""Build the extension locally and run the test suite against it, stubbing
kernels.get_kernel so the published-variant tests run natively."""
import os
import sys
import types
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, ROOT)
import load_local
mod = load_local.load(verbose="-v" in sys.argv)
try:
import kernels
except ImportError:
kernels = types.ModuleType("kernels")
sys.modules["kernels"] = kernels
kernels.get_kernel = lambda *a, **k: mod
import pytest
sys.exit(pytest.main([os.path.join(ROOT, "tests"), "-x", "-q", "-p",
"no:cacheprovider"]))