3 ###############################################################################
7 # This file has been put into the public domain.
8 # You can do whatever you want with this file.
10 ###############################################################################
12 # If both xz and xzdec were not build, skip this test.
14 XZDEC
=..
/src
/xzdec
/xzdec
16 test -x "$XZDEC" || XZDEC
=
17 if test -z "$XZ$XZDEC"; then
22 for I
in "$srcdir"/files
/good-
*.xz
24 if test -z "$XZ" ||
"$XZ" -dc "$I" > /dev
/null
2>&1; then
27 echo "Good file failed: $I"
32 if test -z "$XZDEC" ||
"$XZDEC" "$I" > /dev
/null
2>&1; then
35 echo "Good file failed: $I"
41 for I
in "$srcdir"/files
/bad-
*.xz
43 if test -n "$XZ" && "$XZ" -dc "$I" > /dev
/null
2>&1; then
44 echo "Bad file succeeded: $I"
49 if test -n "$XZDEC" && "$XZDEC" "$I" > /dev
/null
2>&1; then
50 echo "Bad file succeeded: $I"