#!/bin/sh
cd debian/tests

echo "info: compiling"
(cobc test03.cob > $AUTOPKGTEST_TMP/test03.act 2>&1)

echo "info: running"
cmp -s test03.exp $AUTOPKGTEST_TMP/test03.act
res=$?
if [ $res ] ; then
    echo "success: test03 produced proper results"
else
    echo "error: test03 did not produce proper results"
    diff -u test03.exp $AUTOPKGTEST_TMP/test03.act
fi

exit $res
