mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Tests: Add the .lzma files to test_files.sh.
This commit is contained in:
parent
ce5549a591
commit
2d2201bc63
1 changed files with 20 additions and 0 deletions
|
@ -53,5 +53,25 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
for I in "$srcdir"/files/good-*.lzma
|
||||
do
|
||||
if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then
|
||||
:
|
||||
else
|
||||
echo "Good file failed: $I"
|
||||
(exit 1)
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
for I in "$srcdir"/files/bad-*.lzma
|
||||
do
|
||||
if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
|
||||
echo "Bad file succeeded: $I"
|
||||
(exit 1)
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
(exit 0)
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue