#!/bin/bash
NOK=0
for f in confdata/*.conf
do
    ./conftest $f > conftest.$$
    outfile=`echo $f | sed s+\.conf+\.out+`
    diff $outfile conftest.$$ > /dev/null
    if [ $? != 0 ] 
    then
        echo "$f					FAILED"
        NOK=1
    else
        echo "$f					OK"
    fi
done
rm -f conftest.$$
exit $NOK