From 32bc9f94c07561504d78b5c1da8be6001f14e727 Mon Sep 17 00:00:00 2001 From: XiaXiaotian Date: Tue, 26 Jun 2018 14:56:58 +0800 Subject: [PATCH] check WiFi library git commit id in unit test --- components/esp32/include/esp_wifi_internal.h | 11 +++++++++++ components/esp32/lib | 2 +- components/esp32/test/test_wifi_lib_git_commit.c | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 components/esp32/test/test_wifi_lib_git_commit.c diff --git a/components/esp32/include/esp_wifi_internal.h b/components/esp32/include/esp_wifi_internal.h index 7ddfd6944..5cdd6d9d6 100644 --- a/components/esp32/include/esp_wifi_internal.h +++ b/components/esp32/include/esp_wifi_internal.h @@ -149,6 +149,17 @@ esp_err_t esp_wifi_internal_osi_funcs_md5_check(const char *md5); */ esp_err_t esp_wifi_internal_crypto_funcs_md5_check(const char *md5); +/** + * @brief Check the git commit id of WiFi library + * + * @attention 1. It is used for internal CI WiFi library check + * + * @return + * - ESP_OK : succeed + * - ESP_FAIL : fail + */ +esp_err_t esp_wifi_internal_git_commit_id_check(void); + /** * @brief Allocate a chunk of memory for WiFi driver * diff --git a/components/esp32/lib b/components/esp32/lib index a1f6b6716..5f68b74f2 160000 --- a/components/esp32/lib +++ b/components/esp32/lib @@ -1 +1 @@ -Subproject commit a1f6b6716ece17153596e57e0294366bb8a217ba +Subproject commit 5f68b74f207e6ec0d078a2d8739aed2e72ae9d7b diff --git a/components/esp32/test/test_wifi_lib_git_commit.c b/components/esp32/test/test_wifi_lib_git_commit.c new file mode 100644 index 000000000..8b5633f9b --- /dev/null +++ b/components/esp32/test/test_wifi_lib_git_commit.c @@ -0,0 +1,14 @@ +/* + Tests for the Wi-Fi +*/ +#include "unity.h" +#include "esp_log.h" +#include "esp_wifi_internal.h" + +static const char* TAG = "test_wifi_lib_git_commit_id"; + +TEST_CASE("wifi lib git commit id","[wifi]") +{ + TEST_ESP_OK( esp_wifi_internal_git_commit_id_check() ); +} +