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

15 lines
335 B
Bash

#!/usr/bin/env bash
set -e
for d in $*; do
# they don't actually produce the same output
# cmp <(./hsgzip < $d) <(gzip -c < $d)
cmp $d <(gzip -c < $d | gunzip -c) # just in case..
cmp $d <(gzip -c < $d | ./hsgunzip )
cmp $d <(./hsgzip < $d | gunzip -c)
cmp $d <(./hsgzip < $d | ./hsgunzip)
echo -n '.'
done
echo