diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-05-14 11:42:19 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-05-14 16:47:58 +0900 |
commit | 2a644d7a28191082c631d095d7b73a6fd34455b3 (patch) | |
tree | 43cbed0c3e617a00141dca9c206e184685003bbd /gettext-tools/tests/msgen-1 | |
parent | 0793877631bd889673fccb847a329d301db9c78c (diff) | |
download | external_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-x | gettext-tools/tests/msgen-1 | 10 |
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 |