Skip to content

Commit

Permalink
check for preserving file permission, compression
Browse files Browse the repository at this point in the history
- adresses issue vasi#15
  • Loading branch information
wookietreiber committed Aug 19, 2015
1 parent b07393c commit 115d6b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Makefile.am
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

Expand Down
13 changes: 13 additions & 0 deletions test/compress-file-permissions.sh
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 ]]

0 comments on commit 115d6b2

Please sign in to comment.