forked from vasi/pixz
-
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.
check for preserving file permission, compression
- adresses issue vasi#15
- Loading branch information
1 parent
b07393c
commit 115d6b2
Showing
2 changed files
with
14 additions
and
0 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,5 @@ | ||
TESTS = \ | ||
compress-file-permissions.sh \ | ||
single-file-round-trip.sh \ | ||
xz-compatibility-c-option.sh | ||
|
||
|
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,13 @@ | ||
#!/bin/bash | ||
|
||
PIXZ=../src/pixz | ||
|
||
INPUT=$(mktemp) | ||
trap "rm -f $INPUT $INPUT.xz" EXIT | ||
|
||
chmod 600 $INPUT | ||
echo foo > $INPUT | ||
|
||
$PIXZ $INPUT | ||
|
||
[[ $(stat -c "%a" $INPUT.xz) = 600 ]] |