summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-1
blob: 5165968f74f1f78d549eda029454156032656e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# This test often fails during development. It works after "make dist".

# Test -x option.

rm -f zero-domain.po
: ${XGETTEXT=xgettext}
LC_MESSAGES=C LC_ALL= \
${XGETTEXT} -k_ -d zero-domain -x "$abs_top_srcdir"/po/gettext-tools.pot \
  "$abs_top_srcdir"/src/xgettext.c >xg-test1.err 2>&1
result=$?
cat xg-test1.err | grep -v 'warning: Charset' | grep -v '^ '
test $result = 0 || { exit 1; }

test ! -f zero-domain.po
result=$?

exit $result