chiark / gitweb /
tests: new tests for stacktraces caused by translated help strings
authorHans-Christoph Steiner <hans@eds.org>
Mon, 13 Nov 2017 12:08:22 +0000 (13:08 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 22 Nov 2017 10:40:16 +0000 (11:40 +0100)
tests/complete-ci-tests

index 1959f858da8f420ca4a861bef2bd3ded881061d0..37e594897c5de656261429bd69d23eb6d044b74c 100755 (executable)
@@ -14,7 +14,8 @@ set -e
 set -x
 
 if [ -z $WORKSPACE ]; then
-    export WORKSPACE=`pwd`/..
+    WORKSPACE=`cd $(dirname $0)/.. && pwd`
+    echo "Setting Workspace to $WORKSPACE"
 fi
 
 if [ -z $ANDROID_HOME ]; then
@@ -60,6 +61,19 @@ else
 fi
 
 
+#------------------------------------------------------------------------------#
+# make sure that translations do not cause stacktraces
+cd $WORKSPACE/locale
+for locale in *; do
+    if [ ! -d $locale ]; then
+        continue
+    fi
+    for cmd in `sed -n 's/.*("\(.*\)", *_.*/\1/p' $WORKSPACE/fdroid`; do
+        LANGUAGE=$locale $WORKSPACE/fdroid $cmd --help > /dev/null
+    done
+done
+
+
 #------------------------------------------------------------------------------#
 # test building the source tarball, then installing it
 cd $WORKSPACE