diff --git a/.github/workflows/bsd.sh b/.github/workflows/bsd.sh index b9a4d205..e751d6b1 100755 --- a/.github/workflows/bsd.sh +++ b/.github/workflows/bsd.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -euo pipefail echo 'set -euo pipefail' > test.sh diff --git a/.github/workflows/f2fs.sh b/.github/workflows/f2fs.sh new file mode 100755 index 00000000..0d92ed9d --- /dev/null +++ b/.github/workflows/f2fs.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -euo pipefail + +cd tests/testdata +mkdir -p f2fs +gunzip -c f2fs.img.gz > f2fs.img +sudo mount -v -o loop f2fs.img ./f2fs +date > ./f2fs/date +cat ./f2fs/date \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39128f8e..c2303314 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -127,3 +127,10 @@ jobs: - name: Test run: GOARCH=arm64 go test -v -short ./... + + test-f2fs: + runs-on: ubuntu-latest + + steps: + - name: Mount F2FS + run: f2fs.sh \ No newline at end of file diff --git a/tests/testdata/f2fs.img.gz b/tests/testdata/f2fs.img.gz new file mode 100644 index 00000000..572867e7 Binary files /dev/null and b/tests/testdata/f2fs.img.gz differ