Merge branch 'fix/fuzzer_host_test_eth' into 'master'

mdns: removed freeRTOS headers dependencies from fuzzer tests

See merge request espressif/esp-idf!12284
This commit is contained in:
David Čermák 2021-03-11 16:14:22 +00:00
commit bcb5e72552
6 changed files with 19 additions and 19 deletions

View File

@ -105,17 +105,6 @@ test_lwip_dhcps_fuzzer_on_host:
FUZZER_TEST_DIR: components/lwip/test_afl_host
FUZZER_PARAMS: MODE=dhcp_server
test_compile_fuzzers:
extends: .host_test_template
image: $CI_DOCKER_REGISTRY/afl-fuzzer-test
script:
- cd ${IDF_PATH}/components/lwip/test_afl_host
- make MODE=dhcp_server
- make MODE=dhcp_client
- make MODE=dns
- cd ${IDF_PATH}/components/mdns/test_afl_fuzz_host
- make
test_spiffs_on_host:
extends: .host_test_template
script:

View File

@ -89,6 +89,17 @@ check_wifi_lib_md5:
- IDF_TARGET=esp32 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
- IDF_TARGET=esp32s2 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
check_fuzzer_compilation:
extends: .pre_check_base_template
image: $CI_DOCKER_REGISTRY/afl-fuzzer-test
script:
- cd ${IDF_PATH}/components/lwip/test_afl_host
- make MODE=dhcp_server
- make MODE=dhcp_client
- make MODE=dns
- cd ${IDF_PATH}/components/mdns/test_afl_fuzz_host
- make
check_public_headers:
extends:
- .pre_check_base_template

View File

@ -52,6 +52,7 @@
#define portMAX_DELAY 0xFFFFFFFF
#define portTICK_PERIOD_MS 1
#define ESP_LOGW(a,b)
#define ESP_LOGD(a,b)
#define ESP_LOGE(a,b,c)
#define ESP_LOGV(a,b,c,d)
@ -60,6 +61,8 @@
#define __ESP_SYSTEM_H__
#define INC_TASK_H
#define pdMS_TO_TICKS(a) a
#define portTICK_RATE_MS 10
#define xSemaphoreTake(s,d)
#define xTaskDelete(a)
#define vTaskDelete(a) free(a)

View File

@ -2,5 +2,8 @@
#define IRAM_ATTR
#define FLAG_ATTR(TYPE)
#define QUEUE_H
#define __ARCH_CC_H__
#define __XTENSA_API_H__
#define SSIZE_MAX INT_MAX
#define LWIP_HDR_IP6_ADDR_H
#define LWIP_HDR_IP4_ADDR_H

View File

@ -11,13 +11,9 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "esp32_compat.h"
// mock the types to decouple from lwip
typedef void * esp_netif_t;
typedef enum { DHCP_MOCK } esp_netif_dhcp_status_t;
typedef tcpip_adapter_ip_info_t esp_netif_ip_info_t;
typedef ip6_addr_t esp_ip6_addr_t;
#include "esp32_compat.h"
#include "esp_netif_lwip_internal.h"
esp_err_t esp_netif_get_ip_info(esp_netif_t *esp_netif, esp_netif_ip_info_t *ip_info)
{

View File

@ -15,8 +15,6 @@
#include "esp_netif.h"
#include "sys/queue.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "esp_netif_private.h"
#include <string.h>