summaryrefslogtreecommitdiff
path: root/test/test.sh
blob: dda32aad14911f72376c6635c06eec4e28d9c831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -eu

cd "$(dirname "$0")"

./compile.sh

for file in $(find .. -type f -size -32760c); do
	if ! ./deflate $file | ./inflate > tmp; then
		echo "inflate error at $file"
		./deflate $file | ./inflate > tmp
	fi
	diff $file tmp
done

rm -f tmp