From fd916a76464eaa63fa4d9e681e832e7c2ff14a9d Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Tue, 1 Apr 2014 12:59:27 +0000
Subject: [PATCH] test script updates

---
 tests/scripts/checkpo.sh   |  2 +-
 tests/scripts/checkutf8.sh | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/tests/scripts/checkpo.sh b/tests/scripts/checkpo.sh
index c44a9396d0..7e29b3f820 100755
--- a/tests/scripts/checkpo.sh
+++ b/tests/scripts/checkpo.sh
@@ -22,7 +22,7 @@ DIRS="\
   installer/resources/locale/po \
   debian/po"
 
-for i in `find $DIRS -maxdepth 1 -type f -name *.po`
+for i in `find $DIRS -maxdepth 1 -type f -name \*.po`
 do
 	echo "Checking $i ..."
 	msgfmt -c $i -o /dev/null
diff --git a/tests/scripts/checkutf8.sh b/tests/scripts/checkutf8.sh
index 9cf37f05b4..cc99a569fa 100755
--- a/tests/scripts/checkutf8.sh
+++ b/tests/scripts/checkutf8.sh
@@ -54,6 +54,18 @@ do
 	fi
 done
 
+echo "Checking getopt properties files ..."
+for i in `find core/java/src/gnu/getopt -name \*.properties -type f`
+do
+	#echo "Checking $i ..."
+	iconv -f UTF8 -t UTF8 $i -o /dev/null
+        if [ $? -ne 0 ]
+	then
+		echo "********* FAILED CHECK FOR $i *************"
+		FAIL=1
+	fi
+done
+
 if [ "$FAIL" != "" ]
 then
 	echo "******** At least one file failed check *********"
-- 
GitLab