2008-01-07 11:49:19 +00:00
|
|
|
#/bin/sh
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#
|
2009-04-13 08:27:40 +00:00
|
|
|
# Author: Lasse Collin
|
2008-01-07 11:49:19 +00:00
|
|
|
#
|
2009-04-13 08:27:40 +00:00
|
|
|
# This file has been put into the public domain.
|
|
|
|
# You can do whatever you want with this file.
|
2008-01-07 11:49:19 +00:00
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2008-09-30 14:43:55 +00:00
|
|
|
for I in "$srcdir"/files/good-*.xz
|
2008-01-07 11:49:19 +00:00
|
|
|
do
|
2008-11-19 21:52:24 +00:00
|
|
|
if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
|
2008-01-08 10:29:58 +00:00
|
|
|
:
|
|
|
|
else
|
2008-01-07 11:49:19 +00:00
|
|
|
echo "Good file failed: $I"
|
|
|
|
(exit 1)
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2008-09-30 14:43:55 +00:00
|
|
|
for I in "$srcdir"/files/bad-*.xz
|
2008-01-07 11:49:19 +00:00
|
|
|
do
|
2008-11-19 21:52:24 +00:00
|
|
|
if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
|
2008-01-07 11:49:19 +00:00
|
|
|
echo "Bad file succeeded: $I"
|
|
|
|
(exit 1)
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
(exit 0)
|
|
|
|
exit 0
|