(echo xxx; echo yyy) > in || fail=1
gzip -cdf < in > out || fail=1
-compare out exp2 || fail=1
+compare exp2 out || fail=1
# Uncompressed input, followed by compressed data.
# Currently fails, so skip it.
# (echo xxx; echo yyy|gzip) > in || fail=1
# gzip -cdf < in > out || fail=1
-# compare out exp2 || fail=1
+# compare exp2 out || fail=1
# Compressed input, followed by regular (not-compressed) data.
(echo xxx|gzip; echo yyy) > in || fail=1
gzip -cdf < in > out || fail=1
-compare out exp2 || fail=1
+compare exp2 out || fail=1
(echo xxx|gzip; echo yyy|gzip) > in || fail=1
gzip -cdf < in > out || fail=1
-compare out exp2 || fail=1
+compare exp2 out || fail=1
in_str=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+=%
for i in 0 1 2 3 4 5 6 7 8 9 a; do in_str="$in_str$in_str" ;done
gzip ---presume-input-tty -d -S '' F.gz < yes > out 2>err && fail=1
-compare out /dev/null || fail=1
-compare err expected-err || fail=1
+compare /dev/null out || fail=1
+compare expected-err err || fail=1
test -f F.gz || fail=1
test $ret -eq $i || fail=1
test $ret = 1 && continue
echo $i > exp || fail=1
- compare $i exp || fail=1
+ compare exp $i || fail=1
done
Exit $fail
zdiff a.gz b.gz > out 2>&1
test $? = 1 || fail=1
-compare out exp || fail=1
+compare exp out || fail=1
rm -f out
# expect success, for equal files