T6480: Some calligra tests fail
Dag Andersen
noreply at phabricator.kde.org
Mon Jul 10 10:25:29 UTC 2017
danders added a comment.
https://build.kde.org/job/Extragear%20calligra%20kf5-qt5%20SUSEQt5.9/7/testReport/(root)/TestSuite/test_i18n/
The test tries to source another script kundo2_aware_xgettext.sh, doing:
. $1
This gives:
home/jenkins/workspace/Extragear calligra kf5-qt5 SUSEQt5.9/tests/test_i18n.sh: line 9: /home/jenkins/workspace/Extragear: No such file or directory
The script:
#! /bin/sh
1. test_i18n:
2. $1: kundo2_aware_xgettext.sh
3. $2: xgettext
4. $3: msgcat
5. $4: podir
source the kundo2_aware_xgettext.sh script
==========================================
. $1
setup environment variables for kundo2_aware_xgettext.sh
========================================================
XGETTEXT_PROGRAM=$2
MSGCAT=$3
podir=$4
get common parameters
=====================
. parameters.sh
kundo2_aware_xgettext.sh wants this in one variable
===================================================
XGETTEXT="$XGETTEXT_PROGRAM $XGETTEXT_FLAGS"
potfile="test_i18n.pot"
cppfile="test_i18n.cpp"
kundo2_aware_xgettext $potfile $cppfile
check result
============
if test ! -e $podir/$potfile; then
echo "FAIL: pot file not created"
exit 1
fi
if test 0 -ne `grep qtundo-format $podir/$potfile|wc -l`; then
echo "FAIL: there should be 0 qtundo-format strings"
exit 2
fi
if test 2 -ne `grep msgid $podir/$potfile|wc -l`; then
echo "FAIL: there should be 2 message strings"
exit 3
fi
exit 0
TASK DETAIL
https://phabricator.kde.org/T6480
To: danders
Cc: bcooksley, #build_system, danders, sysadmin, scarlettclark, blazquez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20170710/2bac5088/attachment.html>
More information about the Kde-buildsystem
mailing list