1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
xz-archive/tests/test_files.sh
Lasse Collin 02ddf09bc3 Put the interesting parts of XZ Utils into the public domain.
Some minor documentation cleanups were made at the same time.
2009-04-13 11:27:40 +03:00

33 lines
639 B
Bash
Executable file

#/bin/sh
###############################################################################
#
# Author: Lasse Collin
#
# This file has been put into the public domain.
# You can do whatever you want with this file.
#
###############################################################################
for I in "$srcdir"/files/good-*.xz
do
if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
:
else
echo "Good file failed: $I"
(exit 1)
exit 1
fi
done
for I in "$srcdir"/files/bad-*.xz
do
if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
echo "Bad file succeeded: $I"
(exit 1)
exit 1
fi
done
(exit 0)
exit 0