]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Comments about the purpose of each test.
authorBruno Haible <bruno@clisp.org>
Mon, 28 Apr 2003 11:08:41 +0000 (11:08 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:24 +0000 (12:10 +0200)
32 files changed:
gettext-tools/tests/msgcat-2
gettext-tools/tests/msgcat-3
gettext-tools/tests/msgcat-4
gettext-tools/tests/msgcat-5
gettext-tools/tests/msgcat-6
gettext-tools/tests/msgcmp-1
gettext-tools/tests/msgcmp-2
gettext-tools/tests/msgcomm-16
gettext-tools/tests/msgcomm-22
gettext-tools/tests/msgen-1
gettext-tools/tests/msgfmt-1
gettext-tools/tests/msgfmt-2
gettext-tools/tests/msgfmt-3
gettext-tools/tests/msgfmt-4
gettext-tools/tests/msgmerge-1
gettext-tools/tests/msgmerge-2
gettext-tools/tests/msgmerge-3
gettext-tools/tests/msgmerge-4
gettext-tools/tests/msgmerge-5
gettext-tools/tests/msgunfmt-1
gettext-tools/tests/msguniq-1
gettext-tools/tests/msguniq-2
gettext-tools/tests/msguniq-3
gettext-tools/tests/xgettext-1
gettext-tools/tests/xgettext-2
gettext-tools/tests/xgettext-3
gettext-tools/tests/xgettext-4
gettext-tools/tests/xgettext-5
gettext-tools/tests/xgettext-6
gettext-tools/tests/xgettext-7
gettext-tools/tests/xgettext-8
gettext-tools/tests/xgettext-9

index 527d29b3a2e4cd82af65752e63c9cdaa9ab4219b..84af857a656920b47c1e22807837aac909a65b91 100755 (executable)
@@ -1,10 +1,10 @@
 #! /bin/sh
 
+# Test handling of input files with different charsets.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# input files with different charsets.
-
 tmpfiles="$tmpfiles mcat-test2.in1 mcat-test2.in2"
 cat <<\EOF > mcat-test2.in1
 # German message file for xyz.
index 0f07e5227a7f9d3d6653bcf1a524a3ffc22690b8..591b1c7f0d520560966a59c5ea978d330e6575a9 100755 (executable)
@@ -1,11 +1,11 @@
 #! /bin/sh
 
+# Test handling of input files with different charsets.
+# 1. ISO-8859-1, 2. UTF-8; plus --use-first
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# input files with different charsets.
-# 1. ISO-8859-1, 2. UTF-8; plus --use-first
-
 tmpfiles="$tmpfiles mcat-test3.in1 mcat-test3.in2"
 cat <<\EOF > mcat-test3.in1
 # German message file for xyz.
index 4cf95a82272f78c306ce0c1a2f60721d532a1d34..9536b283a01e7d42344d431a9b16a902747a525f 100755 (executable)
@@ -1,11 +1,11 @@
 #! /bin/sh
 
+# Test handling of input files with different charsets:
+# 1. UTF-8, 2. ISO-8859-1; plus --use-first
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# input files with different charsets:
-# 1. UTF-8, 2. ISO-8859-1; plus --use-first
-
 tmpfiles="$tmpfiles mcat-test4.in1 mcat-test4.in2"
 cat <<\EOF > mcat-test4.in1
 # German message file for xyz.
index 4676f8aa2c83ff8b7ff86a04e7b314c944b10153..3432503e641978c1d48ec159b43d92b523908cac 100755 (executable)
@@ -1,11 +1,11 @@
 #! /bin/sh
 
+# Test handling of input files with different translations:
+# try --use-first
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# input files with different translations:
-# try --use-first
-
 tmpfiles="$tmpfiles mcat-test5.in1 mcat-test5.in2"
 cat <<\EOF > mcat-test5.in1
 # German message file for xyz.
index 07205010344d3ecd2201c436460fe4e53154d9f2..06100a680128783ed2a410bd82c06b0936ca975c 100755 (executable)
@@ -1,11 +1,11 @@
 #! /bin/sh
 
+# Test handling of input files with different translations:
+# preserve all variants, add markers
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# input files with different translations:
-# preserve all variants, add markers
-
 tmpfiles="$tmpfiles mcat-test6.in1 mcat-test6.in2"
 cat <<\EOF > mcat-test6.in1
 # German message file for xyz.
index 08168b1bb4ebc79dcf7b18682c7d8b329306dd04..dd7813783498d0e416049d47b45efec559537be4 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
-# One argument is required which is the path to the toplevel directory
-# of the distribution.
+
+# Test a succeeding comparison.
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
index 2f333f1d9d52284b08b4077bb32a509a5d989e4c..e03bf3669c5bf184744be6c54a18e19c6116f6df 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
-# One argument is required which is the path to the toplevel directory
-# of the distribution.
+
+# Test a failing comparison.
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
index 2cd8ac6e53f79d20b883e6e7a3a50347da7982b2..3457e5303113a439119642b149eba77bba1b3731 100755 (executable)
@@ -1,10 +1,10 @@
 #! /bin/sh
 
+# Test handling of input files with different charsets.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# input files with different charsets.
-
 tmpfiles="$tmpfiles mcomm-test16.in1 mcomm-test16.in2"
 cat <<\EOF > mcomm-test16.in1
 # German message file for xyz.
index a2a58c19785ce2459c3972ce951584c8fb112618..5d296008b48bf7f09666fe5c72bf8344b9cc8834 100755 (executable)
@@ -1,10 +1,10 @@
 #! /bin/sh
 
+# Verify that the header entry is kept, otherwise the encoding is unknown.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-# keep header file entry, otherwise the encoding is unknown
-
 tmpfiles="$tmpfiles mcomm-test22.in1 mcomm-test22.in2"
 cat <<\EOF > mcomm-test22.in1
 # German translations for GNU gettext package.
index acd8f6c298930a99eb66bdf2d4804511cbb92330..cf4993c4717d78381a9df23a76c343e828a9e91c 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test general operation.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 3b8face07daf8c4a3de1bdea0479ff1bcbce24d3..0dc6315e5054fb7b3a78c42cfdbe8f3ac31a0c44 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test basic functionality, duplicate detection, multiple domains.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 56958358e8a03ddd6ef817ee79359fff07fae30b..8491178ae3c018a31e221f5fb0908467043652ee 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test basic functionality, duplicate detection, multiple domains.
+
 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
index b0b2ed7f99458034fe28570134533468c42e1a69..264a4f83ff15e89bb466823e6952d9193fcae38d 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test than an empty header entry is OK.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index d649b5c84ae6c93a7e594fdd70394d85a9465d3b..f833ed93e968c69360f44949b8f6c187fe757ca8 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test c-format handling.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index d33abbce77454d5fff404cd47662528fb0d52106..66eb3742ebd901bb0a61bd0791a02e8ad59ff5cb 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test general operation and line wrapping.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 8c880dbf1562378526a1b8bf14264b92a97838e5..9580df5fffc711cd0903884a4dc8cb19d0dc9e04 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test recognition of duplicates.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 6b5b4cce864dd964421ec2e94bc4e0620847bccd..4ca85c2c4f9cb4fe2cb961fcf8a4e04f6df784e9 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test handling of obsolete/untranslated messages.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 42a046aeb76649788b485b2cb2a4649ce64d0097..d9cc1e83c6f97ea206404da2208cc4d7224f6007 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test handling of comments.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index bc9f9312152efb898c5105153c0e2950ae152c00..d7ed4d6daa763c765921882f366b1957a43d22f0 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test handling of header entry.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 8ef4b359da9422c641b122f360679ac18b7e0ff8..a707dd837cb60cf5540746ecefc1c9672d72b3d8 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test of general operation.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 17be1a0aff1103d64c05f9e50a5c3d3ab5fd207c..4570ce35c0d8c5c4683aad9199f2c70a0af76422 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test general operation.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 5b4a9cd49e97a47bb6e5597198488cce9cad34a7..b80c988954cfd1f1f321ffc2d181922ac94135b9 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test --unique option.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 8b4a562852506e74dac96b037aae2ef528c40e6c..ef6cbb4ed9b23b93944fad7eca2c84197d63e822 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test --repeated option.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index c071004e87ce3930ae3f34ca5deeb57975934f5e..a3470db104c4232327c94217dc755ec91c5e8172 100755 (executable)
@@ -2,8 +2,7 @@
 
 # This test often fails during development. It works after "make dist".
 
-# One argument is required which is the path to the toplevel directory
-# of the distribution.
+# Test C support.
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
index b071455aeef479b9065ceceb8bec12790329bfac..d33f579ad271721d42b7165df8f65d591e724566 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C support: comments meant for xgettext, and whitespace.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 945215170e3ee7925dc37f2cb5443afdff5d6614..c4687703f66b59ef30ad3b5b22e3dd3096382f1c 100755 (executable)
@@ -2,8 +2,7 @@
 
 # This test often fails during development. It works after "make dist".
 
-# One argument is required which is the path to the toplevel directory
-# of the distribution.
+# Test -x option.
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
index 166a2de5a0e6d1addca2849debc29a366c61b1d0..80cfb2ca4b58a3c1ed6fbe6fc80a5f61f0f6e247 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C support: recognition of #line.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 830e9cd5ba8fdd05849ba6936b0e49f6fc3ee39e..36f6dc64c6759a9c1487944377f44794aca4236f 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C support: --trigraphs option.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 209ab10a8c82b73911b498a35d1854be5936d408..16a7a3a3f46a4f1cbb5550679fe084f8303bb346 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C support: comments.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index a5a5b3476e822913ef59b34dceef3c0077f01784..362bf5e657521045bf0f84872381ea7e9c8e9551 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C support: --add-comments option.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index b3e7a7fa6532cdb1db46b9b1e5b0b58d16c5c539..837832a1c1efa7f4f1cfac9c6ad5f4c9737933c9 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C, C++, PO extractors.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
index 5a23f2e9ff6d6ed8268721567a9015358bdf76fd..2f7082b6f0bb08e300cff147fc6e178d39947ffd 100755 (executable)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+# Test C support: comments.
+
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15