mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
tests: new tests for stacktraces caused by translated help strings
This commit is contained in:
parent
0beaa4701b
commit
e33684fc9b
1 changed files with 15 additions and 1 deletions
|
@ -14,7 +14,8 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [ -z $WORKSPACE ]; then
|
if [ -z $WORKSPACE ]; then
|
||||||
export WORKSPACE=`pwd`/..
|
WORKSPACE=`cd $(dirname $0)/.. && pwd`
|
||||||
|
echo "Setting Workspace to $WORKSPACE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $ANDROID_HOME ]; then
|
if [ -z $ANDROID_HOME ]; then
|
||||||
|
@ -60,6 +61,19 @@ else
|
||||||
fi
|
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
|
# test building the source tarball, then installing it
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue