From e33684fc9bd38bca006d3b38d9cc49c0ac025a25 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 13 Nov 2017 13:08:22 +0100 Subject: [PATCH] tests: new tests for stacktraces caused by translated help strings --- tests/complete-ci-tests | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- 2.30.2