@@ -878,6 +878,7 @@ $(eval $(call SIM_TEMPLATE,openpilot,OpenPilot,'op ',win32,exe))
878
878
# #############################
879
879
880
880
ALL_UNITTESTS := logfs i2c_vm misc_math sin_lookup coordinate_conversions
881
+ ALL_PYTHON_UNITTESTS := python_ut_test
881
882
882
883
UT_OUT_DIR := $(BUILD_DIR ) /unit_tests
883
884
@@ -897,7 +898,7 @@ all_ut_tap: all_ut_xml
897
898
all_ut_xml : $(addsuffix _xml, $(addprefix ut_, $(ALL_UNITTESTS ) ) )
898
899
899
900
.PHONY : all_ut_run
900
- all_ut_run : $(addsuffix _run, $(addprefix ut_, $(ALL_UNITTESTS ) ) )
901
+ all_ut_run : $(addsuffix _run, $(addprefix ut_, $(ALL_UNITTESTS ) ) ) $( ALL_PYTHON_UNITTESTS )
901
902
902
903
.PHONY : all_ut_gcov
903
904
all_ut_gcov : | $(addsuffix _gcov, $(addprefix ut_, $(ALL_UNITTESTS ) ) )
@@ -954,6 +955,11 @@ endef
954
955
# Expand the unittest rules
955
956
$(foreach ut, $(ALL_UNITTESTS), $(eval $(call UT_TEMPLATE,$(ut))))
956
957
958
+ .PHONY : python_ut_test
959
+ python_ut_test :
960
+ $(V0 ) @echo " PYTHON_UT test.py"
961
+ $(V1 ) $(PYTHON ) python/test.py
962
+
957
963
# Disable parallel make when the all_ut_run target is requested otherwise the TAP
958
964
# output is interleaved with the rest of the make output.
959
965
ifneq ($(strip $(filter all_ut_run,$(MAKECMDGOALS ) ) ) ,)
0 commit comments