android_kernel_xiaomi_sm8350/.travis.yml
Namjae Jeon 2ac0fc42e4 exfat: disable build exfat with linus tree
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
2020-04-06 14:58:30 +09:00

119 lines
3.7 KiB
YAML

dist: bionic
language: c
notifications:
- email: true
before_script:
# Download the kernel
- sudo apt-get install libelf-dev wget tar gzip python
- wget https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.1.36.tar.gz
- tar xf linux-4.1.36.tar.gz
- mv linux-4.1.36 linux-stable
- ./.travis_get_mainline_kernel
- cp ./.travis_cmd_wrapper.pl ~/travis_cmd_wrapper.pl
# Prerequisite for xfstests testing
- sudo apt-get install linux-headers-$(uname -r)
- sudo apt-get install autoconf libtool pkg-config libnl-3-dev libnl-genl-3-dev
- sudo apt-get install xfslibs-dev uuid-dev libtool-bin xfsprogs libgdbm-dev gawk fio attr libattr1-dev libacl1-dev libaio-dev
- git clone --branch=exfat-next https://github.com/exfat-utils/exfat-utils
- git clone https://github.com/namjaejeon/exfat-testsuites
- export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
- export PATH=/usr/local/lib:$PATH
- sudo useradd fsgqa
- sudo useradd 123456-fsgqa
script:
# Copy ksmbd source to kernel
- mv linux-stable ../
- mv linux ../
- mkdir ../linux-stable/fs/exfat
- cp -ar * ../linux-stable/fs/exfat/
- mkdir ../linux/fs/exfat
- cp -ar * ../linux/fs/exfat/
# Compile with 4.1 kernel
- cd ../linux-stable
- yes "" | make oldconfig > /dev/null
- echo 'obj-$(CONFIG_EXFAT_FS) += exfat/' >> fs/Makefile
- echo 'source "fs/exfat/Kconfig"' >> fs/Kconfig
- echo 'CONFIG_EXFAT_FS=m' >> .config
- echo 'CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"' >> .config
- make -j$((`nproc`+1)) fs/exfat/exfat.ko
# Compile with latest Torvalds' kernel
# - cd ../linux
# - yes "" | make oldconfig > /dev/null
# - echo 'obj-$(CONFIG_EXFAT) += exfat/' >> fs/Makefile
# - echo 'source "fs/exfat/Kconfig"' >> fs/Kconfig
# - echo 'CONFIG_EXFAT_FS=m' >> .config
# - echo 'CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"' >> .config
# - make -j$((`nproc`+1)) fs/exfat/exfat.ko
# Run xfstests testsuite
- cd ../exfat_oot
- make > /dev/null
- sudo make install > /dev/null
- sudo modprobe exfat
- cd exfat-utils
- ./autogen.sh > /dev/null
- ./configure > /dev/null
- make -j$((`nproc`+1)) > /dev/null
- sudo make install > /dev/null
- sudo cp lib/.libs/libexfat.so* /lib/
- sudo mkdir -p /mnt/scratch
- sudo mkdir -p /mnt/test
- time dd if=/dev/zero bs=1G count=10 of=test.img
- time dd if=/dev/zero bs=1G count=10 of=scratch.img
- sudo losetup /dev/loop20 test.img
- sudo losetup /dev/loop21 scratch.img
- sudo mkfs.exfat -c 4k /dev/loop20
- sudo mkfs.exfat -c 4k /dev/loop21
- cd ..
- cd exfat-testsuites/
- tar xzvf xfstests-exfat.tgz > /dev/null
- cd xfstests-exfat
- make -j$((`nproc`+1)) > /dev/null
- sudo ./check generic/001
- sudo ./check generic/006
- sudo ./check generic/007
- sudo ./check generic/011
- sudo ./check generic/014
- sudo ./check generic/028
- sudo ./check generic/029
- sudo ./check generic/030
- sudo ./check generic/035
- sudo ./check generic/036
- sudo ./check generic/069
- sudo ./check generic/071
- sudo ./check generic/074
- sudo ./check generic/075
- sudo ./check generic/080
- sudo ./check generic/084
- sudo ./check generic/086
- sudo ./check generic/095
- sudo ./check generic/098
- sudo ./check generic/112
- sudo ./check generic/113
- sudo ./check generic/114
- sudo ./check generic/120
- sudo ./check generic/123
- sudo ./check generic/124
- sudo ./check generic/127
- sudo ./check generic/131
- sudo ./check generic/132
- sudo ./check generic/135
- sudo ./check generic/141
- sudo ./check generic/169
- sudo ./check generic/198
- sudo ./check generic/207
- sudo ./check generic/208
- sudo ./check generic/209
- sudo ./check generic/210
- sudo ./check generic/212
- sudo ./check generic/214
- sudo ./check generic/215
- sudo ./check generic/221
- sudo ./check generic/228