forked from facebook/zstd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for facebook#3206 - bugs when handling stdin as part of multipl…
…e files.
- Loading branch information
Showing
6 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# setup | ||
echo "file1" > file1 | ||
echo "file2" > file2 | ||
|
||
echo "Test zstd ./file1 - file2" | ||
rm -f ./file*.zst | ||
echo "stdin" | zstd ./file1 - ./file2 | zstd -d | ||
cat file1.zst | zstd -d | ||
cat file2.zst | zstd -d | ||
|
||
echo "Test zstd -d ./file1.zst - file2.zst" | ||
rm ./file1 ./file2 | ||
echo "stdin" | zstd - | zstd -d ./file1.zst - file2.zst | ||
cat file1 | ||
cat file2 | ||
|
||
echo "zstd -d ./file1.zst - file2.zst -c" | ||
echo "stdin" | zstd | zstd -d ./file1.zst - file2.zst -c |
12 changes: 12 additions & 0 deletions
12
tests/cli-tests/compression/multiple-files.sh.stdout.exact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Test zstd ./file1 - file2 | ||
stdin | ||
file1 | ||
file2 | ||
Test zstd -d ./file1.zst - file2.zst | ||
stdin | ||
file1 | ||
file2 | ||
zstd -d ./file1.zst - file2.zst -c | ||
file1 | ||
stdin | ||
file2 |