aboutsummaryrefslogtreecommitdiff
path: root/tests/decode/check.sh
blob: 79a06c37cd149cc5102a505b805e55633206d992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# This work is licensed under the terms of the GNU LGPL, version 2 or later.
# See the COPYING.LIB file in the top-level directory.

PYTHON=$1
DECODETREE=$2
E=0

# All of these tests should produce errors
for i in err_*.decode; do
    if $PYTHON $DECODETREE $i > /dev/null 2> /dev/null; then
        # Pass, aka failed to fail.
        echo FAIL: $i 1>&2
        E=1
    fi
done

exit $E