xref: /aosp_15_r20/external/zstd/tests/cli-tests/compression/multi-threaded.sh (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1#!/bin/sh
2
3set -e
4
5# Test multi-threaded flags
6zstd --single-thread file -f -q         ; zstd -t file.zst
7zstd -T2 -f file -q                     ; zstd -t file.zst
8zstd --rsyncable -f file -q             ; zstd -t file.zst
9zstd -T0 -f file -q                     ; zstd -t file.zst
10zstd -T0 --auto-threads=logical -f file -q ; zstd -t file.zst
11zstd -T0 --auto-threads=physical -f file -q ; zstd -t file.zst
12
13# multi-thread decompression warning test
14zstd -T0 -f file -q                     ; zstd -t file.zst; zstd -T0 -d file.zst -o file3
15zstd -T0 -f file -q                     ; zstd -t file.zst; zstd -T2 -d file.zst -o file4
16