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

gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-c-comment-2 [moved from gettext-tools/tests/xgettext-c-7 with 79% similarity]

index 8b30314ec0ea8af7a692b2dc54c1294a4dee3951..8c40480dff47175c105fe97039b833e87edc40ae 100644 (file)
@@ -79,10 +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-6 xgettext-c-7 xgettext-c-9 \
+       xgettext-c-6 xgettext-c-9 \
        xgettext-c-16 xgettext-c-18 \
        xgettext-c-24 xgettext-c-25 \
-       xgettext-c-comment-1 \
+       xgettext-c-comment-1 xgettext-c-comment-2 \
        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 79%
rename from gettext-tools/tests/xgettext-c-7
rename to gettext-tools/tests/xgettext-c-comment-2
index 4192030d39bf79c7f91122f84692cd47688b61bb..9eeb01fe54d4d1851c7dd64b10354a29e7095fda 100755 (executable)
@@ -3,7 +3,7 @@
 
 # Test C support: comments.
 
-cat <<EOF > xg-c-7.c
+cat <<EOF > xg-c-comment-2.c
 int
 main()
 {
@@ -38,10 +38,10 @@ main()
 EOF
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -c --c++ -d xg-c-7.tmp xg-c-7.c || Exit 1
-LC_ALL=C tr -d '\r' < xg-c-7.tmp.po > xg-c-7.po || Exit 1
+${XGETTEXT} --omit-header --no-location -c --c++ -d xg-c-comment-2.tmp xg-c-comment-2.c || Exit 1
+LC_ALL=C tr -d '\r' < xg-c-comment-2.tmp.po > xg-c-comment-2.po || Exit 1
 
-cat <<EOF > xg-c-7.ok
+cat <<EOF > xg-c-comment-2.ok
 #. This is a comment which immediately before a keyword.
 msgid "1"
 msgstr ""
@@ -74,7 +74,7 @@ msgstr ""
 EOF
 
 : ${DIFF=diff}
-${DIFF} xg-c-7.ok xg-c-7.po
+${DIFF} xg-c-comment-2.ok xg-c-comment-2.po
 result=$?
 
 exit $result