1. Modfy wifi_country struct 2. Add md5 check esp_wifi_types.h 3. Add md5 check esp_wifi.h
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/*
|
|
Tests for the Wi-Fi
|
|
*/
|
|
#include "unity.h"
|
|
#include "esp_log.h"
|
|
#include "esp_wifi_internal.h"
|
|
|
|
static const char* TAG = "test_header_files_md5";
|
|
|
|
TEST_CASE("wifi os adapter MD5","[wifi]")
|
|
{
|
|
const char *test_wifi_os_funcs_md5 = WIFI_OS_ADAPTER_MD5;
|
|
|
|
ESP_LOGI(TAG, "test eps_wifi_os_adapter.h MD5...");
|
|
TEST_ESP_OK(esp_wifi_internal_osi_funcs_md5_check(test_wifi_os_funcs_md5));
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
}
|
|
|
|
TEST_CASE("wifi crypto types MD5","[wifi]")
|
|
{
|
|
const char *test_wifi_crypto_funcs_md5 = WIFI_CRYPTO_MD5;
|
|
|
|
ESP_LOGI(TAG, "test esp_wifi_crypto_adapter.h MD5...");
|
|
TEST_ESP_OK(esp_wifi_internal_crypto_funcs_md5_check(test_wifi_crypto_funcs_md5));
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
}
|
|
|
|
TEST_CASE("wifi type MD5","[wifi]")
|
|
{
|
|
const char *test_wifi_type_md5 = WIFI_TYPE_MD5;
|
|
|
|
ESP_LOGI(TAG, "test esp_wifi_types.h MD5...");
|
|
TEST_ESP_OK(esp_wifi_internal_wifi_type_md5_check(test_wifi_type_md5));
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
}
|
|
|
|
TEST_CASE("esp wifi MD5","[wifi]")
|
|
{
|
|
const char *test_esp_wifi_md5 = WIFI_ESP_WIFI_MD5;
|
|
|
|
ESP_LOGI(TAG, "test esp_wifi.h MD5...");
|
|
TEST_ESP_OK(esp_wifi_internal_esp_wifi_md5_check(test_esp_wifi_md5));
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
}
|