Make rge regression report much less verbose.
This commit is contained in:
parent
d9dcde6f33
commit
79e30c12b3
1 changed files with 12 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue