2017-10-19 09:42:55 +00:00
|
|
|
/*
|
|
|
|
Tests for the Wi-Fi
|
|
|
|
*/
|
|
|
|
#include "unity.h"
|
|
|
|
#include "esp_log.h"
|
2019-03-22 06:21:15 +00:00
|
|
|
#include "esp_private/wifi.h"
|
2019-02-20 13:01:27 +00:00
|
|
|
#include "esp_coexist_internal.h"
|
2017-10-19 09:42:55 +00:00
|
|
|
|
2018-05-29 12:25:20 +00:00
|
|
|
static const char* TAG = "test_header_files_md5";
|
2017-10-19 09:42:55 +00:00
|
|
|
|
|
|
|
TEST_CASE("wifi os adapter MD5","[wifi]")
|
|
|
|
{
|
|
|
|
const char *test_wifi_os_funcs_md5 = WIFI_OS_ADAPTER_MD5;
|
|
|
|
|
2019-07-08 03:26:18 +00:00
|
|
|
ESP_LOGI(TAG, "test esp_wifi_os_adapter.h MD5...");
|
2017-10-19 09:42:55 +00:00
|
|
|
TEST_ESP_OK(esp_wifi_internal_osi_funcs_md5_check(test_wifi_os_funcs_md5));
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
|
|
}
|
2018-05-29 12:25:20 +00:00
|
|
|
|
|
|
|
TEST_CASE("wifi crypto types MD5","[wifi]")
|
2018-08-13 08:37:56 +00:00
|
|
|
{
|
2018-05-29 12:25:20 +00:00
|
|
|
const char *test_wifi_crypto_funcs_md5 = WIFI_CRYPTO_MD5;
|
|
|
|
|
2019-07-08 03:26:18 +00:00
|
|
|
ESP_LOGI(TAG, "test esp_wifi_crypto_types.h MD5...");
|
2018-05-29 12:25:20 +00:00
|
|
|
TEST_ESP_OK(esp_wifi_internal_crypto_funcs_md5_check(test_wifi_crypto_funcs_md5));
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
|
|
}
|
2019-02-20 13:01:27 +00:00
|
|
|
|
|
|
|
TEST_CASE("coexist adapter MD5","[coex]")
|
|
|
|
{
|
|
|
|
const char *test_coex_adapter_funcs_md5 = COEX_ADAPTER_MD5;
|
|
|
|
|
2019-07-08 03:26:18 +00:00
|
|
|
ESP_LOGI(TAG, "test esp_coexist_adapter.h MD5...");
|
2019-02-20 13:01:27 +00:00
|
|
|
TEST_ESP_OK(esp_coex_adapter_funcs_md5_check(test_coex_adapter_funcs_md5));
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "test passed...");
|
|
|
|
}
|
2019-07-08 03:26:18 +00:00
|
|
|
|
|
|
|
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...");
|
|
|
|
}
|