sd/milkymist-memcard: Fix format string
[qemu/armbru.git] / tests / decode / check.sh
blob95445a0115522e71149f6169e4e7ae20202014c8
1 #!/bin/sh
2 # This work is licensed under the terms of the GNU LGPL, version 2 or later.
3 # See the COPYING.LIB file in the top-level directory.
5 PYTHON=$1
6 DECODETREE=$2
7 E=0
9 # All of these tests should produce errors
10 for i in err_*.decode; do
11 if $PYTHON $DECODETREE $i > /dev/null 2> /dev/null; then
12 # Pass, aka failed to fail.
13 echo FAIL: $i 1>&2
14 E=1
16 done
18 for i in succ_*.decode; do
19 if ! $PYTHON $DECODETREE $i > /dev/null 2> /dev/null; then
20 echo FAIL:$i 1>&2
22 done
24 exit $E