Make rge regression report much less verbose.

This commit is contained in:
Eric S. Raymond 2007-04-24 13:09:09 +00:00
parent d9dcde6f33
commit 79e30c12b3

View file

@ -7,33 +7,32 @@
UMC=../../umc
TERRAIN=../terrain.cfg
cleanup() {
find $UMC -type f -regex '.*-p[ly]' -exec rm {} \;
}
cleanup;
# Clear the decks
find $UMC -type f -regex '.*-p[ly]' -exec rm {} \;
# The enumeration relies on $ not being in any filename
for file in `find $UMC -name '*.cfg' | tr ' ' '$'; find $UMC -type f -wholename '*/maps/*'`
for file in `find $UMC -name '*.cfg' | tr ' ' '$'; find $UMC -type f \! -name '*.png' \! -name '*.jpg' -wholename '*/maps/*'`
do
file=`echo $file | tr '$' ' '`
echo "${file}"
if map_convert.pl ${TERRAIN} "${file}" "${file}-pl"
then
if map_convert.py ${TERRAIN} "${file}" "${file}-py"
then
diff -u "${file}-pl" "${file}-py"
if diff -u "${file}-pl" "${file}-py"
then
rm "${file}-pl" "${file}-py"
else
echo "${file}: regression failed"
fi
else
echo "Python conversion failed"
echo "${file}: Python conversion failed"
rm "${file}-pl"
exit 1
fi
else
echo "Perl conversion failed"
echo "${file}: Perl conversion failed"
continue
#exit 1
fi
done
# -pl and -py files are left in place only if something failed
cleanup;
exit 0