test: fix several test build error

This commit is contained in:
morris 2020-11-06 17:19:51 +08:00
parent aea901f014
commit b7ecccd901
4 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,8 @@
#if !DISABLED_FOR_TARGETS(ESP8266, ESP32, ESP32S3) // This testcase for ESP32S2 #if !DISABLED_FOR_TARGETS(ESP8266, ESP32, ESP32S3) // This testcase for ESP32S2
#include "soc/system_reg.h" #include "soc/system_reg.h"
#include "soc/spi_reg.h"
#include "soc/soc.h"
#include "soc/lldesc.h" #include "soc/lldesc.h"
#include "test/test_adc_dac_dma.h" #include "test/test_adc_dac_dma.h"

View File

@ -32,9 +32,11 @@
#include "esp_log.h" #include "esp_log.h"
#include "nvs_flash.h" #include "nvs_flash.h"
#include "test_utils.h" #include "test_utils.h"
#include "soc/soc.h"
#include "soc/spi_reg.h" #include "soc/spi_reg.h"
#include "soc/adc_periph.h" #include "soc/adc_periph.h"
#include "soc/dac_periph.h" #include "soc/dac_periph.h"
#include "soc/spi_periph.h"
#include "test/test_common_adc.h" #include "test/test_common_adc.h"
#if !DISABLED_FOR_TARGETS(ESP8266, ESP32, ESP32S3) // This testcase for ESP32S2 #if !DISABLED_FOR_TARGETS(ESP8266, ESP32, ESP32S3) // This testcase for ESP32S2

View File

@ -27,6 +27,7 @@
#define _ESP_TASK_H_ #define _ESP_TASK_H_
#include "sdkconfig.h" #include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOSConfig.h"
#define ESP_TASK_PRIO_MAX (configMAX_PRIORITIES) #define ESP_TASK_PRIO_MAX (configMAX_PRIORITIES)

View File

@ -67,7 +67,7 @@ all: $(TEST_NAME)
mdns.o: ../mdns.c mdns.o: ../mdns.c
@echo "[CC] $<" @echo "[CC] $<"
@$(CC) $(CFLAGS) --include mdns_mock.h $(MDNS_C_DEPENDENCY_INJECTION) -c $< -o $@ @$(CC) $(CFLAGS) -include mdns_mock.h $(MDNS_C_DEPENDENCY_INJECTION) -c $< -o $@
$(TEST_NAME): $(OBJECTS) $(TEST_NAME): $(OBJECTS)
@echo "[LD] $@" @echo "[LD] $@"