Home | History | Annotate | Download | only in tests

Lines Matching refs:xz

11 # $1 = directory of the xz executable
13 # If both xz and xzdec were not built, skip this test.
14 XZ=${1:-../src/xz}/xz
16 test -x "$XZ" || XZ=
18 if test -z "$XZ$XZDEC"; then
19 echo "xz and xzdec were not built, skipping this test."
50 # .xz #
61 for I in "$srcdir"/files/good-*.xz
65 */good-1-*delta-lzma2*.xz)
70 */good-1-empty-bcj-lzma2.xz)
75 */good-1-sparc-lzma2.xz)
80 */good-1-x86-lzma2.xz)
85 */good-1-arm64-lzma2-*.xz)
90 */good-1-riscv-lzma2-*.xz)
95 if test -z "$XZ" || "$XZ" $NO_WARN -dc "$I" > /dev/null; then
110 for I in "$srcdir"/files/bad-*.xz
112 if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
126 # Testing for the lzma_index_append() bug in <= 5.2.6 needs "xz -l":
127 I="$srcdir/files/bad-3-index-uncomp-overflow.xz"
128 if test -n "$XZ" && "$XZ" -l "$I" > /dev/null 2>&1; then
129 echo "Bad file succeeded with xz -l: $I"
133 for I in "$srcdir"/files/unsupported-*.xz
135 # Test these only with xz as unsupported-check.xz will exit
138 if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
145 I="$srcdir/files/unsupported-check.xz"
146 if test -z "$XZ" || "$XZ" -dcqQ "$I" > /dev/null; then
149 echo "Unsupported file failed with xz -Q: $I"
167 if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then
177 if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
191 if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then
201 if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then