mapping_test.sh 402 Bytes
Newer Older
1 2 3 4
#!/bin/bash

tst=$srcdir/tests
set -e
5 6 7
tests/mapping_test --sync=1 --codes-config=$tst/conf/mapping_test.conf \
    2> mapping_test.err \
    1| grep TEST > mapping_test.out
8 9 10 11

diff $tst/expected/mapping_test.out mapping_test.out
err=$?

12 13 14 15 16
if [ -s mapping_test.err ] ; then
    echo ERROR: see mapping_test.err
    exit 1
fi

17
if [ "$err" -eq 0 ]; then
18
    rm mapping_test.out mapping_test.err
19
fi
20 21

exit $err