ghcup-hs/3rdparty/zlib/test/gzip-uncompress.sh
2020-05-10 13:12:39 +02:00

17 lines
276 B
Bash

#!/usr/bin/env bash
for d in $*; do
if gunzip -c < $d &> /dev/null; then
if cmp <(./hsgunzip < $d) <(gunzip -c < $d) > /dev/null; then
echo -n '.'
else
echo '#'
echo "FAILED: $d"
exit 1
fi
else
echo -n '_'
fi
done
echo