Skip to content
Snippets Groups Projects
Commit d048ff70 authored by Jenkins Bot's avatar Jenkins Bot Committed by Denis Pynkin
Browse files

Backported test from apertis-tests


Fixed version of original test.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 9d6d6f81
No related branches found
No related tags found
No related merge requests found
Tomeu Vizoso <tomeu.vizoso@collabora.com>
. "${TESTDIR}/common/inherit-config.sh"
#!/bin/sh
# vim: set sts=4 sw=4 et tw=0 :
set -e
TESTDIR=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
. "${TESTDIR}/config.sh"
. common/update-test-path
failed_cnt=0
echo "Testing supported locales:"
for LOCALE in $(grep -v \# ${TESTDATADIR}/po/LINGUAS); do
OUTPUT=`LC_ALL=$LOCALE.utf8 TEXTDOMAINDIR=${TESTDATADIR}/po \
gettext test-gettext C`
echo -n $LOCALE.utf8
if [ "$OUTPUT" != "$LOCALE" ]; then
echo ": fail"
failed_cnt=$(($failed_cnt+1))
else
echo ": pass"
fi
done
if [ $failed_cnt -gt 0 ]; then
echo "$failed_cnt test(s) failed"
else
echo "All tests passed"
fi
exit $failed_cnt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment