Prechádzať zdrojové kódy

Merge branch 'bugfix/resume_esp32s2_wifi_unit_test' into 'master'

Bugfix/resume esp32s2 wifi unit test

See merge request espressif/esp-idf!9079
Jiang Jiang Jian 5 rokov pred
rodič
commit
1ba7dc22cb

+ 3 - 4
components/esp_wifi/test/test_phy_rtc.c

@@ -26,9 +26,9 @@ extern void IRAM_ATTR spi_flash_enable_interrupts_caches_and_other_cpu(void);
 #ifdef SOC_BT_SUPPORTED
 #ifdef SOC_BT_SUPPORTED
 extern void bt_bb_init_cmplx_reg(void);
 extern void bt_bb_init_cmplx_reg(void);
 extern void bt_track_pll_cap(void);
 extern void bt_track_pll_cap(void);
-#endif
 extern void force_wifi_mode(int);
 extern void force_wifi_mode(int);
 extern void unforce_wifi_mode(void);
 extern void unforce_wifi_mode(void);
+#endif
 
 
 static const char* TAG = "test_phy_rtc";
 static const char* TAG = "test_phy_rtc";
 
 
@@ -59,6 +59,7 @@ static IRAM_ATTR void test_phy_rtc_cache_task(void *arg)
 {
 {
     test_phy_rtc_init();
     test_phy_rtc_init();
 
 
+#ifdef SOC_BT_SUPPORTED
     for (int i = 0; i < 2; i++) {
     for (int i = 0; i < 2; i++) {
         ESP_LOGI(TAG, "Test force_wifi_mode(%d)...", i);
         ESP_LOGI(TAG, "Test force_wifi_mode(%d)...", i);
         spi_flash_disable_interrupts_caches_and_other_cpu();
         spi_flash_disable_interrupts_caches_and_other_cpu();
@@ -71,7 +72,6 @@ static IRAM_ATTR void test_phy_rtc_cache_task(void *arg)
         spi_flash_enable_interrupts_caches_and_other_cpu();
         spi_flash_enable_interrupts_caches_and_other_cpu();
     }
     }
 
 
-#ifdef SOC_BT_SUPPORTED
     ESP_LOGI(TAG, "Test bt_bb_init_cmplx_reg()...");
     ESP_LOGI(TAG, "Test bt_bb_init_cmplx_reg()...");
     spi_flash_disable_interrupts_caches_and_other_cpu();
     spi_flash_disable_interrupts_caches_and_other_cpu();
     bt_bb_init_cmplx_reg();
     bt_bb_init_cmplx_reg();
@@ -99,5 +99,4 @@ TEST_CASE("Test PHY/RTC functions called when cache is disabled", "[phy_rtc][cac
 
 
     vSemaphoreDelete(semphr_done);
     vSemaphoreDelete(semphr_done);
 }
 }
-
-#endif
+#endif

+ 0 - 3
components/esp_wifi/test/test_wifi.c

@@ -23,7 +23,6 @@
 
 
 #define EVENT_HANDLER_FLAG_DO_NOT_AUTO_RECONNECT 0x00000001
 #define EVENT_HANDLER_FLAG_DO_NOT_AUTO_RECONNECT 0x00000001
 
 
-#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2)
 static const char* TAG = "test_wifi";
 static const char* TAG = "test_wifi";
 static uint32_t wifi_event_handler_flag;
 static uint32_t wifi_event_handler_flag;
 
 
@@ -341,5 +340,3 @@ static void test_wifi_connection_softap(void)
 }
 }
 
 
 TEST_CASE_MULTIPLE_DEVICES("test wifi retain connection for 60s", "[wifi][test_env=UT_T2_1][timeout=90]", test_wifi_connection_sta, test_wifi_connection_softap);
 TEST_CASE_MULTIPLE_DEVICES("test wifi retain connection for 60s", "[wifi][test_env=UT_T2_1][timeout=90]", test_wifi_connection_sta, test_wifi_connection_softap);
-
-#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2)

+ 6 - 0
tools/ci/config/target-test.yml

@@ -561,6 +561,12 @@ UT_036:
     - UT_T1_PSRAMV0
     - UT_T1_PSRAMV0
     - psram
     - psram
 
 
+UT_037:
+  extends: .unit_test_template
+  tags:
+    - ESP32S2_IDF
+    - UT_T2_1
+
 # ToDo: re-enable this job when ESP32-S2 LEDC runner installed
 # ToDo: re-enable this job when ESP32-S2 LEDC runner installed
 # UT_037:
 # UT_037:
 #   extends: .unit_test_template
 #   extends: .unit_test_template