aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/uzlib/tests/run-decomp-bad-inputs.sh
blob: 195bdf04638f06e0de4cb284f00bb9a42e3c1865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Make sure that globbing order below is independent on the current
# user locale
export LANG=C.UTF-8
unset LC_COLLATE

rm -f decomp-bad-inputs.log

for f in decomp-bad-inputs/*/*; do
    echo "*" $f
    ../examples/tgunzip/tgunzip "$f" /dev/null
    echo $f $? >>decomp-bad-inputs.log
done

echo

if diff -u decomp-bad-inputs.ref decomp-bad-inputs.log; then
    echo "Test passed"
else
    echo "Test FAILED"
fi