Skip to content

Commit

Permalink
Added QUIET flag to tests so CI is readable
Browse files Browse the repository at this point in the history
  • Loading branch information
geky committed Nov 16, 2017
1 parent f9f4f5c commit 78c79ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ script:
-include stdio.h -Werror' make all size

# run tests
- make test
- make test QUIET=1

# run tests with a few different configurations
- CFLAGS="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make test
- CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test
- CFLAGS="-DLFS_BLOCK_COUNT=1023" make test
- CFLAGS="-DLFS_LOOKAHEAD=2048" make test
- CFLAGS="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make test QUIET=1
- CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test QUIET=1
- CFLAGS="-DLFS_BLOCK_COUNT=1023" make test QUIET=1
- CFLAGS="-DLFS_LOOKAHEAD=2048" make test QUIET=1

# self-host with littlefs-fuse for fuzz test
- make -C littlefs-fuse
Expand All @@ -28,7 +28,7 @@ script:
- cp -r $(git ls-tree --name-only HEAD) mount/littlefs
- cd mount/littlefs
- ls
- make -B test_dirs
- make -B test_dirs QUIET=1

before_install:
- fusermount -V
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ size: $(OBJ)
test: test_format test_dirs test_files test_seek test_parallel \
test_alloc test_paths test_orphan test_move test_corrupt
test_%: tests/test_%.sh
ifdef QUIET
./$< | sed '/^[^-=]/d'
else
./$<
endif

-include $(DEP)

Expand Down

0 comments on commit 78c79ec

Please sign in to comment.