nvs: run all test by default, exclude long tests by tag

Reduces the chance of new tests being skipped in CI
This commit is contained in:
Ivan Grokhotkov 2018-04-16 11:51:43 +08:00
parent f8cb95d0b8
commit 6f504deed0
2 changed files with 5 additions and 5 deletions

View file

@ -37,10 +37,10 @@ $(OUTPUT_DIR):
mkdir -p $(OUTPUT_DIR)
test: $(TEST_PROGRAM)
./$(TEST_PROGRAM)
./$(TEST_PROGRAM) -d yes exclude:[long]
long-test: $(TEST_PROGRAM)
./$(TEST_PROGRAM) [list],[enumtable],[spi_flash_emu],[nvs],[long]
./$(TEST_PROGRAM) -d yes
$(COVERAGE_FILES): $(TEST_PROGRAM) long-test
@ -58,4 +58,4 @@ clean:
rm -rf coverage_report/
rm -f coverage.info
.PHONY: clean all test
.PHONY: clean all test long-test

View file

@ -720,7 +720,7 @@ TEST_CASE("can init storage from flash with random contents", "[nvs]")
}
TEST_CASE("nvs api tests, starting with random data in flash", "[nvs][.][long]")
TEST_CASE("nvs api tests, starting with random data in flash", "[nvs][long]")
{
const size_t testIters = 3000;
int lastPercent = -1;
@ -984,7 +984,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", "[.][long][nvs][recovery][monkey]")
TEST_CASE("test recovery from sudden poweroff", "[long][nvs][recovery][monkey]")
{
std::random_device rd;
std::mt19937 gen(rd());