2006-08-29 22:27:07 +00:00
|
|
|
#!/bin/bash
|
2007-11-14 10:35:58 +00:00
|
|
|
set -x
|
2006-08-29 22:27:07 +00:00
|
|
|
NOK=0
|
2007-11-14 10:35:58 +00:00
|
|
|
for f in $abs_top_srcdir/tests/confdata/*.conf
|
2006-08-29 22:27:07 +00:00
|
|
|
do
|
|
|
|
./conftest $f > conftest.$$
|
2007-11-14 10:35:58 +00:00
|
|
|
outfile=`echo "$f" | sed s+\.conf$+\.out+`
|
2006-08-29 22:27:07 +00:00
|
|
|
diff $outfile conftest.$$ > /dev/null
|
2008-02-05 19:27:37 +00:00
|
|
|
if [ $? != 0 ]
|
2006-08-29 22:27:07 +00:00
|
|
|
then
|
2008-01-07 15:21:33 +00:00
|
|
|
if [ -n "$DEBUG_TESTS" ]; then
|
|
|
|
diff -u $outfile conftest.$$
|
|
|
|
fi
|
2006-08-29 22:27:07 +00:00
|
|
|
echo "$f FAILED"
|
|
|
|
NOK=1
|
|
|
|
else
|
|
|
|
echo "$f OK"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
rm -f conftest.$$
|
|
|
|
exit $NOK
|