From: Bruno Haible Date: Thu, 1 Jun 2006 11:57:03 +0000 (+0000) Subject: Test string concatenation in YCP extractor. X-Git-Tag: v0.15~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b643a4dcd620b7b3e935c198f098196a69094b21;p=thirdparty%2Fgettext.git Test string concatenation in YCP extractor. --- diff --git a/gettext-tools/tests/xgettext-ycp-3 b/gettext-tools/tests/xgettext-ycp-3 new file mode 100755 index 000000000..51a7feb3d --- /dev/null +++ b/gettext-tools/tests/xgettext-ycp-3 @@ -0,0 +1,36 @@ +#!/bin/sh + +# Test YCP support: string literal concatenation. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles xg-y-3.ycp" +cat <<\EOF > xg-y-3.ycp +print (_("John\n" +"Paul\n" +"George and " +"Ringo")); +EOF + +tmpfiles="$tmpfiles xg-y-3.po" +: ${XGETTEXT=xgettext} +${XGETTEXT} --omit-header --no-location -d xg-y-3 xg-y-3.ycp +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles xg-y-3.ok" +cat <<\EOF > xg-y-3.ok +msgid "" +"John\n" +"Paul\n" +"George and Ringo" +msgstr "" +EOF + +: ${DIFF=diff} +${DIFF} xg-y-3.ok xg-y-3.po +result=$? + +rm -fr $tmpfiles + +exit $result