Home | History | Annotate | Download | only in tests

Lines Matching refs:xz

11 # $1 = directory of the xz executable
13 # If xz was not built, skip this test. Autotools and CMake put
14 # the xz executable in a different location.
15 XZ=${1:-../src/xz}/xz
16 if test ! -x "$XZ"; then
17 echo "xz was not built, skipping this test."
50 if "$XZ" -zfk --suffix=".foo" -Fraw --lzma1=preset=0 "$SUFFIX_INPUT" ; then
66 if "$XZ" -zfk -Fraw --lzma1=preset=0 "$SUFFIX_INPUT" 2> /dev/null; then
72 if "$XZ" -df -Fraw --lzma1=preset=0 "$SUFFIX_INPUT.foo" 2> /dev/null; then
79 if "$XZ" -df --suffix=".foo" -Fraw --lzma1=preset=0 "$SUFFIX_INPUT.foo"; then
86 # Test basic compression with .xz format and a suffix
87 if "$XZ" -zfk --suffix=".foo" --lzma2=preset=0 "$SUFFIX_INPUT" ; then
90 echo "Failed to compress a file with a suffix set in .xz format"
98 echo ".xz format compressed output file named properly"
103 if "$XZ" -df --suffix=".foo" "$SUFFIX_INPUT.foo"; then
106 echo "Failed to decompress a file with a suffix set in .xz format"
113 if echo foo | "$XZ" -Fraw --lzma1=preset=0 > /dev/null ; then
125 # must result in an error because xz does not know how to rename the output
129 if "$XZ" -Fraw --lzma1=preset=0 --files="$SUFFIX_INPUT_FILES" 2> /dev/null ; then
134 if "$XZ" -Fraw --lzma1=preset=0 --files0="$SUFFIX_INPUT_FILES0" 2> /dev/null ; then
140 if "$XZ" -zfk -Fraw --lzma1=preset=0 --suffix=.foo --files="$SUFFIX_INPUT_FILES" ; then
157 if "$XZ" -zfk -Fraw --lzma1=preset=0 --suffix=.foo --files0="$SUFFIX_INPUT_FILES0" ; then
171 # When the file type cannot be determined by xz, it will copy the contents
175 if echo foo | "$XZ" -df > /dev/null 2>&1; then
180 if echo foo | "$XZ" -dfc > /dev/null; then