wear_levelling: run host side test in CI

This commit is contained in:
Ivan Grokhotkov 2017-04-10 21:41:19 +08:00
parent 8f76fe1d7f
commit 3a39475d20
2 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -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)