| 1 |
#!/bin/bash -e |
| 2 |
|
| 3 |
echo creating testfile |
| 4 |
cp $PATH_DIOD $PATH_EXPDIR/testfile |
| 5 |
tmpfile=`mktemp` |
| 6 |
echo reading testfile |
| 7 |
./tread "$@" $tmpfile testfile |
| 8 |
echo comparing result |
| 9 |
if ! cmp $tmpfile $PATH_EXPDIR/testfile; then |
| 10 |
echo results differ |
| 11 |
exit 1 |
| 12 |
fi |
| 13 |
rm -f $tmpfile |
| 14 |
exit 0 |