move to openpilot

pull/26301/head
Shane Smiskol 3 years ago
parent 3df83a7809
commit f41a57b89a
  1. 24
      selfdrive/car/tests/test_models_big_data.py
  2. 2748
      selfdrive/car/tests/test_models_segs.txt

@ -0,0 +1,24 @@
#!/usr/bin/env python
import unittest
from parameterized import parameterized_class
from selfdrive.car.tests.routes import CarTestRoute
from selfdrive.car.tests.test_models import TestCarModelBase
from xx.pipeline.route_lists.make_test_models_seg_list import SEG_LIST_PATH
with open(SEG_LIST_PATH, "r") as f:
seg_list = f.read().splitlines()
platforms, segs = seg_list[0::2], seg_list[1::2]
car_test_routes = []
for platform, seg in list(zip(platforms, segs)):
car_test_routes.append(CarTestRoute(seg[:37], platform[2:], segment=int(seg[39:])))
@parameterized_class(('car_model', 'test_route'), [(test_route.car_model, test_route) for test_route in car_test_routes])
class TestCarModel(TestCarModelBase):
pass
if __name__ == "__main__":
unittest.main()

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save