Skip to content

Commit

Permalink
exfatprogs: capture coredump in github action
Browse files Browse the repository at this point in the history
Signed-off-by: Hyunchul Lee <[email protected]>
  • Loading branch information
hclee committed Jan 12, 2024
1 parent 806ec3b commit c66a33e
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
run: |
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install xz-utils
sudo apt-get install systemd-coredump zstd
git clone https://github.com/namjaejeon/linux-exfat-oot
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/lib:$PATH
Expand All @@ -32,31 +33,15 @@ jobs:
sudo make install > /dev/null
- name: run fsck repair testcases
run: |
ulimit -c unlimited
sudo mkdir /cores
cd tests
sudo ./test_fsck.sh
- name: create file/director test
run: |
cd linux-exfat-oot
make > /dev/null
sudo make install > /dev/null
sudo modprobe exfat
sudo mkdir -p /mnt/test
cd ..
truncate -s 10G test.img
sudo losetup /dev/loop22 test.img
sudo mkfs.exfat /dev/loop22
sudo mount -t exfat /dev/loop22 /mnt/test/
cd /mnt/test/
i=1;while [ $i -le 10000 ];do sudo touch file$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done
sync
sudo rm -rf *
i=1;while [ $i -le 10000 ];do sudo mkdir dir$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done
sync
sudo rm -rf *
i=1;while [ $i -le 10000 ];do sudo touch file$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done
i=1;while [ $i -le 10000 ];do sudo mkdir dir$i;if [ $? != 0 ]; then exit 1; fi; i=$(($i + 1));done
sync
sudo fsck.exfat /dev/loop22
sudo find . -delete
sudo fsck.exfat /dev/loop22
cd -
sudo coredumpctl list
sudo chmod -R a+rwx /cores
sudo coredumpctl dump | gzip -c > /cores/core.gz
which fsck.ntfs
- uses: actions/upload-artifact@v3 # capture all crashes as build artifacts
with:
name: crashes
path: /cores

0 comments on commit c66a33e

Please sign in to comment.