chiark / gitweb /
use utf-8 as default encoding for config.py
[fdroidserver.git] / tests / run-tests
index 5efed6807814925daa7d9da7ab06a1d521fac558..dfdda5ad01ff39f935c079d40a46a427cd9358bc 100755 (executable)
@@ -121,6 +121,22 @@ if [ `uname -s` == "Linux" ]; then
 fi
 
 
+#------------------------------------------------------------------------------#
+echo_header "test UTF-8 metadata"
+
+REPOROOT=`create_test_dir`
+cd $REPOROOT
+
+$fdroid init
+sed -i.tmp 's,^ *repo_description.*,repo_description = """获取已安装在您的设备上的应用的,' config.py
+mkdir metadata
+cp $WORKSPACE/tests/urzip.apk repo/
+cp $WORKSPACE/tests/metadata/info.guardianproject.urzip.txt metadata/
+
+$fdroid readmeta
+$fdroid update
+
+
 #------------------------------------------------------------------------------#
 echo_header "test metadata checks"
 
@@ -506,7 +522,7 @@ test -e repo/index.jar
 grep -F '<application id=' repo/index.xml > /dev/null
 
 # now set fake repo_keyalias
-sed -i 's,^ *repo_keyalias.*,repo_keyalias = "fake",' $REPOROOT/config.py
+sed -i.tmp 's,^ *repo_keyalias.*,repo_keyalias = "fake",' $REPOROOT/config.py
 set +e
 $fdroid update
 if [ $? -eq 0 ]; then