diff options
author | Yann Collet <cyan@fb.com> | 2022-07-01 01:47:08 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2022-07-01 02:35:52 (GMT) |
commit | b2f61471941372a1aee49fefee1811a150757892 (patch) | |
tree | 673fccf44632d599c1d34797a515d2d35a3033b4 /.github | |
parent | 4ebe313e00aa52c837ee029ede39a0503a8a39c9 (diff) | |
download | lz4-b2f61471941372a1aee49fefee1811a150757892.zip lz4-b2f61471941372a1aee49fefee1811a150757892.tar.gz lz4-b2f61471941372a1aee49fefee1811a150757892.tar.bz2 |
test lz4 compression on a block device
block device created as part of the test.
Requires sudo rights.
Diffstat (limited to '.github')
-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 ############################################################### |