mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
22 lines
433 B
Bash
Executable File
22 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
NOK=0
|
|
for f in $abs_top_srcdir/tests/confdata/*.conf
|
|
do
|
|
./conftest $f > conftest.$$
|
|
outfile=`echo "$f" | sed s+\.conf$+\.out+`
|
|
diff $outfile conftest.$$ > /dev/null
|
|
if [ $? != 0 ]
|
|
then
|
|
if [ -n "$DEBUG_TESTS" ]; then
|
|
diff -u $outfile conftest.$$
|
|
fi
|
|
echo "$f FAILED"
|
|
NOK=1
|
|
else
|
|
echo "$f OK"
|
|
fi
|
|
done
|
|
rm -f conftest.$$
|
|
exit $NOK
|