Skip to content

Commit dfcbf0a

Browse files
committed
Travis: remove littlefs generic tests
They do not add any value as littlefs library contains own tests, we do not need to duplicate them in Mbed OS. We test integration with our libraries.
1 parent 5057bfd commit dfcbf0a

File tree

1 file changed

+1
-59
lines changed

1 file changed

+1
-59
lines changed

.travis.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -264,65 +264,7 @@ matrix:
264264

265265
### Extended Tests ###
266266
- &extended-vm
267-
stage: "Extended"
268-
name: "littlefs"
269-
env: NAME=littlefs LITTLEFS=storage/filesystem/littlefs
270-
language: python
271-
python: 3.7
272-
install:
273-
# Install gcc
274-
- source_pkg gcc
275-
- arm-none-eabi-gcc --version
276-
# Install python modules
277-
- python -m pip install --upgrade pip==18.1
278-
- python -m pip install --upgrade setuptools==40.4.3
279-
- pip install -r requirements.txt
280-
- pip list --verbose
281-
# Install test-specific packages
282-
- source_pkg fuse
283-
- source_pkg libfuse-dev
284-
- fusermount --version
285-
before_script:
286-
# Setup and patch littlefs-fuse
287-
- git clone https://github.com/armmbed/littlefs-fuse littlefs_fuse
288-
- git -C littlefs_fuse checkout 3f1ed6e37799e49e3710830dc6abb926d5503cf2
289-
- echo '*' > littlefs_fuse/.mbedignore
290-
- rm -rf littlefs_fuse/littlefs/*
291-
- cp -r $(git ls-tree --name-only HEAD ${LITTLEFS}/littlefs/) littlefs_fuse/littlefs
292-
# Create file-backed disk
293-
- mkdir MOUNT
294-
- sudo chmod a+rw /dev/loop0
295-
- dd if=/dev/zero bs=512 count=2048 of=DISK
296-
- losetup /dev/loop0 DISK
297-
- CFLAGS="-Werror -Wno-format"
298-
script:
299-
# Run local littlefs tests
300-
- make -C${LITTLEFS}/littlefs test QUIET=1
301-
# Run local littlefs tests with set of variations
302-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
303-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
304-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
305-
- make -C${LITTLEFS}/littlefs test QUIET=1 CFLAGS+="-DLFS_BLOCK_COUNT=1023 -DLFS_LOOKAHEAD=2048"
306-
- make -C${LITTLEFS}/littlefs clean test QUIET=1 CFLAGS+="-DLFS_NO_INTRINSICS"
307-
# Self-hosting littlefs fuzz test with littlefs-fuse
308-
- make -Clittlefs_fuse
309-
- littlefs_fuse/lfs --format /dev/loop0
310-
- littlefs_fuse/lfs /dev/loop0 MOUNT
311-
- ls MOUNT
312-
- mkdir MOUNT/littlefs
313-
- cp -r $(git ls-tree --name-only HEAD ${LITTLEFS}/littlefs/) MOUNT/littlefs
314-
- ls MOUNT/littlefs
315-
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs test_files QUIET=1
316-
# Compile and find the code size with smallest configuration
317-
- cd ${TRAVIS_BUILD_DIR}/${LITTLEFS}/littlefs
318-
- make clean size
319-
CC='arm-none-eabi-gcc -mthumb'
320-
OBJ="$(ls lfs*.o | tr '\n' ' ')"
321-
CFLAGS+="-DLFS_NO_ASSERT -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR"
322-
| tee sizes
323-
- ccache -s
324-
- <<: extended-pinvalidate
325-
stage: "Extended"
267+
stage: "Extended"
326268
name: "pinvalidate"
327269
env: NAME=pinvalidate
328270
language: python

0 commit comments

Comments
 (0)