mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wear_levelling: run host side test in CI
This commit is contained in:
parent
8f76fe1d7f
commit
3a39475d20
@ -151,6 +151,18 @@ test_nvs_on_host:
|
|||||||
- cd components/nvs_flash/test_nvs_host
|
- cd components/nvs_flash/test_nvs_host
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
|
test_wl_on_host:
|
||||||
|
stage: test
|
||||||
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
||||||
|
tags:
|
||||||
|
- wl_host_test
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- components/wear_levelling/test_wl_host/coverage_report.zip
|
||||||
|
script:
|
||||||
|
- cd components/wear_levelling/test_wl_host
|
||||||
|
- make test
|
||||||
|
|
||||||
test_build_system:
|
test_build_system:
|
||||||
stage: test
|
stage: test
|
||||||
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
||||||
|
@ -20,16 +20,19 @@ INCLUDE_FLAGS = $(addprefix -I,\
|
|||||||
../include \
|
../include \
|
||||||
../private_include \
|
../private_include \
|
||||||
../../esp32/include \
|
../../esp32/include \
|
||||||
|
../../soc/esp32/include \
|
||||||
../../log/include \
|
../../log/include \
|
||||||
../../spi_flash/include \
|
../../spi_flash/include \
|
||||||
../../nvs_flash/test_nvs_host \
|
../../nvs_flash/test_nvs_host \
|
||||||
../../../tools/catch \
|
../../../tools/catch \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
GCOV ?= gcov
|
||||||
|
|
||||||
CPPFLAGS += $(INCLUDE_FLAGS) -D CONFIG_LOG_DEFAULT_LEVEL
|
CPPFLAGS += $(INCLUDE_FLAGS) -D CONFIG_LOG_DEFAULT_LEVEL
|
||||||
CFLAGS += -fprofile-arcs -ftest-coverage
|
CFLAGS += -fprofile-arcs -ftest-coverage
|
||||||
CXXFLAGS += -std=c++11 -Wall -Werror -fprofile-arcs -ftest-coverage
|
CXXFLAGS += -std=c++11 -Wall -Werror -fprofile-arcs -ftest-coverage
|
||||||
LDFLAGS += -lstdc++ -Wall -fprofile-arcs -ftest-coverage
|
LDFLAGS += -lstdc++ -fprofile-arcs -ftest-coverage
|
||||||
|
|
||||||
OBJ_FILES = $(SOURCE_FILES:.cpp=.o)
|
OBJ_FILES = $(SOURCE_FILES:.cpp=.o)
|
||||||
|
|
||||||
@ -38,7 +41,7 @@ COVERAGE_FILES = $(OBJ_FILES:.o=.gc*)
|
|||||||
$(OBJ_FILES): %.o: %.cpp
|
$(OBJ_FILES): %.o: %.cpp
|
||||||
|
|
||||||
$(TEST_PROGRAM): $(OBJ_FILES)
|
$(TEST_PROGRAM): $(OBJ_FILES)
|
||||||
$(LD) $(LDFLAGS) -o $(TEST_PROGRAM) $(OBJ_FILES)
|
g++ $(LDFLAGS) -o $(TEST_PROGRAM) $(OBJ_FILES)
|
||||||
|
|
||||||
$(OUTPUT_DIR):
|
$(OUTPUT_DIR):
|
||||||
mkdir -p $(OUTPUT_DIR)
|
mkdir -p $(OUTPUT_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user