From: Hans-Christoph Steiner Date: Mon, 13 Nov 2017 12:08:22 +0000 (+0100) Subject: tests: new tests for stacktraces caused by translated help strings X-Git-Tag: 0.9~12^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e33684fc9bd38bca006d3b38d9cc49c0ac025a25;p=fdroidserver.git tests: new tests for stacktraces caused by translated help strings --- diff --git a/tests/complete-ci-tests b/tests/complete-ci-tests index 1959f858..37e59489 100755 --- a/tests/complete-ci-tests +++ b/tests/complete-ci-tests @@ -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