1a7ce5b29Sopenharmony_cidist: bionic 2a7ce5b29Sopenharmony_ci 3a7ce5b29Sopenharmony_cilanguage: c 4a7ce5b29Sopenharmony_ci 5a7ce5b29Sopenharmony_cinotifications: 6a7ce5b29Sopenharmony_ci - email: true 7a7ce5b29Sopenharmony_ci 8a7ce5b29Sopenharmony_cibefore_script: 9a7ce5b29Sopenharmony_ci - sudo apt-get install linux-headers-$(uname -r) 10a7ce5b29Sopenharmony_ci - sudo apt-get install xz-utils 11a7ce5b29Sopenharmony_ci - git clone --branch=exfat-next https://github.com/namjaejeon/exfat_oot 12a7ce5b29Sopenharmony_ci - ./.travis_get_mainline_kernel 13a7ce5b29Sopenharmony_ci - export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH 14a7ce5b29Sopenharmony_ci - export PATH=/usr/local/lib:$PATH 15a7ce5b29Sopenharmony_ci 16a7ce5b29Sopenharmony_ciscript: 17a7ce5b29Sopenharmony_ci # run checkpatch.pl 18a7ce5b29Sopenharmony_ci - git format-patch -20 19a7ce5b29Sopenharmony_ci - ./linux/scripts/checkpatch.pl *.patch || true 20a7ce5b29Sopenharmony_ci # build & install exfatprogs 21a7ce5b29Sopenharmony_ci - ./autogen.sh > /dev/null 22a7ce5b29Sopenharmony_ci - ./configure > /dev/null 23a7ce5b29Sopenharmony_ci - make -j$((`nproc`+1)) > /dev/null 24a7ce5b29Sopenharmony_ci - sudo make install > /dev/null 25a7ce5b29Sopenharmony_ci # build & install exfat 26a7ce5b29Sopenharmony_ci - cd exfat_oot 27a7ce5b29Sopenharmony_ci - make > /dev/null 28a7ce5b29Sopenharmony_ci - sudo make install > /dev/null 29a7ce5b29Sopenharmony_ci - sudo modprobe exfat 30a7ce5b29Sopenharmony_ci - sudo mkdir -p /mnt/test 31a7ce5b29Sopenharmony_ci - cd .. 32a7ce5b29Sopenharmony_ci # run fsck repair testcases 33a7ce5b29Sopenharmony_ci - cd tests 34a7ce5b29Sopenharmony_ci - sudo ./test_fsck.sh 35a7ce5b29Sopenharmony_ci # create file/director test 36a7ce5b29Sopenharmony_ci - truncate -s 10G test.img 37a7ce5b29Sopenharmony_ci - sudo losetup /dev/loop22 test.img 38a7ce5b29Sopenharmony_ci - sudo mkfs.exfat /dev/loop22 39a7ce5b29Sopenharmony_ci - sudo mount -t exfat /dev/loop22 /mnt/test/ 40a7ce5b29Sopenharmony_ci - cd /mnt/test/ 41a7ce5b29Sopenharmony_ci - i=1;while [ $i -le 10000 ];do sudo touch file$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done 42a7ce5b29Sopenharmony_ci - sync 43a7ce5b29Sopenharmony_ci - sudo rm -rf * 44a7ce5b29Sopenharmony_ci - i=1;while [ $i -le 10000 ];do sudo mkdir dir$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done 45a7ce5b29Sopenharmony_ci - sync 46a7ce5b29Sopenharmony_ci - sudo rm -rf * 47a7ce5b29Sopenharmony_ci - i=1;while [ $i -le 10000 ];do sudo touch file$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done 48a7ce5b29Sopenharmony_ci - i=1;while [ $i -le 10000 ];do sudo mkdir dir$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done 49a7ce5b29Sopenharmony_ci - sync 50a7ce5b29Sopenharmony_ci - sudo fsck.exfat /dev/loop22 51a7ce5b29Sopenharmony_ci - sudo find . -delete 52a7ce5b29Sopenharmony_ci - sudo fsck.exfat /dev/loop22 53a7ce5b29Sopenharmony_ci - cd - 54