]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext tests: Rename xgettext-c-12 to xgettext-c-format-1.
authorBruno Haible <bruno@clisp.org>
Thu, 8 Nov 2018 22:22:07 +0000 (23:22 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 8 Nov 2018 22:22:07 +0000 (23:22 +0100)
* gettext-tools/tests/xgettext-c-format-1: Renamed from
gettext-tools/tests/xgettext-c-12.
* Makefile.am (TESTS): Update.

gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-c-format-1 [moved from gettext-tools/tests/xgettext-c-12 with 53% similarity]

index cc13ee7f202d07dfa177da518d86946310c00351..7e5275212cfcb09f8dc0af78f6a4bf1d6b0e5a31 100644 (file)
@@ -80,9 +80,10 @@ TESTS = gettext-1 gettext-2 \
        xgettext-awk-1 xgettext-awk-2 \
        xgettext-c-2 xgettext-c-3 xgettext-c-4 xgettext-c-5 \
        xgettext-c-6 xgettext-c-7 xgettext-c-8 xgettext-c-9 \
-       xgettext-c-12 xgettext-c-13 xgettext-c-14 \
+       xgettext-c-13 xgettext-c-14 \
        xgettext-c-16 xgettext-c-17 xgettext-c-18 xgettext-c-19 \
        xgettext-c-21 xgettext-c-23 xgettext-c-24 xgettext-c-25 \
+       xgettext-c-format-1 \
        xgettext-c-ctxt-1 xgettext-c-ctxt-2 xgettext-c-ctxt-3 \
        xgettext-c-c++-1 xgettext-c-c++-2 \
        xgettext-csharp-1 xgettext-csharp-2 xgettext-csharp-3 \
similarity index 53%
rename from gettext-tools/tests/xgettext-c-12
rename to gettext-tools/tests/xgettext-c-format-1
index 6fe1d7ff9983a66287b2120b18e85c9e23b662e9..ffc0f1b5416db1cd7e71d8214a79c3cd496e9a51 100755 (executable)
@@ -4,21 +4,21 @@
 # Test C support: valid but unlikely C format strings are _not_ marked as
 # c-format by default.
 
-cat <<\EOF > xg-c-12.c
+cat <<\EOF > xg-c-format-1.c
 gettext ("%1% on, %2% off");
 EOF
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-c-12.tmp xg-c-12.c || Exit 1
-LC_ALL=C tr -d '\r' < xg-c-12.tmp.po > xg-c-12.po || Exit 1
+${XGETTEXT} --omit-header --no-location -d xg-c-format-1.tmp xg-c-format-1.c || Exit 1
+LC_ALL=C tr -d '\r' < xg-c-format-1.tmp.po > xg-c-format-1.po || Exit 1
 
-cat <<EOF > xg-c-12.ok
+cat <<EOF > xg-c-format-1.ok
 msgid "%1% on, %2% off"
 msgstr ""
 EOF
 
 : ${DIFF=diff}
-${DIFF} xg-c-12.ok xg-c-12.po
+${DIFF} xg-c-format-1.ok xg-c-format-1.po
 result=$?
 
 exit $result