Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / xgettext-1
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # This test often fails during development. It works after "make dist".
5
6 # Test -x option.
7
8 rm -f zero-domain.po
9 : ${XGETTEXT=xgettext}
10 LC_MESSAGES=C LC_ALL= \
11 ${XGETTEXT} -k_ -d zero-domain -x "$abs_top_srcdir"/po/gettext-tools.pot \
12   "$abs_top_srcdir"/src/xgettext.c >xg-test1.err 2>&1
13 result=$?
14 cat xg-test1.err | grep -v 'warning: Charset' | grep -v '^ '
15 test $result = 0 || { exit 1; }
16
17 test ! -f zero-domain.po
18 result=$?
19
20 exit $result