From e7449782d0031434b4ac1a4898314c7f25ff1d23 Mon Sep 17 00:00:00 2001 From: gaoxu Date: Mon, 5 May 2025 17:44:53 +0800 Subject: [PATCH] ci(cam): test csi/dvp/isp_dvp and test iram_safe --- .../esp_driver_cam/test_apps/csi/sdkconfig.ci.cache_safe | 8 ++++++++ components/esp_driver_cam/test_apps/dvp/pytest_dvp.py | 5 +++++ .../esp_driver_cam/test_apps/dvp/sdkconfig.ci.cache_safe | 8 ++++++++ .../esp_driver_cam/test_apps/dvp/sdkconfig.ci.pm_enable | 8 ++++++++ .../esp_driver_cam/test_apps/dvp/sdkconfig.ci.release | 3 +++ .../esp_driver_cam/test_apps/isp_dvp/pytest_isp_dvp.py | 5 +++++ .../test_apps/isp_dvp/sdkconfig.ci.cache_safe | 8 ++++++++ .../test_apps/isp_dvp/sdkconfig.ci.pm_enable | 8 ++++++++ .../esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.release | 3 +++ 9 files changed, 56 insertions(+) create mode 100644 components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.pm_enable create mode 100644 components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.release create mode 100644 components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.pm_enable create mode 100644 components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.release diff --git a/components/esp_driver_cam/test_apps/csi/sdkconfig.ci.cache_safe b/components/esp_driver_cam/test_apps/csi/sdkconfig.ci.cache_safe index 6a7ded982f..edd91f201c 100644 --- a/components/esp_driver_cam/test_apps/csi/sdkconfig.ci.cache_safe +++ b/components/esp_driver_cam/test_apps/csi/sdkconfig.ci.cache_safe @@ -1 +1,9 @@ +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +# silent the error check, as the error string are stored in rodata, causing RTL check failure +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y +CONFIG_HAL_ASSERTION_SILENT=y + CONFIG_CAM_CTLR_MIPI_CSI_ISR_CACHE_SAFE=y +CONFIG_CAM_CTLR_ISP_DVP_ISR_CACHE_SAFE=y +CONFIG_CAM_CTLR_DVP_CAM_ISR_CACHE_SAFE=y diff --git a/components/esp_driver_cam/test_apps/dvp/pytest_dvp.py b/components/esp_driver_cam/test_apps/dvp/pytest_dvp.py index 2c6f832922..b7b0f347e1 100644 --- a/components/esp_driver_cam/test_apps/dvp/pytest_dvp.py +++ b/components/esp_driver_cam/test_apps/dvp/pytest_dvp.py @@ -6,6 +6,11 @@ from pytest_embedded_idf.utils import idf_parametrize @pytest.mark.generic +@pytest.mark.parametrize( + 'config', + ['cache_safe', 'release', 'pm_enable'], + indirect=True, +) @idf_parametrize('target', ['esp32p4'], indirect=['target']) def test_dvp(dut: Dut) -> None: dut.run_all_single_board_cases() diff --git a/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.cache_safe b/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.cache_safe index 6a7ded982f..edd91f201c 100644 --- a/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.cache_safe +++ b/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.cache_safe @@ -1 +1,9 @@ +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +# silent the error check, as the error string are stored in rodata, causing RTL check failure +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y +CONFIG_HAL_ASSERTION_SILENT=y + CONFIG_CAM_CTLR_MIPI_CSI_ISR_CACHE_SAFE=y +CONFIG_CAM_CTLR_ISP_DVP_ISR_CACHE_SAFE=y +CONFIG_CAM_CTLR_DVP_CAM_ISR_CACHE_SAFE=y diff --git a/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.pm_enable b/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.pm_enable new file mode 100644 index 0000000000..918a1c0ef1 --- /dev/null +++ b/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.pm_enable @@ -0,0 +1,8 @@ +# silent the error check, as the error string are stored in rodata, causing RTL check failure +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y +CONFIG_HAL_ASSERTION_SILENT=y + +CONFIG_PM_ENABLE=y +CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_PM_DFS_INIT_AUTO=y diff --git a/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.release b/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.release new file mode 100644 index 0000000000..3cff15d49e --- /dev/null +++ b/components/esp_driver_cam/test_apps/dvp/sdkconfig.ci.release @@ -0,0 +1,3 @@ +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y diff --git a/components/esp_driver_cam/test_apps/isp_dvp/pytest_isp_dvp.py b/components/esp_driver_cam/test_apps/isp_dvp/pytest_isp_dvp.py index 211e25d4de..fd8503a04f 100644 --- a/components/esp_driver_cam/test_apps/isp_dvp/pytest_isp_dvp.py +++ b/components/esp_driver_cam/test_apps/isp_dvp/pytest_isp_dvp.py @@ -6,6 +6,11 @@ from pytest_embedded_idf.utils import idf_parametrize @pytest.mark.generic +@pytest.mark.parametrize( + 'config', + ['cache_safe', 'release', 'pm_enable'], + indirect=True, +) @idf_parametrize('target', ['esp32p4'], indirect=['target']) def test_isp_dvp(dut: Dut) -> None: dut.run_all_single_board_cases() diff --git a/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.cache_safe b/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.cache_safe index 6a7ded982f..edd91f201c 100644 --- a/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.cache_safe +++ b/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.cache_safe @@ -1 +1,9 @@ +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +# silent the error check, as the error string are stored in rodata, causing RTL check failure +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y +CONFIG_HAL_ASSERTION_SILENT=y + CONFIG_CAM_CTLR_MIPI_CSI_ISR_CACHE_SAFE=y +CONFIG_CAM_CTLR_ISP_DVP_ISR_CACHE_SAFE=y +CONFIG_CAM_CTLR_DVP_CAM_ISR_CACHE_SAFE=y diff --git a/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.pm_enable b/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.pm_enable new file mode 100644 index 0000000000..918a1c0ef1 --- /dev/null +++ b/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.pm_enable @@ -0,0 +1,8 @@ +# silent the error check, as the error string are stored in rodata, causing RTL check failure +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y +CONFIG_HAL_ASSERTION_SILENT=y + +CONFIG_PM_ENABLE=y +CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_PM_DFS_INIT_AUTO=y diff --git a/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.release b/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.release new file mode 100644 index 0000000000..3cff15d49e --- /dev/null +++ b/components/esp_driver_cam/test_apps/isp_dvp/sdkconfig.ci.release @@ -0,0 +1,3 @@ +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y