Skip to content

Commit 19da65b

Browse files
committed
Updated .travis.yml and removed FUSE-based fuzz testing
While neat, performing fuzz testing at the integration layer didn't really provide that much benefit since it's already performed in littlefs itself. It was actually a risk for CI since it depended on the littlefs-fuse repo. It also broke with the renaming of LittleFileSystem2.
1 parent 86f14d5 commit 19da65b

File tree

1 file changed

+12
-43
lines changed

1 file changed

+12
-43
lines changed

.travis.yml

Lines changed: 12 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
language: python
2+
python: 2.7
3+
14
script:
25
# Check that example compiles
36
- sed -n '/``` c++/,/```/{/```/d; p;}' README.md > main.cpp
@@ -11,60 +14,26 @@ script:
1114
-n 'tests*'
1215

1316
# Run littlefs functional tests
14-
- CFLAGS="-Wno-format" make -Clittlefs test QUIET=1
17+
- make -Clittlefs test QUIET=1
1518

1619
# Run littlefs functional tests with different configurations
1720
# Note: r/w size of 64 is default in mbed
18-
- CFLAGS="-Wno-format -DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
19-
make -Clittlefs test QUIET=1
20-
- CFLAGS="-Wno-format -DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
21-
make -Clittlefs test QUIET=1
22-
- CFLAGS="-Wno-format -DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
23-
make -Clittlefs test QUIET=1
24-
- CFLAGS="-Wno-format -DLFS_BLOCK_COUNT=1023"
25-
make -Clittlefs test QUIET=1
26-
- CFLAGS="-Wno-format -DLFS_LOOKAHEAD=2048"
27-
make -Clittlefs test QUIET=1
28-
29-
# Self-host with littlefs-fuse for fuzz test
30-
- CFLAGS="-Wno-format" make -C littlefs-fuse
31-
32-
- littlefs-fuse/lfs2 --format /dev/loop0
33-
- littlefs-fuse/lfs2 /dev/loop0 mount
34-
35-
- ls mount
36-
- mkdir mount/littlefs
37-
- cp -r $(git ls-tree --name-only HEAD littlefs/) mount/littlefs
38-
- cd mount/littlefs
39-
- ls
40-
- CFLAGS="-Wno-format" make -B test_dirs QUIET=1
21+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
22+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
23+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
24+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS_BLOCK_COUNT=1023"
25+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS_LOOKAHEAD=2048"
4126

4227
install:
4328
# Get arm-none-eabi-gcc
44-
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
29+
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
4530
- sudo apt-get update -qq
46-
- sudo apt-get install -qq gcc-arm-none-eabi --force-yes
31+
- sudo apt-get install -qq gcc-arm-embedded
4732
# Get dependencies
4833
- git clone https://github.com/armmbed/mbed-os.git
49-
- git clone https://github.com/armmbed/spiflash-driver.git
5034
# Install python dependencies
51-
- pip install --user -r mbed-os/requirements.txt
52-
# Install littlefs-fuse and dependencies
53-
- sudo apt-get install libfuse-dev
54-
- git clone https://github.com/geky/littlefs-fuse
35+
- pip install -r mbed-os/requirements.txt
5536
# Check versions
56-
- fusermount -V
5737
- arm-none-eabi-gcc --version
5838
- python --version
5939
- gcc --version
60-
61-
before_script:
62-
# Patch littlefs-fuse
63-
- rm -rf littlefs-fuse/littlefs/*
64-
- cp -r $(git ls-tree --name-only HEAD littlefs/) littlefs-fuse/littlefs
65-
- echo '*' > littlefs-fuse/.mbedignore
66-
# Create file-backed disk
67-
- mkdir mount
68-
- sudo chmod a+rw /dev/loop0
69-
- dd if=/dev/zero bs=512 count=2048 of=disk
70-
- losetup /dev/loop0 disk

0 commit comments

Comments
 (0)