summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgen-1
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-05-14 11:42:19 +0900
committerDaiki Ueno <ueno@gnu.org>2014-05-14 16:47:58 +0900
commit2a644d7a28191082c631d095d7b73a6fd34455b3 (patch)
tree43cbed0c3e617a00141dca9c206e184685003bbd /gettext-tools/tests/msgen-1
parent0793877631bd889673fccb847a329d301db9c78c (diff)
downloadexternal_gettext-2a644d7a28191082c631d095d7b73a6fd34455b3.zip
external_gettext-2a644d7a28191082c631d095d7b73a6fd34455b3.tar.gz
external_gettext-2a644d7a28191082c631d095d7b73a6fd34455b3.tar.bz2
tests: Improve test coverage
Diffstat (limited to 'gettext-tools/tests/msgen-1')
-rwxr-xr-xgettext-tools/tests/msgen-110
1 files changed, 9 insertions, 1 deletions
diff --git a/gettext-tools/tests/msgen-1 b/gettext-tools/tests/msgen-1
index f68cd7e..889fe7b 100755
--- a/gettext-tools/tests/msgen-1
+++ b/gettext-tools/tests/msgen-1
@@ -56,5 +56,13 @@ EOF
: ${DIFF=diff}
${DIFF} men-test1.ok men-test1.out
result=$?
+test $result = 0 || exit $result
-exit $result
+# Test --lang option.
+${MSGEN} --lang=fr -o men-test1.tmp men-test1.po || exit 1
+grep -q "Language: fr" men-test1.tmp || exit 1
+grep -v "Language: fr" men-test1.tmp | LC_ALL=C tr -d '\r' > men-test1.out || exit 1
+
+${DIFF} men-test1.ok men-test1.out
+result=$?
+test $result = 0 || exit $result