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

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

index 16f928571011ee65e754a18483c7563daac7dee0..8b30314ec0ea8af7a692b2dc54c1294a4dee3951 100644 (file)
@@ -78,10 +78,11 @@ TESTS = gettext-1 gettext-2 \
        xgettext-13 xgettext-14 \
        xgettext-appdata-1 \
        xgettext-awk-1 xgettext-awk-2 \
-       xgettext-c-2 xgettext-c-3 xgettext-c-4 xgettext-c-5 \
+       xgettext-c-2 xgettext-c-3 xgettext-c-4 \
        xgettext-c-6 xgettext-c-7 xgettext-c-9 \
        xgettext-c-16 xgettext-c-18 \
        xgettext-c-24 xgettext-c-25 \
+       xgettext-c-comment-1 \
        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 50%
rename from gettext-tools/tests/xgettext-c-5
rename to gettext-tools/tests/xgettext-c-comment-1
index ffe142a8bec9575de6ea1317f95c8d2cdce2eeda..a8cb39bdb06a7b8155fb155504d06e4ef7e61494 100755 (executable)
@@ -3,15 +3,15 @@
 
 # Test C support: comments.
 
-cat <<EOF > xg-c-5.in.cc
+cat <<EOF > xg-c-comment-1.in.cc
 main(){printf(gettext/*puke*/(/*barf*/"Hello, " "World!" "\n")); }
 EOF
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location --add-comments -d xg-c-5.tmp xg-c-5.in.cc || Exit 1
-LC_ALL=C tr -d '\r' < xg-c-5.tmp.po > xg-c-5.po || Exit 1
+${XGETTEXT} --omit-header --no-location --add-comments -d xg-c-comment-1.tmp xg-c-comment-1.in.cc || Exit 1
+LC_ALL=C tr -d '\r' < xg-c-comment-1.tmp.po > xg-c-comment-1.po || Exit 1
 
-cat <<EOF > xg-c-5.ok
+cat <<EOF > xg-c-comment-1.ok
 #. puke
 #. barf
 #, c-format
@@ -20,7 +20,7 @@ msgstr ""
 EOF
 
 : ${DIFF=diff}
-${DIFF} xg-c-5.ok xg-c-5.po
+${DIFF} xg-c-comment-1.ok xg-c-comment-1.po
 result=$?
 
 exit $result