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

gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-c-comment-5 [moved from gettext-tools/tests/xgettext-c-9 with 82% similarity]

index 32785961ed0d557f8ae0d51aacf53139ddc7d9fd..9d11e1304726a1a56fea93e7f6ad12987ddbed29 100644 (file)
@@ -79,11 +79,10 @@ TESTS = gettext-1 gettext-2 \
        xgettext-appdata-1 \
        xgettext-awk-1 xgettext-awk-2 \
        xgettext-c-2 xgettext-c-3 xgettext-c-4 \
-       xgettext-c-9 \
        xgettext-c-18 \
        xgettext-c-24 xgettext-c-25 \
        xgettext-c-comment-1 xgettext-c-comment-2 xgettext-c-comment-3 \
-       xgettext-c-comment-4 \
+       xgettext-c-comment-4 xgettext-c-comment-5 \
        xgettext-c-escape-1 xgettext-c-escape-2 xgettext-c-escape-3 \
        xgettext-c-format-1 xgettext-c-format-2 xgettext-c-format-3 \
        xgettext-c-format-4 xgettext-c-format-5 \
similarity index 82%
rename from gettext-tools/tests/xgettext-c-9
rename to gettext-tools/tests/xgettext-c-comment-5
index a8be45148532ee831e75ee8a5ed554983b677b70..48d78bdba9b481606394d9f8fdfbd87639f0e893 100755 (executable)
@@ -3,7 +3,7 @@
 
 # Test C support: --add-comments option.
 
-cat <<EOF > xg-c-9.c
+cat <<EOF > xg-c-comment-5.c
 // This comment will not be extracted.
 print (gettext ("help"));
 //  TRANSLATORS: This is an extracted comment.
@@ -22,10 +22,10 @@ EOF
 
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-c-9.tmp xg-c-9.c || Exit 1
-LC_ALL=C tr -d '\r' < xg-c-9.tmp.po > xg-c-9.po || Exit 1
+  -d xg-c-comment-5.tmp xg-c-comment-5.c || Exit 1
+LC_ALL=C tr -d '\r' < xg-c-comment-5.tmp.po > xg-c-comment-5.po || Exit 1
 
-cat <<EOF > xg-c-9.ok
+cat <<EOF > xg-c-comment-5.ok
 msgid "help"
 msgstr ""
 
@@ -50,7 +50,7 @@ msgstr ""
 EOF
 
 : ${DIFF=diff}
-${DIFF} xg-c-9.ok xg-c-9.po
+${DIFF} xg-c-comment-5.ok xg-c-comment-5.po
 result=$?
 
 exit $result