-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #617 from david-cermak/feat/mdns_console_host
[mdns]: Add linux console functional tests
- Loading branch information
Showing
21 changed files
with
444 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
idf_component_register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
common_components/linux_compat/freertos/include/freertos/list.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Unlicense OR CC0-1.0 | ||
*/ | ||
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
set(EXTRA_COMPONENT_DIRS "../.." "../../../../common_components/linux_compat") | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
set(COMPONENTS main esp_netif_linux) | ||
if(${IDF_TARGET} STREQUAL "linux") | ||
set(EXTRA_COMPONENT_DIRS "../../../../common_components/linux_compat") | ||
set(COMPONENTS main) | ||
endif() | ||
|
||
project(mdns_host) | ||
|
||
# Enable sanitizers for mdns implementation | ||
# Enable sanitizers only without console (we'd see some leaks on argtable when console exits) | ||
if(NOT CONFIG_TEST_CONSOLE AND CONFIG_IDF_TARGET_LINUX) | ||
idf_component_get_property(mdns mdns COMPONENT_LIB) | ||
target_link_options(${mdns} INTERFACE -fsanitize=address -fsanitize=undefined) | ||
endif() |
10 changes: 8 additions & 2 deletions
10
components/mdns/tests/host_test/components/esp_netif_linux/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
idf_component_register(SRCS esp_netif_linux.c | ||
INCLUDE_DIRS include $ENV{IDF_PATH}/components/esp_netif/include) | ||
idf_build_get_property(idf_target IDF_TARGET) | ||
if(${IDF_TARGET} STREQUAL "linux") | ||
idf_component_register(SRCS esp_netif_linux.c | ||
INCLUDE_DIRS include $ENV{IDF_PATH}/components/esp_netif/include | ||
REQUIRES esp_event) | ||
else() | ||
idf_component_register() | ||
endif() |
Oops, something went wrong.