mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-28 05:23:46 +08:00
56b9025e3d
version: sunnypilot v2026.003.000 (staging) date: 2026-09-01T06:00:28 master commit: 51987a62d07c44cc9e14b4d85dcb445edecd17d3
23 lines
659 B
Python
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)
|