]> icculus.org git repositories - icculus/xz.git/blob - tests/test_files.sh
Major documentation update.
[icculus/xz.git] / tests / test_files.sh
1 #/bin/sh
2
3 ###############################################################################
4 #
5 # Author: Lasse Collin
6 #
7 # This file has been put into the public domain.
8 # You can do whatever you want with this file.
9 #
10 ###############################################################################
11
12 for I in "$srcdir"/files/good-*.xz
13 do
14         if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
15                 :
16         else
17                 echo "Good file failed: $I"
18                 (exit 1)
19                 exit 1
20         fi
21 done
22
23 for I in "$srcdir"/files/bad-*.xz
24 do
25         if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
26                 echo "Bad file succeeded: $I"
27                 (exit 1)
28                 exit 1
29         fi
30 done
31
32 (exit 0)
33 exit 0