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