Files
sunnypilot/openpilot/test_native.py
T
Adeeb Shihadeh 75d590fb90 replace catch2 tests for 20% faster builds (#38408)
* replace catch2 tests

* lil more

* lil more

* rm dep!
2026-07-21 22:20:09 -07:00

23 lines
659 B
Python

import os
import subprocess
from openpilot.common.basedir import BASEDIR
from openpilot.common.parameterized import parameterized
from openpilot.common.test import OpenpilotTestCase
NATIVE_TESTS = (
"openpilot/common/tests/test_swaglog",
"openpilot/selfdrive/pandad/tests/test_pandad_canprotocol",
"openpilot/tools/cabana/tests/test_dbc_core",
)
class TestNative(OpenpilotTestCase):
@parameterized.expand(NATIVE_TESTS)
def test_native(self, executable):
path = os.path.join(BASEDIR, executable)
if not os.path.exists(path):
self.skipTest(f"optional native test was not built: {executable}")
subprocess.run([path], check=True)