diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2022-07-01 16:40:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 16:40:33 (GMT) |
commit | ea3eef071ffaff5831fe7c99496a3db94a7ab5bb (patch) | |
tree | 8103fc0c693c3f209508d49b3292bd6234b36f26 /.github/workflows/ci.yml | |
parent | 4ebe313e00aa52c837ee029ede39a0503a8a39c9 (diff) | |
parent | 49e63cd52202b1bbda2dc97309eb2e25a3677983 (diff) | |
download | lz4-ea3eef071ffaff5831fe7c99496a3db94a7ab5bb.zip lz4-ea3eef071ffaff5831fe7c99496a3db94a7ab5bb.tar.gz lz4-ea3eef071ffaff5831fe7c99496a3db94a7ab5bb.tar.bz2 |
Merge pull request #1098 from lz4/blockDeviceTest
Block device compression
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33319ce..9e9c790 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -250,7 +250,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 # https://github.com/actions/checkout - - name: custom LZ4_DISTANCE_MAX; test LZ4_USER_MEMORY_FUNCTIONS run: | MOREFLAGS='-DLZ4_DISTANCE_MAX=8000' make V=1 check @@ -261,6 +260,21 @@ jobs: make V=1 clean CC="c++ -Wno-deprecated" make V=1 -C tests fullbench-wmalloc # stricter function signature check + # test block device compression #1086 + lz4cli-block-device: + name: Test lz4 compression on a block device + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 # https://github.com/actions/checkout + - name: create a block device, compress it with lz4 # alternative : blindly use /dev/loop0, seems to always exist + run: | + make lz4 + dd if=/dev/zero of=full0.img bs=2M count=1 + BLOCK_DEVICE=$(sudo losetup --show -fP full0.img) + sudo chmod 666 $BLOCK_DEVICE + ./lz4 -v $BLOCK_DEVICE -c > /dev/null + sudo losetup -d $BLOCK_DEVICE + rm full0.img ############################################################### |