mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
bcb5e72552
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user