2008-01-07 06:49:19 -05:00
|
|
|
#/bin/sh
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Copyright (C) 2008 Lasse Collin
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2008-09-30 10:43:55 -04:00
|
|
|
for I in "$srcdir"/files/good-*.xz
|
2008-01-07 06:49:19 -05:00
|
|
|
do
|
2008-01-08 05:29:58 -05:00
|
|
|
if ../src/lzmadec/lzmadec "$I" > /dev/null 2> /dev/null ; then
|
|
|
|
:
|
|
|
|
else
|
2008-01-07 06:49:19 -05:00
|
|
|
echo "Good file failed: $I"
|
|
|
|
(exit 1)
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2008-09-30 10:43:55 -04:00
|
|
|
for I in "$srcdir"/files/bad-*.xz
|
2008-01-07 06:49:19 -05:00
|
|
|
do
|
|
|
|
if ../src/lzmadec/lzmadec "$I" > /dev/null 2> /dev/null ; then
|
|
|
|
echo "Bad file succeeded: $I"
|
|
|
|
(exit 1)
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
(exit 0)
|
|
|
|
exit 0
|