26 lines
573 B
Bash
26 lines
573 B
Bash
#! /bin/sh
|
|
|
|
# This test often fails during development. It works after "make dist".
|
|
|
|
# Test -x option.
|
|
|
|
tmpfiles=""
|
|
trap 'rm -fr $tmpfiles' 1 2 3 15
|
|
|
|
tmpfiles="$tmpfiles zero-domain.po xg-test1.err"
|
|
rm -f zero-domain.po
|
|
: ${XGETTEXT=xgettext}
|
|
LC_MESSAGES=C LC_ALL= \
|
|
${XGETTEXT} -k_ -d zero-domain -x $top_srcdir/po/gettext-tools.pot \
|
|
$top_srcdir/src/xgettext.c >xg-test1.err 2>&1
|
|
result=$?
|
|
cat xg-test1.err | grep -v 'warning: Charset' | grep -v '^ '
|
|
test $result = 0 || { rm -fr $tmpfiles; exit 1; }
|
|
|
|
test ! -f zero-domain.po
|
|
result=$?
|
|
|
|
rm -fr $tmpfiles
|
|
|
|
exit $result
|