Jelajahi Sumber

ci: Disable all currently failed target tests for esp32c6

Song Ruo Jing 3 tahun lalu
induk
melakukan
1575b9e43a
28 mengubah file dengan 92 tambahan dan 18 penghapusan
  1. 1 1
      components/app_update/.build-test-rules.yml
  2. 32 0
      components/driver/.build-test-rules.yml
  3. 1 0
      components/driver/test_apps/gptimer/pytest_gptimer.py
  4. 0 1
      components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/pytest_legacy_i2s.py
  5. 0 1
      components/driver/test_apps/legacy_mcpwm_driver/pytest_legacy_mcpwm.py
  6. 1 0
      components/driver/test_apps/legacy_timer_driver/pytest_legacy_timer_driver.py
  7. 0 1
      components/driver/test_apps/mcpwm/pytest_mcpwm.py
  8. 0 1
      components/driver/test_apps/rmt/pytest_rmt.py
  9. 4 0
      components/esp_system/test/test_task_wdt.c
  10. 3 3
      components/freertos/test_apps/freertos/pytest_freertos.py
  11. 2 2
      components/hal/test/test_mpu.c
  12. 7 0
      components/heap/.build-test-rules.yml
  13. 1 0
      components/heap/test_apps/pytest_heap.py
  14. 7 0
      components/mbedtls/.build-test-rules.yml
  15. 1 0
      components/mbedtls/test_apps/pytest_mbedtls_ut.py
  16. 2 0
      components/newlib/test/test_newlib.c
  17. 2 2
      components/sdmmc/test/test_sd.c
  18. 2 0
      components/spi_flash/test/test_cache_disabled.c
  19. 2 0
      components/spi_flash/test/test_read_write.c
  20. 2 0
      components/wpa_supplicant/test/test_crypto.c
  21. 14 0
      examples/peripherals/.build-test-rules.yml
  22. 0 1
      examples/peripherals/i2s/i2s_basic/i2s_pdm/pytest_i2s_pdm.py
  23. 1 2
      examples/peripherals/rmt/stepper_motor/pytest_stepper_motor.py
  24. 1 0
      examples/peripherals/timer_group/legacy_driver/pytest_timer_group.py
  25. 3 0
      examples/system/.build-test-rules.yml
  26. 0 1
      examples/system/select/pytest_select.py
  27. 2 2
      tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c
  28. 1 0
      tools/unit-test-app/unit_test.py

+ 1 - 1
components/app_update/.build-test-rules.yml

@@ -3,5 +3,5 @@
 components/app_update/test_apps:
   disable:
     - if: IDF_TARGET == "esp32c6"
-      temporary: false
+      temporary: true
       reason: target esp32c6 is not supported yet

+ 32 - 0
components/driver/.build-test-rules.yml

@@ -8,6 +8,12 @@ components/driver/test_apps/dac_test_apps/legacy_dac_driver:
   disable:
     - if: SOC_DAC_SUPPORTED != 1
 
+components/driver/test_apps/gptimer:
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
+
 components/driver/test_apps/i2s_test_apps:
   disable:
     - if: SOC_I2S_SUPPORTED != 1
@@ -20,6 +26,14 @@ components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac:
   disable:
     - if: SOC_I2S_SUPPORTS_ADC_DAC != 1
 
+components/driver/test_apps/i2s_test_apps/legacy_i2s_driver:
+  disable:
+    - if: SOC_I2S_SUPPORTED != 1
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
+
 components/driver/test_apps/legacy_adc_driver:
   disable:
     - if: IDF_TARGET == "esp32c6"
@@ -29,6 +43,10 @@ components/driver/test_apps/legacy_adc_driver:
 components/driver/test_apps/legacy_mcpwm_driver:
   disable:
     - if: SOC_MCPWM_SUPPORTED != 1
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
 
 components/driver/test_apps/legacy_pcnt_driver:
   disable:
@@ -45,9 +63,19 @@ components/driver/test_apps/legacy_rtc_temp_driver:
   disable:
     - if: SOC_TEMP_SENSOR_SUPPORTED != 1
 
+components/driver/test_apps/legacy_timer_driver:
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
+
 components/driver/test_apps/mcpwm:
   disable:
     - if: SOC_MCPWM_SUPPORTED != 1
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
 
 components/driver/test_apps/pulse_cnt:
   disable:
@@ -56,6 +84,10 @@ components/driver/test_apps/pulse_cnt:
 components/driver/test_apps/rmt:
   disable:
     - if: SOC_RMT_SUPPORTED != 1
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
 
 components/driver/test_apps/rs485:
   disable_test:

+ 1 - 0
components/driver/test_apps/gptimer/pytest_gptimer.py

@@ -6,6 +6,7 @@ from pytest_embedded import Dut
 
 
 @pytest.mark.supported_targets
+@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='iram_safe test failed')
 @pytest.mark.generic
 @pytest.mark.parametrize(
     'config',

+ 0 - 1
components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/pytest_legacy_i2s.py

@@ -8,7 +8,6 @@ from pytest_embedded import Dut
 @pytest.mark.esp32
 @pytest.mark.esp32s2
 @pytest.mark.esp32c3
-@pytest.mark.esp32c6
 @pytest.mark.esp32s3
 @pytest.mark.generic
 @pytest.mark.parametrize(

+ 0 - 1
components/driver/test_apps/legacy_mcpwm_driver/pytest_legacy_mcpwm.py

@@ -7,7 +7,6 @@ from pytest_embedded import Dut
 
 @pytest.mark.esp32
 @pytest.mark.esp32s3
-@pytest.mark.esp32c6
 @pytest.mark.generic
 @pytest.mark.parametrize(
     'config',

+ 1 - 0
components/driver/test_apps/legacy_timer_driver/pytest_legacy_timer_driver.py

@@ -6,6 +6,7 @@ from pytest_embedded import Dut
 
 
 @pytest.mark.supported_targets
+@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')
 @pytest.mark.generic
 @pytest.mark.parametrize('config', [
     'release',

+ 0 - 1
components/driver/test_apps/mcpwm/pytest_mcpwm.py

@@ -7,7 +7,6 @@ from pytest_embedded import Dut
 
 @pytest.mark.esp32
 @pytest.mark.esp32s3
-@pytest.mark.esp32c6
 @pytest.mark.generic
 @pytest.mark.parametrize(
     'config',

+ 0 - 1
components/driver/test_apps/rmt/pytest_rmt.py

@@ -9,7 +9,6 @@ from pytest_embedded import Dut
 @pytest.mark.esp32s2
 @pytest.mark.esp32s3
 @pytest.mark.esp32c3
-@pytest.mark.esp32c6
 @pytest.mark.generic
 @pytest.mark.parametrize(
     'config',

+ 4 - 0
components/esp_system/test/test_task_wdt.c

@@ -23,6 +23,7 @@ void esp_task_wdt_isr_user_handler(void)
     timeout_flag = true;
 }
 
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 TEST_CASE("Task WDT task timeout", "[task_wdt]")
 {
     timeout_flag = false;
@@ -93,6 +94,7 @@ TEST_CASE("Task WDT can be reconfigured", "[task_wdt]")
     TEST_ASSERT_EQUAL(ESP_OK, esp_task_wdt_delete(NULL));
     TEST_ASSERT_EQUAL(ESP_OK, esp_task_wdt_deinit());
 }
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 
 TEST_CASE("Task WDT task feed", "[task_wdt]")
 {
@@ -113,6 +115,7 @@ TEST_CASE("Task WDT task feed", "[task_wdt]")
     TEST_ASSERT_EQUAL(ESP_OK, esp_task_wdt_deinit());
 }
 
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 TEST_CASE("Task WDT user timeout", "[task_wdt]")
 {
     const char *user_name = "test_user";
@@ -131,6 +134,7 @@ TEST_CASE("Task WDT user timeout", "[task_wdt]")
     TEST_ASSERT_EQUAL(ESP_OK, esp_task_wdt_delete_user(user_handle));
     TEST_ASSERT_EQUAL(ESP_OK, esp_task_wdt_deinit());
 }
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 
 TEST_CASE("Task WDT user feed", "[task_wdt]")
 {

+ 3 - 3
components/freertos/test_apps/freertos/pytest_freertos.py

@@ -5,12 +5,12 @@ import pytest
 from pytest_embedded import Dut
 
 CONFIGS = [
-    pytest.param('default', marks=[pytest.mark.supported_targets]),
-    pytest.param('freertos_options', marks=[pytest.mark.supported_targets]),
+    pytest.param('default', marks=[pytest.mark.supported_targets, pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')]),
+    pytest.param('freertos_options', marks=[pytest.mark.supported_targets, pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')]),
     pytest.param('psram', marks=[pytest.mark.esp32]),
     pytest.param('release', marks=[pytest.mark.supported_targets]),
     pytest.param('single_core', marks=[pytest.mark.esp32]),
-    pytest.param('smp', marks=[pytest.mark.supported_targets]),
+    pytest.param('smp', marks=[pytest.mark.supported_targets, pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')]),
 ]
 
 

+ 2 - 2
components/hal/test/test_mpu.c

@@ -10,7 +10,7 @@
 // LL still not implemented
 
 #if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C3)
-#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2, ESP32C6)
 //IDF-5058
 
 volatile static int RTC_NOINIT_ATTR access = 0;
@@ -49,5 +49,5 @@ TEST_CASE_MULTIPLE_STAGES("Can set illegal access regions", "[soc][mpu]",
         trigger_illegal_access,
         check_access);
 
-#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(...)
 #endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C3)

+ 7 - 0
components/heap/.build-test-rules.yml

@@ -0,0 +1,7 @@
+# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
+
+components/heap/test_apps:
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet

+ 1 - 0
components/heap/test_apps/pytest_heap.py

@@ -7,6 +7,7 @@ from pytest_embedded import Dut
 
 @pytest.mark.generic
 @pytest.mark.supported_targets
+@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')
 @pytest.mark.parametrize(
     'config',
     [

+ 7 - 0
components/mbedtls/.build-test-rules.yml

@@ -0,0 +1,7 @@
+# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
+
+components/mbedtls/test_apps:
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet

+ 1 - 0
components/mbedtls/test_apps/pytest_mbedtls_ut.py

@@ -6,6 +6,7 @@ from pytest_embedded import Dut
 
 
 @pytest.mark.supported_targets
+@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')
 @pytest.mark.generic
 def test_mbedtls(dut: Dut) -> None:
     dut.expect_exact('Press ENTER to see the list of tests')

+ 2 - 0
components/newlib/test/test_newlib.c

@@ -122,6 +122,7 @@ TEST_CASE("test asctime", "[newlib]")
     TEST_ASSERT_EQUAL_STRING(buf, time_str);
 }
 
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 static bool fn_in_rom(void *fn)
 {
     const int fnaddr = (int)fn;
@@ -157,6 +158,7 @@ TEST_CASE("check if ROM or Flash is used for functions", "[newlib]")
     TEST_ASSERT_FALSE(fn_in_rom(strtol));
 #endif // defined(CONFIG_IDF_TARGET_ESP32) && !defined(CONFIG_SPIRAM)
 }
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 
 #ifndef CONFIG_NEWLIB_NANO_FORMAT
 TEST_CASE("test 64bit int formats", "[newlib]")

+ 2 - 2
components/sdmmc/test/test_sd.c

@@ -31,8 +31,8 @@
 
 // Currently no runners for S3
 #define WITH_SD_TEST    (SOC_SDMMC_HOST_SUPPORTED && !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S3))
-// Currently, no runners for S3 and C2
-#define WITH_SDSPI_TEST (!TEMPORARY_DISABLED_FOR_TARGETS(ESP32S3, ESP32C2))
+// Currently, no runners for S3, C2, and C6
+#define WITH_SDSPI_TEST (!TEMPORARY_DISABLED_FOR_TARGETS(ESP32S3, ESP32C2, ESP32C6))
 // Can't test eMMC (slot 0) and PSRAM together
 #define WITH_EMMC_TEST  (SOC_SDMMC_HOST_SUPPORTED && !CONFIG_SPIRAM && !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S3))
 

+ 2 - 0
components/spi_flash/test/test_cache_disabled.c

@@ -19,6 +19,7 @@
 
 #include "esp_private/cache_utils.h"
 
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 static QueueHandle_t result_queue;
 
 static IRAM_ATTR void cache_test_task(void *arg)
@@ -106,3 +107,4 @@ TEST_CASE("invalid access to cache raises panic (APP CPU)", "[spi_flash][reset="
 
 #endif // !CONFIG_FREERTOS_UNICORE
 #endif // !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2)
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)

+ 2 - 0
components/spi_flash/test/test_read_write.c

@@ -144,6 +144,7 @@ TEST_CASE("Test spi_flash_read", "[spi_flash][esp_flash]")
 
 extern void spi_common_set_dummy_output(esp_rom_spiflash_read_mode_t mode);
 extern void spi_dummy_len_fix(uint8_t spi, uint8_t freqdiv);
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 static void IRAM_ATTR fix_rom_func(void)
 {
     uint32_t freqdiv = 0;
@@ -304,6 +305,7 @@ TEST_CASE("Test esp_flash_write", "[spi_flash][esp_flash]")
     ESP_ERROR_CHECK(esp_flash_write(NULL, (char *) 0x40080000, start, 16));
 #endif
 }
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 
 #ifdef CONFIG_SPIRAM
 

+ 2 - 0
components/wpa_supplicant/test/test_crypto.c

@@ -317,6 +317,7 @@ TEST_CASE("Test crypto lib bignum apis", "[wpa_crypto]")
 
 #endif /* bits in mbedtls_mpi_uint */
 
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 /*
  * Create an MPI from embedded constants
  * (assumes len is an exact multiple of sizeof mbedtls_mpi_uint)
@@ -540,4 +541,5 @@ TEST_CASE("Test crypto lib ECC apis", "[wpa_crypto]")
     }
 
 }
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
 #endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)

+ 14 - 0
examples/peripherals/.build-test-rules.yml

@@ -43,6 +43,10 @@ examples/peripherals/i2s/i2s_adc_dac:
 examples/peripherals/i2s/i2s_basic/i2s_pdm:
   disable:
     - if: SOC_I2S_SUPPORTS_PDM != 1
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
 
 examples/peripherals/i2s/i2s_basic/i2s_std:
   disable:
@@ -149,6 +153,10 @@ examples/peripherals/rmt/onewire_ds18b20:
 examples/peripherals/rmt/stepper_motor:
   disable:
     - if: SOC_RMT_SUPPORT_TX_LOOP_AUTO_STOP != 1
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
 
 examples/peripherals/sdio/host:
   enable:
@@ -197,6 +205,12 @@ examples/peripherals/timer_group/gptimer_capture_hc_sr04:
   disable:
     - if: SOC_TIMER_SUPPORT_ETM != 1
 
+examples/peripherals/timer_group/legacy_driver:
+  disable_test:
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
+
 examples/peripherals/touch_sensor:
   disable:
     - if: SOC_TOUCH_SENSOR_SUPPORTED != 1

+ 0 - 1
examples/peripherals/i2s/i2s_basic/i2s_pdm/pytest_i2s_pdm.py

@@ -8,7 +8,6 @@ from pytest_embedded import Dut
 @pytest.mark.esp32
 @pytest.mark.esp32s3
 @pytest.mark.esp32c3
-@pytest.mark.esp32c6
 @pytest.mark.generic
 @pytest.mark.parametrize(
     'config',

+ 1 - 2
examples/peripherals/rmt/stepper_motor/pytest_stepper_motor.py

@@ -6,9 +6,8 @@ from pytest_embedded import Dut
 
 
 @pytest.mark.esp32s3
-@pytest.mark.esp32c6
 @pytest.mark.generic
-def test_ir_nec_example(dut: Dut) -> None:
+def test_stepper_motor_example(dut: Dut) -> None:
     dut.expect_exact('example: Initialize EN + DIR GPIO')
     dut.expect_exact('example: Create RMT TX channel')
     dut.expect_exact('example: Set spin direction')

+ 1 - 0
examples/peripherals/timer_group/legacy_driver/pytest_timer_group.py

@@ -6,6 +6,7 @@ from pytest_embedded import Dut
 
 
 @pytest.mark.supported_targets
+@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='test failed')
 @pytest.mark.generic
 def test_timer_group_example(dut: Dut) -> None:
     dut.expect(r'Init timer with auto-reload', timeout=5)

+ 3 - 0
examples/system/.build-test-rules.yml

@@ -160,6 +160,9 @@ examples/system/select:
     - if: IDF_TARGET in ["esp32s2", "esp32s3"]
       temporary: true
       reason: lack of runners
+    - if: IDF_TARGET == "esp32c6"
+      temporary: true
+      reason: target esp32c6 is not supported yet
 
 examples/system/sysview_tracing:
   disable_test:

+ 0 - 1
examples/system/select/pytest_select.py

@@ -22,7 +22,6 @@ def get_uart_msgs(i: int) -> List[str]:
 
 @pytest.mark.esp32
 @pytest.mark.esp32c3
-@pytest.mark.esp32c6
 @pytest.mark.generic
 def test_examples_select(dut: Dut) -> None:
 

+ 2 - 2
tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c

@@ -48,7 +48,7 @@ typedef struct {
 /* No performance monitor in RISCV for now
  */
 #if !DISABLED_FOR_TARGETS(ESP32C3)
-#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
+#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2, ESP32C6)
 //IDF-5052
 
 static const char* TAG = "test_ccomp_timer";
@@ -178,5 +178,5 @@ TEST_CASE("data cache hit rate sweep", "[test_utils][ccomp_timer]")
     free(flash_mem);
 #endif
 }
-#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
+#endif //!TEMPORARY_DISABLED_FOR_TARGETS(...)
 #endif // !DISABLED_FOR_TARGETS(ESP32C3)

+ 1 - 0
tools/unit-test-app/unit_test.py

@@ -49,6 +49,7 @@ def reset_reason_matches(reported_str, expected_str):
         '_RESET': '_RST',
         'POWERON_RESET': 'POWERON',
         'DEEPSLEEP_RESET': 'DSLEEP',
+        'SW_CPU_RESET': 'SW_CPU',
     }
 
     if expected_str in reported_str: