1
- python :
2
- - " 2.7"
3
-
4
1
script :
5
2
# Check that example compiles
3
+ - sed -n '/``` c++/,/```/{/```/d; p;}' README.md > main.cpp
6
4
- PYTHONPATH=mbed-os python mbed-os/tools/make.py -t GCC_ARM -m K82F
7
5
--source=. --build=BUILD/K82F/GCC_ARM -j0
8
6
@@ -28,6 +26,19 @@ script:
28
26
- CFLAGS="-Wno-error=format -DLFS_LOOKAHEAD=2047"
29
27
make -Clittlefs test
30
28
29
+ # Self-host with littlefs-fuse for fuzz test
30
+ - make -C littlefs-fuse
31
+
32
+ - littlefs-fuse/lfs --format /dev/loop0
33
+ - littlefs-fuse/lfs /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-error=format" make -B test_dirs
41
+
31
42
install :
32
43
# Get arm-none-eabi-gcc
33
44
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
@@ -38,5 +49,22 @@ install:
38
49
- git clone https://github.com/armmbed/spiflash-driver.git
39
50
# Install python dependencies
40
51
- pip install --user -r mbed-os/requirements.txt
41
- # Create main file for example
42
- - sed -n '/``` c++/,/```/{/```/d; p;}' README.md > main.cpp
52
+ # Install littlefs-fuse and dependencies
53
+ - sudo apt-get install libfuse-dev
54
+ - git clone https://github.com/geky/littlefs-fuse
55
+ # Check versions
56
+ - fusermount -V
57
+ - arm-none-eabi-gcc --version
58
+ - python --version
59
+ - 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