When user pass in argument for both decompression and multi-thread, print a warning message to indicate that multi-threaded decompression is not supported. * Add warning when multi-thread decompression is requested * add test case for multi-threaded decoding warning Expectation is for -d -T0 we will not throw any warning, and see warning for any other -d -T(>1) inputs
16 lines
624 B
Bash
Executable File
16 lines
624 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Test multi-threaded flags
|
|
zstd --single-thread file -f ; zstd -t file.zst
|
|
zstd -T2 -f file ; zstd -t file.zst
|
|
zstd --rsyncable -f file ; zstd -t file.zst
|
|
zstd -T0 -f file ; zstd -t file.zst
|
|
zstd -T0 --auto-threads=logical -f file ; zstd -t file.zst
|
|
zstd -T0 --auto-threads=physical -f file; zstd -t file.zst
|
|
|
|
# multi-thread decompression warning test
|
|
zstd -T0 -f file ; zstd -t file.zst; zstd -T0 -d file.zst -o file3
|
|
zstd -T0 -f file ; zstd -t file.zst; zstd -T2 -d file.zst -o file4
|