feat: add profiled DualSense PCM haptics experiment
This commit is contained in:
parent
3b1366067b
commit
0c626fb3b3
29 changed files with 4469 additions and 5 deletions
|
|
@ -2,9 +2,14 @@ import shutil
|
|||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
def test_usb_configuration_management_native(tmp_path: Path) -> None:
|
||||
|
||||
@pytest.mark.parametrize("experiment_enabled", [False, True])
|
||||
def test_usb_configuration_management_native(
|
||||
tmp_path: Path, experiment_enabled: bool,
|
||||
) -> None:
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
compiler = shutil.which("c++") or shutil.which("g++")
|
||||
assert compiler is not None, "a host C++ compiler is required"
|
||||
|
|
@ -18,6 +23,7 @@ def test_usb_configuration_management_native(tmp_path: Path) -> None:
|
|||
"-Wextra",
|
||||
"-Werror",
|
||||
"-pedantic",
|
||||
*(["-DSWITCH_PICO_HAPTICS_EXPERIMENT=1"] if experiment_enabled else []),
|
||||
f"-I{root / 'tests' / 'usb_management_native_stubs'}",
|
||||
f"-I{root / 'src' / 'firmware'}",
|
||||
str(root / "tests" / "usb_configuration_management_test.cpp"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue