#!/bin/sh
cd debian/tests

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

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

exit $res
