components/nvs: run small number of tests as part of CI builds

This commit is contained in:
Ivan Grokhotkov 2016-08-23 12:54:09 +08:00
parent b783e2ffab
commit 3df4130eb7
3 changed files with 13 additions and 4 deletions

View File

@ -1,9 +1,8 @@
stages:
- build
# - test
- test
- deploy
build_template_app:
stage: build
image: espressif/esp32-ci-env
@ -18,6 +17,13 @@ build_template_app:
- cd esp-idf-template
- make all
test_nvs_on_host:
stage: test
image: espressif/esp32-ci-env
script:
- cd components/nvs_flash/test
- make test
push_master_to_github:
stage: deploy
only:

View File

@ -37,7 +37,10 @@ $(OUTPUT_DIR):
test: $(TEST_PROGRAM)
./$(TEST_PROGRAM)
$(COVERAGE_FILES): $(TEST_PROGRAM) test
long-test: $(TEST_PROGRAM)
./$(TEST_PROGRAM) [list],[enumtable],[spi_flash_emu],[nvs],[long]
$(COVERAGE_FILES): $(TEST_PROGRAM) long-test
coverage.info: $(COVERAGE_FILES)
find ../src/ -name "*.gcno" -exec gcov -r -pb {} +

View File

@ -735,7 +735,7 @@ TEST_CASE("monkey test", "[nvs][monkey]")
s_perf << "Monkey test: nErase=" << emu.getEraseOps() << " nWrite=" << emu.getWriteOps() << std::endl;
}
TEST_CASE("test recovery from sudden poweroff", "[nvs][recovery]")
TEST_CASE("test recovery from sudden poweroff", "[.][long][nvs][recovery][monkey]")
{
std::random_device rd;
std::mt19937 gen(rd());