debian/copyright: Update the FSF address
[xz/debian.git] / tests / test_files.sh
blob7dd9a3901bf96fa252442a8f66a2713bbed464b7
1 #/bin/sh
3 ###############################################################################
5 # Author: Lasse Collin
7 # This file has been put into the public domain.
8 # You can do whatever you want with this file.
10 ###############################################################################
12 for I in "$srcdir"/files/good-*.xz
14 if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
16 else
17 echo "Good file failed: $I"
18 (exit 1)
19 exit 1
21 done
23 for I in "$srcdir"/files/bad-*.xz
25 if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
26 echo "Bad file succeeded: $I"
27 (exit 1)
28 exit 1
30 done
32 (exit 0)
33 exit 0