#! /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.
#! /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.
#! /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.
#! /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.
#! /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.
#! /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
#! /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
#! /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.
#! /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.
#! /bin/sh
+# Test general operation.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test basic functionality, duplicate detection, multiple domains.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /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
#! /bin/sh
+# Test than an empty header entry is OK.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test c-format handling.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test general operation and line wrapping.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test recognition of duplicates.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test handling of obsolete/untranslated messages.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test handling of comments.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test handling of header entry.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test of general operation.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test general operation.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test --unique option.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test --repeated option.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
# 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
#! /bin/sh
+# Test C support: comments meant for xgettext, and whitespace.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
# 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
#! /bin/sh
+# Test C support: recognition of #line.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test C support: --trigraphs option.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test C support: comments.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test C support: --add-comments option.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test C, C++, PO extractors.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
#! /bin/sh
+# Test C support: comments.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15