summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/zstd/tests/cli-tests/compression/multi-threaded.sh
blob: 17a5eb5186b3ecff7a780b5f486397b121b48a89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

# Test multi-threaded flags
zstd --single-thread file -f -q         ; zstd -t file.zst
zstd -T2 -f file -q                     ; zstd -t file.zst
zstd --rsyncable -f file -q             ; zstd -t file.zst
zstd -T0 -f file -q                     ; zstd -t file.zst
zstd -T0 --auto-threads=logical -f file -q ; zstd -t file.zst
zstd -T0 --auto-threads=physical -f file -q ; zstd -t file.zst

# multi-thread decompression warning test
zstd -T0 -f file -q                     ; zstd -t file.zst; zstd -T0 -d file.zst -o file3
zstd -T0 -f file -q                     ; zstd -t file.zst; zstd -T2 -d file.zst -o file4