-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3055 from terrelln/cli-test-symlinks
[cli-tests] Fix zstd symlinks
- Loading branch information
Showing
6 changed files
with
67 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
scratch/ | ||
!bin/ | ||
!datagen | ||
!zstdcat | ||
|
||
scratch/ | ||
bin/symlinks |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/sh | ||
|
||
zstdname=$(basename $0) | ||
|
||
if [ -z "$EXEC_PREFIX" ]; then | ||
"$ZSTD_BIN" $@ | ||
"$ZSTD_SYMLINK_DIR/$zstdname" $@ | ||
else | ||
$EXEC_PREFIX "$ZSTD_BIN" $@ | ||
$EXEC_PREFIX "$ZSTD_SYMLINK_DIR/$zstdname" $@ | ||
fi |
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,6 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
println "hello" > hello | ||
println "world" > world | ||
zstd hello world |
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 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Test zstdcat symlink in bin/ | ||
zstdcat hello.zst | ||
zstdcat hello.zst world | ||
zstdcat hello world.zst | ||
zstdcat hello.zst world.zst | ||
|
||
# Test local zstdcat symlink | ||
ln -s $(which zstd) ./zstdcat | ||
./zstdcat hello.zst |
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,8 @@ | ||
hello | ||
hello | ||
world | ||
hello | ||
world | ||
hello | ||
world | ||
hello |