forked from I2P_Developers/i2p.i2p
Tests: Add scala files to UTF-8 tests
Make tests less noisy
This commit is contained in:
@ -54,7 +54,7 @@ SCRIPTFILES="\
|
||||
"
|
||||
|
||||
for script in $SCRIPTFILES; do
|
||||
echo "Checking $script ..."
|
||||
#echo "Checking $script ..."
|
||||
if sh -n "$script" ; then : ; else
|
||||
echo "********* FAILED CHECK FOR $script *************"
|
||||
FAIL=1
|
||||
|
@ -34,7 +34,7 @@ DIRS="\
|
||||
|
||||
for i in `find $DIRS -maxdepth 1 -type f`
|
||||
do
|
||||
echo "Checking $i ..."
|
||||
#echo "Checking $i ..."
|
||||
iconv -f UTF8 -t UTF8 $i -o /dev/null
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
@ -43,8 +43,8 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Checking all Java files ..."
|
||||
for i in `find . -name \*.java -type f`
|
||||
echo "Checking all Java and Scala files ..."
|
||||
for i in `find . \( -name \*.java -o -name \*.scala \) -type f`
|
||||
do
|
||||
#echo "Checking $i ..."
|
||||
iconv -f UTF8 -t UTF8 $i -o /dev/null
|
||||
|
@ -108,7 +108,7 @@ HTMLFILES="\
|
||||
echo 'Checking XML files....................'
|
||||
for i in $XMLFILES
|
||||
do
|
||||
echo "Checking $i ..."
|
||||
#echo "Checking $i ..."
|
||||
xmllint --noout $i
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
@ -120,7 +120,7 @@ done
|
||||
echo 'Checking HTML files....................'
|
||||
for i in $HTMLFILES
|
||||
do
|
||||
echo "Checking $i ..."
|
||||
#echo "Checking $i ..."
|
||||
xmllint --html --noout $i
|
||||
# FIXME html mode never exits with an error code
|
||||
# ... but it does output errors
|
||||
|
Reference in New Issue
Block a user